hermes-parser
Advanced tools
@@ -129,3 +129,3 @@ /** | ||
| } // Move directives from body to new directives array | ||
| // $FlowExpectedError[incompatible-call] We are adding properties for babel that don't exist in the ESTree types. | ||
| // $FlowExpectedError[incompatible-type] We are adding properties for babel that don't exist in the ESTree types. | ||
@@ -193,3 +193,3 @@ | ||
| type: 'File', | ||
| // $FlowExpectedError[prop-missing] Comments, docblock and tokens are purposely missing to match the Babel AST. | ||
| // $FlowExpectedError[incompatible-type] Comments, docblock and tokens are purposely missing to match the Babel AST. | ||
| program: { | ||
@@ -285,3 +285,3 @@ type: 'Program', | ||
| key: node.key, | ||
| // $FlowExpectedError[incompatible-cast] | ||
| // $FlowExpectedError[incompatible-type] | ||
| value: node.value, | ||
@@ -404,6 +404,6 @@ method: node.method, | ||
| // CallExpression where the callee is an Import node. | ||
| // $FlowExpectedError[prop-missing] optional and typeArguments are missing to match existing output. | ||
| // $FlowExpectedError[incompatible-type] optional and typeArguments are missing to match existing output. | ||
| return { | ||
| type: 'CallExpression', | ||
| // $FlowExpectedError[incompatible-return] This is a babel specific node | ||
| // $FlowExpectedError[incompatible-type] This is a babel specific node | ||
| callee: { | ||
@@ -490,3 +490,3 @@ type: 'Import', | ||
| return nodeWith(node, { | ||
| // $FlowExpectedError[incompatible-call] Special override for Babel | ||
| // $FlowExpectedError[incompatible-type] Special override for Babel | ||
| argument: { | ||
@@ -1101,3 +1101,3 @@ type: 'GenericTypeAnnotation', | ||
| transform(node) { | ||
| // $FlowExpectedError[incompatible-call] We override the type to support the additional Babel types | ||
| // $FlowExpectedError[incompatible-type] We override the type to support the additional Babel types | ||
| return transformNode(node); | ||
@@ -1107,3 +1107,3 @@ }, | ||
| visitorKeys: FlowESTreeAndBabelVisitorKeys | ||
| }); // $FlowExpectedError[incompatible-call] We override the type to support the additional Babel types | ||
| }); // $FlowExpectedError[incompatible-type] We override the type to support the additional Babel types | ||
@@ -1110,0 +1110,0 @@ |
@@ -760,3 +760,3 @@ /** | ||
| return nodeWith(node, { | ||
| /* $FlowExpectedError[incompatible-call] We know `mapStatementList` will | ||
| /* $FlowExpectedError[incompatible-type] We know `mapStatementList` will | ||
| not return `ModuleDeclaration` nodes if it is not passed any */ | ||
@@ -763,0 +763,0 @@ consequent |
@@ -62,3 +62,3 @@ "use strict"; | ||
| throw new Error(`HermesToESTreeAdapter: Must return a Program node, instead of "${resultNode.type}". `); | ||
| } // $FlowExpectedError[incompatible-return] We know this is a program at this point. | ||
| } // $FlowExpectedError[incompatible-type] We know this is a program at this point. | ||
@@ -65,0 +65,0 @@ |
@@ -129,3 +129,3 @@ /** | ||
| } // Move directives from body to new directives array | ||
| // $FlowExpectedError[incompatible-call] We are adding properties for babel that don't exist in the ESTree types. | ||
| // $FlowExpectedError[incompatible-type] We are adding properties for babel that don't exist in the ESTree types. | ||
@@ -193,3 +193,3 @@ | ||
| type: 'File', | ||
| // $FlowExpectedError[prop-missing] Comments, docblock and tokens are purposely missing to match the Babel AST. | ||
| // $FlowExpectedError[incompatible-type] Comments, docblock and tokens are purposely missing to match the Babel AST. | ||
| program: { | ||
@@ -285,3 +285,3 @@ type: 'Program', | ||
| key: node.key, | ||
| // $FlowExpectedError[incompatible-cast] | ||
| // $FlowExpectedError[incompatible-type] | ||
| value: node.value, | ||
@@ -404,6 +404,6 @@ method: node.method, | ||
| // CallExpression where the callee is an Import node. | ||
| // $FlowExpectedError[prop-missing] optional and typeArguments are missing to match existing output. | ||
| // $FlowExpectedError[incompatible-type] optional and typeArguments are missing to match existing output. | ||
| return { | ||
| type: 'CallExpression', | ||
| // $FlowExpectedError[incompatible-return] This is a babel specific node | ||
| // $FlowExpectedError[incompatible-type] This is a babel specific node | ||
| callee: { | ||
@@ -490,3 +490,3 @@ type: 'Import', | ||
| return nodeWith(node, { | ||
| // $FlowExpectedError[incompatible-call] Special override for Babel | ||
| // $FlowExpectedError[incompatible-type] Special override for Babel | ||
| argument: { | ||
@@ -1101,3 +1101,3 @@ type: 'GenericTypeAnnotation', | ||
| transform(node) { | ||
| // $FlowExpectedError[incompatible-call] We override the type to support the additional Babel types | ||
| // $FlowExpectedError[incompatible-type] We override the type to support the additional Babel types | ||
| return transformNode(node); | ||
@@ -1107,3 +1107,3 @@ }, | ||
| visitorKeys: FlowESTreeAndBabelVisitorKeys | ||
| }); // $FlowExpectedError[incompatible-call] We override the type to support the additional Babel types | ||
| }); // $FlowExpectedError[incompatible-type] We override the type to support the additional Babel types | ||
@@ -1110,0 +1110,0 @@ |
@@ -760,3 +760,3 @@ /** | ||
| return nodeWith(node, { | ||
| /* $FlowExpectedError[incompatible-call] We know `mapStatementList` will | ||
| /* $FlowExpectedError[incompatible-type] We know `mapStatementList` will | ||
| not return `ModuleDeclaration` nodes if it is not passed any */ | ||
@@ -763,0 +763,0 @@ consequent |
@@ -62,3 +62,3 @@ "use strict"; | ||
| throw new Error(`HermesToESTreeAdapter: Must return a Program node, instead of "${resultNode.type}". `); | ||
| } // $FlowExpectedError[incompatible-return] We know this is a program at this point. | ||
| } // $FlowExpectedError[incompatible-type] We know this is a program at this point. | ||
@@ -65,0 +65,0 @@ |
+2
-2
| { | ||
| "name": "hermes-parser", | ||
| "version": "0.31.2", | ||
| "version": "0.32.0", | ||
| "description": "A JavaScript parser built from the Hermes engine", | ||
@@ -12,3 +12,3 @@ "main": "dist/index.js", | ||
| "dependencies": { | ||
| "hermes-estree": "0.31.2" | ||
| "hermes-estree": "0.32.0" | ||
| }, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1490681
0+ Added
- Removed
Updated