Socket
Socket
Sign inDemoInstall

eslint-mdx

Package Overview
Dependencies
Maintainers
4
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-mdx - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

4

lib/worker.js

@@ -230,3 +230,3 @@ "use strict";

if (attrValue == null) {
return Object.assign(Object.assign({}, attrNamePos), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, attrNamePos), { type: 'JSXIdentifier', name: attrName }), value: null });
return Object.assign(Object.assign({}, normalizeNode(attrStart, lastAttrOffset + 1)), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, attrNamePos), { type: 'JSXIdentifier', name: attrName }), value: null });
}

@@ -254,3 +254,3 @@ const attrEqualOffset = nextCharOffset(attrStart + attrNameLength);

}
return Object.assign(Object.assign({}, attrNamePos), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, normalizeNode(attrStart, lastAttrOffset + 1)), { type: 'JSXIdentifier', name: attrName }), value: typeof attr.value === 'string'
return Object.assign(Object.assign({}, attrNamePos), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, attrNamePos), { type: 'JSXIdentifier', name: attrName }), value: typeof attr.value === 'string'
? Object.assign(Object.assign({}, attrValuePos), { type: 'Literal', value: attr.value }) : Object.assign(Object.assign({}, attrValuePos), { type: 'JSXExpressionContainer', expression: attr.value.data.estree

@@ -257,0 +257,0 @@ .body[0].expression }) });

{
"name": "eslint-mdx",
"version": "2.0.3",
"version": "2.0.4",
"description": "ESLint Parser for MDX",

@@ -5,0 +5,0 @@ "repository": "git+https://github.com/mdx-js/eslint-mdx.git",

Sorry, the diff of this file is not supported yet

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