Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mdx-js/util

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdx-js/util - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

4

index.js

@@ -31,3 +31,5 @@ const IMPORT_REGEX = /^import\s/

const escaped = text
.replace(/\\/g, '\\\\') // Escape all "\" to avoid unwanted escaping in text nodes
.replace(/\\(?!\$)/g, '\\\\') // Escape all "\" to avoid unwanted escaping in text nodes
// and ignore "\$" since it's already escaped and is common
// with prettier https://github.com/mdx-js/mdx/issues/606
.replace(/`/g, '\\`') // Escape "`"" since

@@ -34,0 +36,0 @@ .replace(/\$\{/g, '\\${') // Escape ${} in text so that it doesn't eval

{
"name": "@mdx-js/util",
"version": "1.4.3",
"version": "1.4.4",
"description": "Utilities for MDX libraries",

@@ -30,3 +30,3 @@ "license": "MIT",

},
"gitHead": "5a05c7164676054c90e1e072bd259d9c1d197597"
"gitHead": "dec55ec92f9ff42b0ae3617f0168a387e56f7ff8"
}
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