From a13fbcc27de7f2e44212e65b9788caf7b7f62b0e Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 2 Oct 2021 15:37:23 +0200 Subject: [PATCH] Use `power-assert` in development build --- dev/lib/index.js | 2 +- package.json | 2 ++ test/index.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/lib/index.js b/dev/lib/index.js index 13a2395..2d71d9b 100644 --- a/dev/lib/index.js +++ b/dev/lib/index.js @@ -79,7 +79,7 @@ * @typedef {ParseOptions & FromMarkdownOptions} Options */ -import assert from 'assert' +import assert from 'power-assert' import {toString} from 'mdast-util-to-string' import {parse} from 'micromark/lib/parse.js' import {preprocess} from 'micromark/lib/preprocess.js' diff --git a/package.json b/package.json index c588aa5..1feface 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,11 @@ "micromark-util-symbol": "^1.0.0", "micromark-util-types": "^1.0.0", "parse-entities": "^3.0.0", + "power-assert": "^1.0.0", "unist-util-stringify-position": "^3.0.0" }, "devDependencies": { + "@types/power-assert": "^1.0.0", "@types/tape": "^4.0.0", "c8": "^7.0.0", "commonmark.json": "^0.30.0", diff --git a/test/index.js b/test/index.js index fdf1a9a..393672f 100644 --- a/test/index.js +++ b/test/index.js @@ -2,10 +2,10 @@ * @typedef {import('mdast').Root} Root */ -import assert from 'assert' import {Buffer} from 'node:buffer' import fs from 'fs' import path from 'path' +import assert from 'power-assert' import test from 'tape' import {unified} from 'unified' import rehypeParse from 'rehype-parse'