micromark-extension-mdxjs-esm
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -113,7 +113,7 @@ /** | ||
if (code === codes.eof) { | ||
return atEnd(code) | ||
return atEndOfData(code) | ||
} | ||
if (markdownLineEnding(code)) { | ||
return effects.check(nextBlankConstruct, atEnd, atEol)(code) | ||
return effects.check(nextBlankConstruct, atEndOfData, atEol)(code) | ||
} | ||
@@ -140,2 +140,6 @@ | ||
if (code === codes.eof) { | ||
return atEnd(code) | ||
} | ||
effects.enter('mdxjsEsmData') | ||
@@ -146,5 +150,9 @@ return rest(code) | ||
/** @type {State} */ | ||
function atEnd(code) { | ||
function atEndOfData(code) { | ||
effects.exit('mdxjsEsmData') | ||
return atEnd(code) | ||
} | ||
/** @type {State} */ | ||
function atEnd(code) { | ||
let index = -1 | ||
@@ -151,0 +159,0 @@ const result = eventsToAcorn(self.events.slice(eventStart), { |
@@ -110,7 +110,7 @@ /** | ||
if (code === null) { | ||
return atEnd(code) | ||
return atEndOfData(code) | ||
} | ||
if (markdownLineEnding(code)) { | ||
return effects.check(nextBlankConstruct, atEnd, atEol)(code) | ||
return effects.check(nextBlankConstruct, atEndOfData, atEol)(code) | ||
} | ||
@@ -137,2 +137,6 @@ | ||
if (code === null) { | ||
return atEnd(code) | ||
} | ||
effects.enter('mdxjsEsmData') | ||
@@ -143,4 +147,9 @@ return rest(code) | ||
function atEndOfData(code) { | ||
effects.exit('mdxjsEsmData') | ||
return atEnd(code) | ||
} | ||
/** @type {State} */ | ||
function atEnd(code) { | ||
effects.exit('mdxjsEsmData') | ||
let index = -1 | ||
@@ -147,0 +156,0 @@ const result = eventsToAcorn(self.events.slice(eventStart), { |
{ | ||
"name": "micromark-extension-mdxjs-esm", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "micromark extension to support MDX JS import/exports", | ||
@@ -69,3 +69,3 @@ "license": "MIT", | ||
"typescript": "^4.0.0", | ||
"xo": "^0.45.0" | ||
"xo": "^0.48.0" | ||
}, | ||
@@ -91,2 +91,3 @@ "scripts": { | ||
"node/file-extension-in-import": "off", | ||
"unicorn/prefer-code-point": "off", | ||
"unicorn/no-this-assignment": "off" | ||
@@ -93,0 +94,0 @@ } |
@@ -68,3 +68,3 @@ # micromark-extension-mdxjs-esm | ||
The export map supports the endorsed | ||
[`development` condition](https://nodejs.org/api/packages.html#packages\_resolving\_user\_conditions). | ||
[`development` condition](https://nodejs.org/api/packages.html#packages_resolving_user_conditions). | ||
Run `node --conditions development module.js` to get instrumented dev code. | ||
@@ -71,0 +71,0 @@ Without this condition, production code is loaded. |
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
26554
468