You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@babel/parser

Package Overview
Dependencies
Maintainers
4
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/parser - npm Package Compare versions

Comparing version
8.0.0-beta.2
to
8.0.0-beta.3
+7
-7
package.json
{
"name": "@babel/parser",
"version": "8.0.0-beta.2",
"version": "8.0.0-beta.3",
"description": "A JavaScript parser",

@@ -37,10 +37,10 @@ "author": "The Babel Team (https://babel.dev/team)",

"dependencies": {
"@babel/types": "^8.0.0-beta.2"
"@babel/types": "^8.0.0-beta.3"
},
"devDependencies": {
"@babel/code-frame": "^8.0.0-beta.2",
"@babel/helper-check-duplicate-nodes": "^8.0.0-beta.2",
"@babel/helper-fixtures": "^8.0.0-beta.2",
"@babel/helper-string-parser": "^8.0.0-beta.2",
"@babel/helper-validator-identifier": "^8.0.0-beta.2",
"@babel/code-frame": "^8.0.0-beta.3",
"@babel/helper-check-duplicate-nodes": "^8.0.0-beta.3",
"@babel/helper-fixtures": "^8.0.0-beta.3",
"@babel/helper-string-parser": "^8.0.0-beta.3",
"@babel/helper-validator-identifier": "^8.0.0-beta.3",
"charcodes": "^0.2.0"

@@ -47,0 +47,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 = true;

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

Sorry, the diff of this file is too big to display