hermes-parser
Advanced tools
@@ -1118,5 +1118,5 @@ /** | ||
| { | ||
| if (node.assertions == null || node.assertions.length === 0) { | ||
| if (node.attributes == null || node.attributes.length === 0) { | ||
| // $FlowExpectedError[cannot-write] | ||
| delete node.assertions; | ||
| delete node.attributes; | ||
| } | ||
@@ -1123,0 +1123,0 @@ |
@@ -443,2 +443,4 @@ /** | ||
| function mapComponentDeclaration(node, options) { | ||
| var _node$async; | ||
| // Create empty loc for return type annotation nodes | ||
@@ -499,3 +501,3 @@ const createRendersTypeLoc = () => ({ | ||
| body: node.body, | ||
| async: false, | ||
| async: (_node$async = node.async) != null ? _node$async : false, | ||
| generator: false, | ||
@@ -549,2 +551,4 @@ predicate: null, | ||
| function mapHookDeclaration(node) { | ||
| var _node$async2; | ||
| const comp = { | ||
@@ -558,3 +562,3 @@ type: 'FunctionDeclaration', | ||
| body: node.body, | ||
| async: false, | ||
| async: (_node$async2 = node.async) != null ? _node$async2 : false, | ||
| generator: false, | ||
@@ -561,0 +565,0 @@ predicate: null, |
@@ -160,2 +160,3 @@ /** | ||
| static: false, | ||
| decorators: [], | ||
| value: { | ||
@@ -223,2 +224,3 @@ type: 'FunctionExpression', | ||
| static: true, | ||
| decorators: [], | ||
| typeAnnotation: null, | ||
@@ -225,0 +227,0 @@ variance: null, |
@@ -72,2 +72,3 @@ /** | ||
| DeclareVariable: ['id'], | ||
| Decorator: ['expression'], | ||
| DoWhileStatement: ['body', 'test'], | ||
@@ -106,3 +107,3 @@ EmptyStatement: [], | ||
| ImportAttribute: ['key', 'value'], | ||
| ImportDeclaration: ['specifiers', 'source', 'assertions'], | ||
| ImportDeclaration: ['specifiers', 'source', 'attributes'], | ||
| ImportDefaultSpecifier: ['local'], | ||
@@ -157,3 +158,3 @@ ImportExpression: ['source', 'options'], | ||
| MetaProperty: ['meta', 'property'], | ||
| MethodDefinition: ['key', 'value'], | ||
| MethodDefinition: ['key', 'value', 'decorators'], | ||
| MixedTypeAnnotation: [], | ||
@@ -180,3 +181,3 @@ NeverTypeAnnotation: [], | ||
| Property: ['key', 'value'], | ||
| PropertyDefinition: ['key', 'value', 'variance', 'typeAnnotation'], | ||
| PropertyDefinition: ['key', 'value', 'decorators', 'variance', 'typeAnnotation'], | ||
| QualifiedTypeIdentifier: ['qualification', 'id'], | ||
@@ -183,0 +184,0 @@ QualifiedTypeofIdentifier: ['qualification', 'id'], |
@@ -228,2 +228,5 @@ /** | ||
| }, | ||
| Decorator: { | ||
| expression: 'Node' | ||
| }, | ||
| DoWhileStatement: { | ||
@@ -368,3 +371,3 @@ body: 'Node', | ||
| source: 'Node', | ||
| assertions: 'NodeList' | ||
| attributes: 'NodeList' | ||
| }, | ||
@@ -540,3 +543,4 @@ ImportDefaultSpecifier: { | ||
| key: 'Node', | ||
| value: 'Node' | ||
| value: 'Node', | ||
| decorators: 'NodeList' | ||
| }, | ||
@@ -621,2 +625,3 @@ MixedTypeAnnotation: {}, | ||
| value: 'Node', | ||
| decorators: 'NodeList', | ||
| variance: 'Node', | ||
@@ -623,0 +628,0 @@ typeAnnotation: 'Node' |
@@ -1118,5 +1118,5 @@ /** | ||
| { | ||
| if (node.assertions == null || node.assertions.length === 0) { | ||
| if (node.attributes == null || node.attributes.length === 0) { | ||
| // $FlowExpectedError[cannot-write] | ||
| delete node.assertions; | ||
| delete node.attributes; | ||
| } | ||
@@ -1123,0 +1123,0 @@ |
@@ -443,2 +443,4 @@ /** | ||
| function mapComponentDeclaration(node, options) { | ||
| var _node$async; | ||
| // Create empty loc for return type annotation nodes | ||
@@ -499,3 +501,3 @@ const createRendersTypeLoc = () => ({ | ||
| body: node.body, | ||
| async: false, | ||
| async: (_node$async = node.async) != null ? _node$async : false, | ||
| generator: false, | ||
@@ -549,2 +551,4 @@ predicate: null, | ||
| function mapHookDeclaration(node) { | ||
| var _node$async2; | ||
| const comp = { | ||
@@ -558,3 +562,3 @@ type: 'FunctionDeclaration', | ||
| body: node.body, | ||
| async: false, | ||
| async: (_node$async2 = node.async) != null ? _node$async2 : false, | ||
| generator: false, | ||
@@ -561,0 +565,0 @@ predicate: null, |
@@ -160,2 +160,3 @@ /** | ||
| static: false, | ||
| decorators: [], | ||
| value: { | ||
@@ -223,2 +224,3 @@ type: 'FunctionExpression', | ||
| static: true, | ||
| decorators: [], | ||
| typeAnnotation: null, | ||
@@ -225,0 +227,0 @@ variance: null, |
@@ -72,2 +72,3 @@ /** | ||
| DeclareVariable: ['id'], | ||
| Decorator: ['expression'], | ||
| DoWhileStatement: ['body', 'test'], | ||
@@ -106,3 +107,3 @@ EmptyStatement: [], | ||
| ImportAttribute: ['key', 'value'], | ||
| ImportDeclaration: ['specifiers', 'source', 'assertions'], | ||
| ImportDeclaration: ['specifiers', 'source', 'attributes'], | ||
| ImportDefaultSpecifier: ['local'], | ||
@@ -157,3 +158,3 @@ ImportExpression: ['source', 'options'], | ||
| MetaProperty: ['meta', 'property'], | ||
| MethodDefinition: ['key', 'value'], | ||
| MethodDefinition: ['key', 'value', 'decorators'], | ||
| MixedTypeAnnotation: [], | ||
@@ -180,3 +181,3 @@ NeverTypeAnnotation: [], | ||
| Property: ['key', 'value'], | ||
| PropertyDefinition: ['key', 'value', 'variance', 'typeAnnotation'], | ||
| PropertyDefinition: ['key', 'value', 'decorators', 'variance', 'typeAnnotation'], | ||
| QualifiedTypeIdentifier: ['qualification', 'id'], | ||
@@ -183,0 +184,0 @@ QualifiedTypeofIdentifier: ['qualification', 'id'], |
@@ -228,2 +228,5 @@ /** | ||
| }, | ||
| Decorator: { | ||
| expression: 'Node' | ||
| }, | ||
| DoWhileStatement: { | ||
@@ -368,3 +371,3 @@ body: 'Node', | ||
| source: 'Node', | ||
| assertions: 'NodeList' | ||
| attributes: 'NodeList' | ||
| }, | ||
@@ -540,3 +543,4 @@ ImportDefaultSpecifier: { | ||
| key: 'Node', | ||
| value: 'Node' | ||
| value: 'Node', | ||
| decorators: 'NodeList' | ||
| }, | ||
@@ -621,2 +625,3 @@ MixedTypeAnnotation: {}, | ||
| value: 'Node', | ||
| decorators: 'NodeList', | ||
| variance: 'Node', | ||
@@ -623,0 +628,0 @@ typeAnnotation: 'Node' |
+2
-2
| { | ||
| "name": "hermes-parser", | ||
| "version": "0.33.3", | ||
| "version": "0.34.0", | ||
| "description": "A JavaScript parser built from the Hermes engine", | ||
@@ -12,3 +12,3 @@ "main": "dist/index.js", | ||
| "dependencies": { | ||
| "hermes-estree": "0.33.3" | ||
| "hermes-estree": "0.34.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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
1605280
1.33%17301
0.25%+ Added
- Removed
Updated