Comparing version 3.0.6 to 3.0.7
@@ -40,3 +40,3 @@ /** | ||
import assert from 'power-assert' | ||
import {ok as assert} from 'uvu/assert' | ||
import {decodeEntity} from 'parse-entities/decode-entity.js' | ||
@@ -43,0 +43,0 @@ import {combineHtmlExtensions} from 'micromark-util-combine-extensions' |
@@ -27,3 +27,3 @@ /** | ||
import assert from 'power-assert' | ||
import {ok as assert} from 'uvu/assert' | ||
import createDebug from 'debug' | ||
@@ -214,3 +214,3 @@ import {markdownLineEnding} from 'micromark-util-character' | ||
function go(code) { | ||
assert.strictEqual(consumed, true, 'expected character to be consumed') | ||
assert(consumed === true, 'expected character to be consumed') | ||
consumed = undefined | ||
@@ -225,13 +225,8 @@ debug('main: passing `%s` to %s', code, state && state.name) | ||
function consume(code) { | ||
assert.strictEqual( | ||
code, | ||
expectedCode, | ||
'expected given code to equal expected code' | ||
) | ||
assert(code === expectedCode, 'expected given code to equal expected code') | ||
debug('consume: `%s`', code) | ||
assert.strictEqual( | ||
consumed, | ||
undefined, | ||
assert( | ||
consumed === undefined, | ||
'expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used' | ||
@@ -289,3 +284,3 @@ ) | ||
assert(typeof type === 'string', 'expected string type') | ||
assert.notStrictEqual(type.length, 0, 'expected non-empty string') | ||
assert(type.length > 0, 'expected non-empty string') | ||
debug('enter: `%s`', type) | ||
@@ -303,3 +298,3 @@ | ||
assert(typeof type === 'string', 'expected string type') | ||
assert.notStrictEqual(type.length, 0, 'expected non-empty string') | ||
assert(type.length > 0, 'expected non-empty string') | ||
@@ -310,7 +305,3 @@ const token = stack.pop() | ||
assert.strictEqual( | ||
type, | ||
token.type, | ||
'expected exit token to match current token' | ||
) | ||
assert(type === token.type, 'expected exit token to match current token') | ||
@@ -470,3 +461,3 @@ assert( | ||
function ok(code) { | ||
assert.strictEqual(code, expectedCode, 'expected code') | ||
assert(code === expectedCode, 'expected code') | ||
consumed = true | ||
@@ -479,3 +470,3 @@ onreturn(currentConstruct, info) | ||
function nok(code) { | ||
assert.strictEqual(code, expectedCode, 'expected code') | ||
assert(code === expectedCode, 'expected code') | ||
consumed = true | ||
@@ -482,0 +473,0 @@ info.restore() |
@@ -8,3 +8,3 @@ /** | ||
import assert from 'power-assert' | ||
import {ok as assert} from 'uvu/assert' | ||
import {factorySpace} from 'micromark-factory-space' | ||
@@ -11,0 +11,0 @@ import {markdownLineEnding} from 'micromark-util-character' |
@@ -17,3 +17,3 @@ /** | ||
import assert from 'power-assert' | ||
import {ok as assert} from 'uvu/assert' | ||
import {factorySpace} from 'micromark-factory-space' | ||
@@ -20,0 +20,0 @@ import {markdownLineEnding} from 'micromark-util-character' |
@@ -7,3 +7,3 @@ /** | ||
import assert from 'power-assert' | ||
import {ok as assert} from 'uvu/assert' | ||
import {blankLine, content} from 'micromark-core-commonmark' | ||
@@ -10,0 +10,0 @@ import {factorySpace} from 'micromark-factory-space' |
@@ -18,2 +18,9 @@ /** | ||
/** | ||
* @type {( | ||
* ((value: Value, encoding: Encoding, options?: Options) => string) & | ||
* ((value: Value, options?: Options) => string) | ||
* )} | ||
*/ | ||
/** | ||
* @param {Value} value | ||
@@ -20,0 +27,0 @@ * @param {Encoding} [encoding] |
@@ -285,3 +285,3 @@ /** | ||
// The token starts before the line ending… | ||
childFlow.events[index][1].start.offset < lineStartOffset && | ||
childFlow.events[index][1].start.offset < lineStartOffset && // …and either is not ended yet… | ||
(!childFlow.events[index][1].end || // …or ends after it. | ||
@@ -288,0 +288,0 @@ childFlow.events[index][1].end.offset > lineStartOffset) |
{ | ||
"name": "micromark", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "small commonmark compliant markdown parser with positional info and concrete tokens", | ||
@@ -116,3 +116,4 @@ "license": "MIT", | ||
"micromark-util-types": "^1.0.1", | ||
"parse-entities": "^3.0.0" | ||
"parse-entities": "^3.0.0", | ||
"uvu": "^0.5.0" | ||
}, | ||
@@ -119,0 +120,0 @@ "scripts": { |
@@ -849,3 +849,3 @@ <h1 align="center"> | ||
* Add warnings on undefined variables | ||
* Use `micromark-build`, and use `power-assert`, `debug`, and | ||
* Use `micromark-build`, and use `uvu/assert`, `debug`, and | ||
`micromark-util-symbol` (see [§ Size & debug][size-debug]) | ||
@@ -852,0 +852,0 @@ * Add [`mdast-util-from-markdown`][from-markdown] and |
@@ -38,2 +38,9 @@ /** | ||
/** | ||
* @type {( | ||
* ((value?: Value, encoding?: Encoding, callback?: Callback) => boolean) & | ||
* ((value: Value, callback?: Callback) => boolean) | ||
* )} | ||
*/ | ||
/** | ||
* @param {Value} [chunk] | ||
@@ -72,2 +79,9 @@ * @param {Encoding} [encoding] | ||
/** | ||
* @type {( | ||
* ((value?: Value, encoding?: Encoding, callback?: Callback) => boolean) & | ||
* ((value: Value, callback?: Callback) => boolean) | ||
* )} | ||
*/ | ||
/** | ||
* @param {Value} [chunk] | ||
@@ -74,0 +88,0 @@ * @param {Encoding} [encoding] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228360
5452
17
+ Addeduvu@^0.5.0