Socket
Socket
Sign inDemoInstall

acorn-jsx

Package Overview
Dependencies
1
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.1 to 4.1.0

7

inject.js

@@ -171,2 +171,5 @@ 'use strict';

function getQualifiedJSXName(object) {
if (!object)
return object;
if (object.type === 'JSXIdentifier')

@@ -213,2 +216,4 @@ return object.name;

pp.jsx_parseElementName = function() {
if (this.type === tt.jsxTagEnd)
return '';
var startPos = this.start, startLoc = this.startLoc;

@@ -353,3 +358,3 @@ var node = this.jsx_parseNamespacedName();

}
return this.finishNode(node, 'JSXElement');
return this.finishNode(node, openingElement.name ? 'JSXElement' : 'JSXFragment');
};

@@ -356,0 +361,0 @@

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/RReverser/acorn-jsx",
"version": "4.0.1",
"version": "4.1.0",
"maintainers": [

@@ -8,0 +8,0 @@ {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc