Comparing version 3.0.1 to 4.0.0
@@ -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(); |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22889
631
0
+ Addedacorn@5.7.4(transitive)
- Removedacorn@3.3.0(transitive)
Updatedacorn@^5.0.3