@mdx-js/mdx
Advanced tools
Comparing version 1.6.7 to 1.6.8-ci.4
@@ -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" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
18500
440
1
1
+ Added@babel/core@7.10.5(transitive)
+ Added@babel/plugin-syntax-jsx@7.10.4(transitive)
+ Added@types/hast@2.3.10(transitive)
+ Added@types/parse5@5.0.3(transitive)
+ Addedhast-to-hyperscript@9.0.1(transitive)
+ Addedhast-util-from-parse5@6.0.1(transitive)
+ Addedhast-util-raw@6.0.0(transitive)
+ Addedhast-util-to-parse5@6.0.0(transitive)
+ Addedhastscript@6.0.0(transitive)
+ Addedparse5@6.0.1(transitive)
+ Addedunist-util-visit@2.0.3(transitive)
- Removed@babel/core@7.10.4(transitive)
- Removed@babel/plugin-syntax-jsx@7.8.3(transitive)
- Removedhast-to-hyperscript@7.0.4(transitive)
- Removedhast-util-from-parse5@5.0.3(transitive)
- Removedhast-util-raw@5.0.2(transitive)
- Removedhast-util-to-parse5@5.1.2(transitive)
- Removedhastscript@5.1.2(transitive)
- Removedparse5@5.1.1(transitive)
- Removedstyle-to-object@0.2.3(transitive)
- Removedunist-util-is@3.0.0(transitive)
- Removedunist-util-visit@2.0.2(transitive)
Updated@babel/core@7.10.5
Updatedbabel-plugin-extract-import-names@^1.6.8-ci.4+e24ab3b
Updatedhast-util-raw@6.0.0
Updatedunist-util-visit@2.0.3