Skip to content

Commit a13fbcc

Browse files
committed
Use power-assert in development build
1 parent 78ad6ba commit a13fbcc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dev/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
* @typedef {ParseOptions & FromMarkdownOptions} Options
8080
*/
8181

82-
import assert from 'assert'
82+
import assert from 'power-assert'
8383
import {toString} from 'mdast-util-to-string'
8484
import {parse} from 'micromark/lib/parse.js'
8585
import {preprocess} from 'micromark/lib/preprocess.js'

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@
5151
"micromark-util-symbol": "^1.0.0",
5252
"micromark-util-types": "^1.0.0",
5353
"parse-entities": "^3.0.0",
54+
"power-assert": "^1.0.0",
5455
"unist-util-stringify-position": "^3.0.0"
5556
},
5657
"devDependencies": {
58+
"@types/power-assert": "^1.0.0",
5759
"@types/tape": "^4.0.0",
5860
"c8": "^7.0.0",
5961
"commonmark.json": "^0.30.0",

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* @typedef {import('mdast').Root} Root
33
*/
44

5-
import assert from 'assert'
65
import {Buffer} from 'node:buffer'
76
import fs from 'fs'
87
import path from 'path'
8+
import assert from 'power-assert'
99
import test from 'tape'
1010
import {unified} from 'unified'
1111
import rehypeParse from 'rehype-parse'

0 commit comments

Comments
 (0)