Comparing version 4.0.1 to 4.1.0
@@ -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 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/RReverser/acorn-jsx", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"maintainers": [ | ||
@@ -8,0 +8,0 @@ { |
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
23065
635