Socket
Socket
Sign inDemoInstall

micromark-extension-mdxjs-esm

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-extension-mdxjs-esm - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

14

dev/lib/syntax.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc