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.0
to
8.0.0-beta.1
+7
-7
package.json
{
"name": "@babel/parser",
"version": "8.0.0-beta.0",
"version": "8.0.0-beta.1",
"description": "A JavaScript parser",

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

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

@@ -47,0 +47,0 @@ },

@@ -25,3 +25,3 @@ // This file is auto-generated! Do not modify it directly.

| IF_BABEL_7<"dynamicImport">
| "explicitResourceManagement"
| IF_BABEL_7<"explicitResourceManagement">
| "exportDefaultFrom"

@@ -58,2 +58,3 @@ | IF_BABEL_7<"exportNamespaceFrom">

| ["decorators", DecoratorsPluginOptions]
| ["discardBinding", { syntaxType: "void" }]
| ["estree", { classFeatures?: boolean }]

@@ -102,2 +103,3 @@ | IF_BABEL_7<["importAttributes", { deprecatedAssertSyntax: boolean }]>

type SourceType = "script" | "commonjs" | "module" | "unambiguous";
interface Options {

@@ -158,8 +160,10 @@ /**

* Indicate the mode the code should be parsed in.
* Can be one of "script", "module", or "unambiguous". Defaults to "script".
* Can be one of "script", "commonjs", "module", or "unambiguous". Defaults to "script".
* "unambiguous" will make @babel/parser attempt to guess, based on the presence
* of ES6 import or export statements.
* Files with ES6 imports and exports are considered "module" and are otherwise "script".
*
* Use "commonjs" to parse code that is intended to be run in a CommonJS environment such as Node.js.
*/
sourceType?: "script" | "module" | "unambiguous";
sourceType?: SourceType;
/**

@@ -166,0 +170,0 @@ * Correlate output AST nodes with their source filename.

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