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

acorn-jsx

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-jsx - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc