Socket
Socket
Sign inDemoInstall

@mdx-js/mdx

Package Overview
Dependencies
Maintainers
3
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 0.15.4 to 0.15.5

14

mdx-hast-to-jsx.js

@@ -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",

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