@mdx-js/mdx
Advanced tools
Comparing version 0.15.4 to 0.15.5
@@ -20,6 +20,7 @@ const toStyleObject = require('to-style').object | ||
const paramCaseRe = /^(aria[A-Z])|(data[A-Z])/ | ||
node.properties = Object.entries(node.properties).reduce((properties, [key, value]) => ({ | ||
...properties, | ||
[paramCaseRe.test(key) ? paramCase(key) : key]: value, | ||
}), {}) | ||
node.properties = Object.entries(node.properties).reduce((properties, [key, value]) => Object.assign( | ||
{}, | ||
properties, | ||
{ [paramCaseRe.test(key) ? paramCase(key) : key]: value }, | ||
), {}) | ||
} | ||
@@ -106,7 +107,6 @@ | ||
children = node.children.map(childNode => { | ||
const childOptions = { | ||
...options, | ||
const childOptions = Object.assign({}, options, { | ||
// tell all children inside <pre> tags to preserve newlines as text nodes | ||
preserveNewlines: preserveNewlines || node.tagName === 'pre', | ||
} | ||
}) | ||
return toJSX(childNode, node, childOptions) | ||
@@ -113,0 +113,0 @@ }).join('') |
{ | ||
"name": "@mdx-js/mdx", | ||
"version": "0.15.4", | ||
"version": "0.15.5", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12833
0