@mdx-js/mdx
Advanced tools
Comparing version 2.0.0-ci.18 to 2.0.0-ci.35
@@ -86,3 +86,4 @@ const astring = require('astring') | ||
/* istanbul ignore if - incorrect tree. */ | ||
// Incorrect tree. | ||
/* c8 ignore next 3 */ | ||
if (!node.closingFragment) { | ||
@@ -134,4 +135,5 @@ throw new Error('Cannot handle fragment w/o closing tag') | ||
// `ns:attr="something"` | ||
/* istanbul ignore next - MDX (and most JSX things) don’t support them. | ||
* But keep it here just in case we might in the future. */ | ||
// MDX (and most JSX things) don’t support them. | ||
// But keep it here just in case we might in the future. | ||
/* c8 ignore next 5 */ | ||
function JSXNamespacedName(node, state) { | ||
@@ -153,5 +155,6 @@ this[node.namespace.type](node.namespace, state) | ||
function JSXText(node, state) { | ||
/* istanbul ignore next - `raw` is currently always be set, but could be | ||
* missing if something injects a `JSXText` into the tree. | ||
* Preferring `raw` over `value` means character references are kept as-is. */ | ||
// `raw` is currently always be set, but could be | ||
// missing if something injects a `JSXText` into the tree. | ||
// Preferring `raw` over `value` means character references are kept as-is. | ||
/* c8 ignore next */ | ||
const value = node.raw || node.value | ||
@@ -158,0 +161,0 @@ state.write(value) |
@@ -46,2 +46,4 @@ const unified = require('unified') | ||
const file = await createCompiler(options).process(createConfig(mdx, options)) | ||
// V8 bug on Node 12. | ||
/* c8 ignore next */ | ||
return pragma + '\n' + String(file) | ||
@@ -48,0 +50,0 @@ } |
@@ -335,2 +335,4 @@ const toEstree = require('hast-util-to-estree') | ||
type: 'ReturnStatement', | ||
// Vue. | ||
/* c8 ignore next 16 */ | ||
argument: useElement | ||
@@ -337,0 +339,0 @@ ? { |
{ | ||
"name": "@mdx-js/mdx", | ||
"version": "2.0.0-ci.18+3a965dbb", | ||
"version": "2.0.0-ci.35+a3ccc0d9", | ||
"description": "Parse MDX and transpile to JSX", | ||
@@ -40,4 +40,4 @@ "repository": "mdx-js/mdx", | ||
"scripts": { | ||
"test-api": "jest test", | ||
"test-coverage": "jest test --coverage", | ||
"test-api": "uvu -r esbuild-register test \"\\.jsx?$\"", | ||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api", | ||
"test-types": "dtslint types", | ||
@@ -55,3 +55,3 @@ "test": "yarn test-coverage && yarn test-types" | ||
"rehype-minify-whitespace": "^4.0.0", | ||
"remark-mdx": "2.0.0-ci.18+3a965dbb", | ||
"remark-mdx": "2.0.0-ci.35+a3ccc0d9", | ||
"remark-parse": "^9.0.0", | ||
@@ -68,3 +68,3 @@ "remark-squeeze-paragraphs": "^4.0.0", | ||
}, | ||
"gitHead": "3a965dbb51d4baa9fa4a5f9916886cfd4c4309e6" | ||
"gitHead": "a3ccc0d986cab6022357de32edc15d0ccc57fc4c" | ||
} |
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
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
25825
684