hermes-parser
Advanced tools
Comparing version 0.4.7 to 0.4.8
@@ -137,2 +137,6 @@ /** | ||
case 'IndexedAccessType': | ||
case 'OptionalIndexedAccessType': | ||
return this.mapUnsupportedTypeAnnotation(node); | ||
default: | ||
@@ -422,2 +426,17 @@ return this.mapNodeDefault(node); | ||
} | ||
/** | ||
* If Babel (the version we target) does not support a type annotation we | ||
* parse, we need to return some other valid type annotation in its place. | ||
*/ | ||
}, { | ||
key: "mapUnsupportedTypeAnnotation", | ||
value: function mapUnsupportedTypeAnnotation(node) { | ||
return { | ||
type: 'AnyTypeAnnotation', | ||
loc: node.loc, | ||
start: node.start, | ||
end: node.end | ||
}; | ||
} | ||
}]); | ||
@@ -424,0 +443,0 @@ |
{ | ||
"name": "hermes-parser", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "A JavaScript parser built from the Hermes engine", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
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
3544
1074120