Socket
Socket
Sign inDemoInstall

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 3.0.1 to 4.0.0

11

inject.js

@@ -354,2 +354,11 @@ 'use strict';

// Parse JSX text
pp.jsx_parseText = function(value) {
var node = this.parseLiteral(value);
node.type = "JSXText";
return node;
};
// Parses entire JSX element from current position.

@@ -380,3 +389,3 @@

if (this.type === tt.jsxText)
return this.parseLiteral(this.value);
return this.jsx_parseText(this.value);
else if (this.type === tt.jsxTagStart)

@@ -383,0 +392,0 @@ return this.jsx_parseElement();

6

package.json

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

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

@@ -23,8 +23,8 @@ {

"dependencies": {
"acorn": "^3.0.4"
"acorn": "^5.0.3"
},
"devDependencies": {
"chai": "^3.0.0",
"mocha": "^2.2.5"
"mocha": "^3.3.0"
}
}

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