micromark-extension-mdxjs-esm
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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' |
@@ -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", |
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
33270
642
9
+ Added@types/estree@^1.0.0