Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdast-util-mdx-expression

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-mdx-expression - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

20

complex-types.d.ts
import {Literal} from 'mdast'
import {Program} from 'estree-jsx'
export interface MDXFlowExpression extends Literal {
export interface MdxFlowExpression extends Literal {
type: 'mdxFlowExpression'

@@ -11,3 +11,3 @@ data?: {

export interface MDXTextExpression extends Literal {
export interface MdxTextExpression extends Literal {
type: 'mdxTextExpression'

@@ -21,8 +21,20 @@ data?: {

interface StaticPhrasingContentMap {
mdxTextExpression: MDXTextExpression
mdxTextExpression: MdxTextExpression
}
interface BlockContentMap {
mdxFlowExpression: MDXFlowExpression
mdxFlowExpression: MdxFlowExpression
}
}
declare module 'hast' {
interface RootContentMap {
mdxTextExpression: MdxTextExpression
mdxFlowExpression: MdxFlowExpression
}
interface ElementContentMap {
mdxFlowExpression: MdxFlowExpression
mdxFlowExpression: MdxFlowExpression
}
}

14

index.d.ts

@@ -7,5 +7,9 @@ /**

* @typedef {import('estree-jsx').Program} Program
* @typedef {import('./complex-types').MDXFlowExpression} MDXFlowExpression
* @typedef {import('./complex-types').MDXTextExpression} MDXTextExpression
* @typedef {import('./complex-types').MdxFlowExpression} MdxFlowExpression
* @typedef {import('./complex-types').MdxTextExpression} MdxTextExpression
*/
/**
* @typedef {MdxFlowExpression} MDXFlowExpression
* @typedef {MdxTextExpression} MDXTextExpression
*/
/** @type {FromMarkdownExtension} */

@@ -20,3 +24,5 @@ export const mdxExpressionFromMarkdown: FromMarkdownExtension

export type Program = import('estree-jsx').Program
export type MDXFlowExpression = import('./complex-types').MDXFlowExpression
export type MDXTextExpression = import('./complex-types').MDXTextExpression
export type MdxFlowExpression = import('./complex-types').MdxFlowExpression
export type MdxTextExpression = import('./complex-types').MdxTextExpression
export type MDXFlowExpression = MdxFlowExpression
export type MDXTextExpression = MdxTextExpression

@@ -7,6 +7,11 @@ /**

* @typedef {import('estree-jsx').Program} Program
* @typedef {import('./complex-types').MDXFlowExpression} MDXFlowExpression
* @typedef {import('./complex-types').MDXTextExpression} MDXTextExpression
* @typedef {import('./complex-types').MdxFlowExpression} MdxFlowExpression
* @typedef {import('./complex-types').MdxTextExpression} MdxTextExpression
*/
/**
* @typedef {MdxFlowExpression} MDXFlowExpression
* @typedef {MdxTextExpression} MDXTextExpression
*/
/** @type {FromMarkdownExtension} */

@@ -13,0 +18,0 @@ export const mdxExpressionFromMarkdown = {

{
"name": "mdast-util-mdx-expression",
"version": "1.1.1",
"version": "1.2.0",
"description": "mdast extension to parse and serialize MDX (or MDX.js) expressions",

@@ -39,3 +39,7 @@ "license": "MIT",

"dependencies": {
"@types/estree-jsx": "^0.0.1"
"@types/estree-jsx": "^0.0.1",
"@types/hast": "^2.0.0",
"@types/mdast": "^3.0.0",
"mdast-util-from-markdown": "^1.0.0",
"mdast-util-to-markdown": "^1.0.0"
},

@@ -47,4 +51,2 @@ "devDependencies": {

"c8": "^7.0.0",
"mdast-util-from-markdown": "^1.0.0",
"mdast-util-to-markdown": "^1.0.0",
"micromark-extension-mdx-expression": "^1.0.0",

@@ -59,3 +61,3 @@ "prettier": "^2.0.0",

"unist-util-remove-position": "^4.0.0",
"xo": "^0.44.0"
"xo": "^0.47.0"
},

@@ -62,0 +64,0 @@ "scripts": {

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