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.4 to 1.0.5

23

dev/index.d.ts

@@ -1,2 +0,21 @@

export {mdxjsEsm} from './lib/syntax.js'
export type Options = import('./lib/syntax.js').Options
import type {Program} from 'estree'
export {mdxjsEsm, type Options} from './lib/syntax.js'
declare module 'micromark-util-types' {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Token {
estree?: Program
}
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface TokenTypeMap {
mdxjsEsm: 'mdxjsEsm'
mdxjsEsmData: 'mdxjsEsmData'
}
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface ParseContext {
definedModuleSpecifiers?: string[]
}
}

5

dev/index.js

@@ -1,5 +0,2 @@

/**
* @typedef {import('./lib/syntax.js').Options} Options
*/
// Note: more types exposed from `index.d.ts`.
export {mdxjsEsm} from './lib/syntax.js'

@@ -78,5 +78,3 @@ /**

const definedModuleSpecifiers =
// @ts-expect-error: hush
self.parser.definedModuleSpecifiers ||
// @ts-expect-error: hush
(self.parser.definedModuleSpecifiers = [])

@@ -128,2 +126,3 @@ const eventStart = this.events.length + 1 // Add the main `mdxjsEsm` token

effects.consume(code)
// @ts-expect-error: definitely a number.
// eslint-disable-next-line unicorn/prefer-code-point

@@ -130,0 +129,0 @@ buffer += String.fromCharCode(code)

@@ -1,2 +0,21 @@

export {mdxjsEsm} from './lib/syntax.js'
export type Options = import('./lib/syntax.js').Options
import type {Program} from 'estree'
export {mdxjsEsm, type Options} from './lib/syntax.js'
declare module 'micromark-util-types' {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Token {
estree?: Program
}
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface TokenTypeMap {
mdxjsEsm: 'mdxjsEsm'
mdxjsEsmData: 'mdxjsEsmData'
}
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface ParseContext {
definedModuleSpecifiers?: string[]
}
}

@@ -1,5 +0,2 @@

/**
* @typedef {import('./lib/syntax.js').Options} Options
*/
// Note: more types exposed from `index.d.ts`.
export {mdxjsEsm} from './lib/syntax.js'

@@ -79,5 +79,3 @@ /**

const definedModuleSpecifiers =
// @ts-expect-error: hush
self.parser.definedModuleSpecifiers ||
// @ts-expect-error: hush
(self.parser.definedModuleSpecifiers = [])

@@ -122,2 +120,3 @@ const eventStart = this.events.length + 1 // Add the main `mdxjsEsm` token

effects.consume(code)
// @ts-expect-error: definitely a number.
// eslint-disable-next-line unicorn/prefer-code-point

@@ -124,0 +123,0 @@ buffer += String.fromCharCode(code)

{
"name": "micromark-extension-mdxjs-esm",
"version": "1.0.4",
"version": "1.0.5",
"description": "micromark extension to support MDX JS import/exports",

@@ -45,2 +45,3 @@ "license": "MIT",

"dependencies": {
"@types/estree": "^1.0.0",
"micromark-core-commonmark": "^1.0.0",

@@ -47,0 +48,0 @@ "micromark-util-character": "^1.0.0",

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