Socket
Socket
Sign inDemoInstall

@mdx-js/mdx

Package Overview
Dependencies
Maintainers
4
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 2.0.0-ci.18 to 2.0.0-ci.35

15

estree-to-js.js

@@ -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)

2

index.js

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