Socket
Socket
Sign inDemoInstall

@mdx-js/mdx

Package Overview
Dependencies
Maintainers
4
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdx-js/mdx - npm Package Compare versions

Comparing version 1.6.7 to 1.6.8-ci.4

7

mdx-hast-to-jsx.js

@@ -124,2 +124,3 @@ const {transformSync} = require('@babel/core')

transformSync(importStatements, {
filename: options.file.path,
configFile: false,

@@ -139,2 +140,3 @@ babelrc: false,

const fnPostMdxTypeProp = transformSync(fn, {
filename: options.file.path,
configFile: false,

@@ -150,2 +152,3 @@ babelrc: false,

const exportStatementsPostMdxTypeProps = transformSync(exportStatements, {
filename: options.file.path,
configFile: false,

@@ -256,4 +259,4 @@ babelrc: false,

function compile(options = {}) {
this.Compiler = function (tree) {
return toJSX(tree, {}, options)
this.Compiler = function (tree, file) {
return toJSX(tree, {}, {file, ...options})
}

@@ -260,0 +263,0 @@ }

{
"name": "@mdx-js/mdx",
"version": "1.6.7",
"version": "1.6.8-ci.4+e24ab3b",
"description": "Parse MDX and transpile to JSX",

@@ -37,15 +37,15 @@ "repository": "mdx-js/mdx",

"dependencies": {
"@babel/core": "7.10.4",
"@babel/plugin-syntax-jsx": "7.8.3",
"@babel/core": "7.10.5",
"@babel/plugin-syntax-jsx": "7.10.4",
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
"@mdx-js/util": "^1.6.7",
"babel-plugin-apply-mdx-type-prop": "^1.6.7",
"babel-plugin-extract-import-names": "^1.6.7",
"babel-plugin-apply-mdx-type-prop": "^1.6.8-ci.4+e24ab3b",
"babel-plugin-extract-import-names": "^1.6.8-ci.4+e24ab3b",
"camelcase-css": "2.0.1",
"detab": "2.0.3",
"hast-util-raw": "5.0.2",
"hast-util-raw": "6.0.0",
"lodash.uniq": "4.5.0",
"mdast-util-to-hast": "9.1.0",
"remark-footnotes": "1.0.0",
"remark-mdx": "^1.6.7",
"remark-mdx": "^1.6.8-ci.4+e24ab3b",
"remark-parse": "8.0.2",

@@ -56,5 +56,5 @@ "remark-squeeze-paragraphs": "4.0.0",

"unist-builder": "2.0.3",
"unist-util-visit": "2.0.2"
"unist-util-visit": "2.0.3"
},
"gitHead": "f1f4aa1c1da1b7f2a635ec413b20683d6e0c4b1a"
"gitHead": "e24ab3b668eae4c39c9b2ea71a7d471942e640de"
}
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