@babel/parser
Advanced tools
+7
-7
| { | ||
| "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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
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
2014190
0.99%16433
0.81%16
6.67%Updated