hermes-parser
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -107,2 +107,5 @@ "use strict"; | ||
case 'Property': | ||
return this.mapProperty(node); | ||
default: | ||
@@ -226,2 +229,13 @@ return this.mapNodeDefault(node); | ||
mapProperty(nodeUnprocessed) { | ||
const node = this.mapNodeDefault(nodeUnprocessed); | ||
if (node.value.type === 'FunctionExpression') { | ||
node.value.loc.start = node.key.loc.end; | ||
node.value.range[0] = node.key.range[1]; | ||
} | ||
return node; | ||
} | ||
mapComment(node) { | ||
@@ -228,0 +242,0 @@ if (node.type === 'CommentBlock') { |
{ | ||
"name": "hermes-parser", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A JavaScript parser built from the Hermes engine", | ||
@@ -12,6 +12,6 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"hermes-estree": "0.6.0" | ||
"hermes-estree": "0.7.0" | ||
}, | ||
"devDependencies": { | ||
"hermes-transform": "0.6.0" | ||
"hermes-transform": "0.7.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3408
1107821
+ Addedhermes-estree@0.7.0(transitive)
- Removedhermes-estree@0.6.0(transitive)
Updatedhermes-estree@0.7.0