Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

hermes-parser

Package Overview
Dependencies
Maintainers
3
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermes-parser - npm Package Compare versions

Comparing version
0.31.2
to
0.32.0
+8
-8
dist/babel/TransformESTreeToBabel.js

@@ -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 @@

{
"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