@babel/parser
Advanced tools
+3
-3
| { | ||
| "name": "@babel/parser", | ||
| "version": "7.28.4", | ||
| "version": "7.28.5", | ||
| "description": "A JavaScript parser", | ||
@@ -38,3 +38,3 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
| "dependencies": { | ||
| "@babel/types": "^7.28.4" | ||
| "@babel/types": "^7.28.5" | ||
| }, | ||
@@ -46,3 +46,3 @@ "devDependencies": { | ||
| "@babel/helper-string-parser": "^7.27.1", | ||
| "@babel/helper-validator-identifier": "^7.27.1", | ||
| "@babel/helper-validator-identifier": "^7.28.5", | ||
| "charcodes": "^0.2.0" | ||
@@ -49,0 +49,0 @@ }, |
@@ -6,2 +6,22 @@ // This file is auto-generated! Do not modify it directly. | ||
| declare class Position { | ||
| line: number; | ||
| column: number; | ||
| index: number; | ||
| constructor(line: number, col: number, index: number); | ||
| } | ||
| type SyntaxPlugin = "flow" | "typescript" | "jsx" | "pipelineOperator" | "placeholders"; | ||
| type ParseErrorCode = "BABEL_PARSER_SYNTAX_ERROR" | "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"; | ||
| interface ParseErrorSpecification<ErrorDetails> { | ||
| code: ParseErrorCode; | ||
| reasonCode: string; | ||
| syntaxPlugin?: SyntaxPlugin; | ||
| missingPlugin?: string | string[]; | ||
| loc: Position; | ||
| details: ErrorDetails; | ||
| pos: number; | ||
| } | ||
| type ParseError$1<ErrorDetails> = SyntaxError & ParseErrorSpecification<ErrorDetails>; | ||
| type BABEL_8_BREAKING = false; | ||
@@ -124,2 +144,6 @@ type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never; | ||
| allowNewTargetOutsideFunction?: boolean; | ||
| /** | ||
| * By default, super calls are not allowed outside of a method. | ||
| * Set this to true to accept such code. | ||
| */ | ||
| allowSuperOutsideMethod?: boolean; | ||
@@ -223,8 +247,7 @@ /** | ||
| type ParserOptions = Partial<Options>; | ||
| interface ParseError { | ||
| code: string; | ||
| reasonCode: string; | ||
| } | ||
| type ParseError = ParseError$1<object>; | ||
| type ParseResult<Result extends File | Expression = File> = Result & { | ||
| comments: File["comments"]; | ||
| errors: null | ParseError[]; | ||
| tokens?: File["tokens"]; | ||
| }; | ||
@@ -231,0 +254,0 @@ /** |
Sorry, the diff of this file is too big to display
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
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
1994360
0.7%14959
0.59%Updated