From 08d5826a09bf608812d1e00e5e236097abead4f8 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 2 Oct 2021 12:37:09 +0200 Subject: [PATCH] Use `power-assert` in development build --- dev/lib/factory-tag.js | 2 +- dev/lib/jsx-flow.js | 2 +- package.json | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/lib/factory-tag.js b/dev/lib/factory-tag.js index 2caa2dd..b50f130 100644 --- a/dev/lib/factory-tag.js +++ b/dev/lib/factory-tag.js @@ -8,7 +8,7 @@ * @typedef {import('micromark-factory-mdx-expression').AcornOptions} AcornOptions */ -import assert from 'node:assert' +import assert from 'power-assert' import {start as idStart, cont as idCont} from 'estree-util-is-identifier-name' import {factoryMdxExpression} from 'micromark-factory-mdx-expression' import { diff --git a/dev/lib/jsx-flow.js b/dev/lib/jsx-flow.js index c855f9a..7a66f34 100644 --- a/dev/lib/jsx-flow.js +++ b/dev/lib/jsx-flow.js @@ -6,7 +6,7 @@ * @typedef {import('micromark-factory-mdx-expression').AcornOptions} AcornOptions */ -import assert from 'node:assert' +import assert from 'power-assert' import {factorySpace} from 'micromark-factory-space' import {markdownLineEnding} from 'micromark-util-character' import {codes} from 'micromark-util-symbol/codes.js' diff --git a/package.json b/package.json index fa552e8..c664860 100644 --- a/package.json +++ b/package.json @@ -48,10 +48,12 @@ "micromark-util-character": "^1.0.0", "micromark-util-symbol": "^1.0.0", "micromark-util-types": "^1.0.0", + "power-assert": "^1.0.0", "vfile-message": "^3.0.0" }, "devDependencies": { "@types/mdast": "^3.0.0", + "@types/power-assert": "^1.0.0", "@types/tape": "^4.0.0", "acorn": "^8.0.0", "acorn-jsx": "^5.0.0",