Skip to content

Commit ff32daf

Browse files
committed
Use uvu/assert in development build
1 parent 3d088ed commit ff32daf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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 'power-assert'
82+
import {ok as assert} from 'uvu/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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
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",
55-
"unist-util-stringify-position": "^3.0.0"
54+
"unist-util-stringify-position": "^3.0.0",
55+
"uvu": "^0.5.0"
5656
},
5757
"devDependencies": {
5858
"@types/power-assert": "^1.0.0",
@@ -96,6 +96,7 @@
9696
"prettier": true,
9797
"rules": {
9898
"complexity": "off",
99+
"node/file-extension-in-import": "off",
99100
"unicorn/prefer-switch": "off",
100101
"unicorn/prefer-node-protocol": "off"
101102
}

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import {Buffer} from 'node:buffer'
66
import fs from 'fs'
77
import path from 'path'
8-
import assert from 'power-assert'
8+
import assert from 'assert'
99
import test from 'tape'
1010
import {unified} from 'unified'
1111
import rehypeParse from 'rehype-parse'

0 commit comments

Comments
 (0)