@mdx-js/mdx
Advanced tools
Comparing version 0.15.1 to 0.15.2
14
index.js
@@ -106,4 +106,9 @@ const unified = require('unified') | ||
const { contents } = compiler.processSync(mdx) | ||
const fileOpts = { contents: mdx }; | ||
if (opts.filepath) { | ||
fileOpts.path = opts.filepath; | ||
} | ||
const { contents } = compiler.processSync(fileOpts) | ||
return contents | ||
@@ -116,4 +121,9 @@ } | ||
const { contents } = await compiler.process(mdx) | ||
const fileOpts = { contents: mdx }; | ||
if (opts.filepath) { | ||
fileOpts.path = opts.filepath; | ||
} | ||
const { contents } = await compiler.process(fileOpts) | ||
return contents | ||
@@ -120,0 +130,0 @@ } |
{ | ||
"name": "@mdx-js/mdx", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "mdx-js/mdx", |
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
9948
256