@babel/core
Advanced tools
+1
-2
@@ -215,3 +215,3 @@ "use strict"; | ||
| ; | ||
| const version = exports.version = "7.26.10"; | ||
| const version = exports.version = "7.27.1"; | ||
| const resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath; | ||
@@ -222,3 +222,2 @@ exports.resolvePlugin = resolvePlugin; | ||
| const DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); | ||
| ; | ||
| { | ||
@@ -225,0 +224,0 @@ exports.OptionManager = class OptionManager { |
+16
-16
| { | ||
| "name": "@babel/core", | ||
| "version": "7.26.10", | ||
| "version": "7.27.1", | ||
| "description": "Babel compiler core.", | ||
@@ -50,11 +50,11 @@ "main": "./lib/index.js", | ||
| "@ampproject/remapping": "^2.2.0", | ||
| "@babel/code-frame": "^7.26.2", | ||
| "@babel/generator": "^7.26.10", | ||
| "@babel/helper-compilation-targets": "^7.26.5", | ||
| "@babel/helper-module-transforms": "^7.26.0", | ||
| "@babel/helpers": "^7.26.10", | ||
| "@babel/parser": "^7.26.10", | ||
| "@babel/template": "^7.26.9", | ||
| "@babel/traverse": "^7.26.10", | ||
| "@babel/types": "^7.26.10", | ||
| "@babel/code-frame": "^7.27.1", | ||
| "@babel/generator": "^7.27.1", | ||
| "@babel/helper-compilation-targets": "^7.27.1", | ||
| "@babel/helper-module-transforms": "^7.27.1", | ||
| "@babel/helpers": "^7.27.1", | ||
| "@babel/parser": "^7.27.1", | ||
| "@babel/template": "^7.27.1", | ||
| "@babel/traverse": "^7.27.1", | ||
| "@babel/types": "^7.27.1", | ||
| "convert-source-map": "^2.0.0", | ||
@@ -67,8 +67,8 @@ "debug": "^4.1.0", | ||
| "devDependencies": { | ||
| "@babel/helper-transform-fixture-test-runner": "^7.26.5", | ||
| "@babel/plugin-syntax-flow": "^7.26.0", | ||
| "@babel/plugin-transform-flow-strip-types": "^7.26.5", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.26.3", | ||
| "@babel/preset-env": "^7.26.9", | ||
| "@babel/preset-typescript": "^7.26.0", | ||
| "@babel/helper-transform-fixture-test-runner": "^7.27.1", | ||
| "@babel/plugin-syntax-flow": "^7.27.1", | ||
| "@babel/plugin-transform-flow-strip-types": "^7.27.1", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.27.1", | ||
| "@babel/preset-env": "^7.27.1", | ||
| "@babel/preset-typescript": "^7.27.1", | ||
| "@jridgewell/trace-mapping": "^0.3.25", | ||
@@ -75,0 +75,0 @@ "@types/convert-source-map": "^2.0.0", |
@@ -0,1 +1,3 @@ | ||
| /* c8 ignore start */ | ||
| import type { Handler } from "gensync"; | ||
@@ -2,0 +4,0 @@ |
@@ -0,1 +1,3 @@ | ||
| /* c8 ignore start */ | ||
| import type { ValidatedOptions } from "./validation/options.ts"; | ||
@@ -2,0 +4,0 @@ import getTargets, { |
@@ -9,3 +9,3 @@ type browserType = typeof import("./resolve-targets-browser"); | ||
| import type { ValidatedOptions } from "./validation/options.ts"; | ||
| import path from "path"; | ||
| import path from "node:path"; | ||
| import getTargets, { | ||
@@ -12,0 +12,0 @@ type InputTargets, |
@@ -0,1 +1,3 @@ | ||
| /* c8 ignore start */ | ||
| // duplicated from transform-file so we do not have to import anything here | ||
@@ -2,0 +4,0 @@ type TransformFile = { |
| "use strict"; | ||
| const babelP = import("./lib/index.js"); | ||
| let babel = null; | ||
| Object.defineProperty(exports, "__ initialize @babel/core cjs proxy __", { | ||
| set(val) { | ||
| babel = val; | ||
| }, | ||
| }); | ||
| exports.version = require("./package.json").version; | ||
| const functionNames = [ | ||
| "createConfigItem", | ||
| "loadPartialConfig", | ||
| "loadOptions", | ||
| "transform", | ||
| "transformFile", | ||
| "transformFromAst", | ||
| "parse", | ||
| ]; | ||
| const propertyNames = [ | ||
| "buildExternalHelpers", | ||
| "types", | ||
| "tokTypes", | ||
| "traverse", | ||
| "template", | ||
| ]; | ||
| for (const name of functionNames) { | ||
| exports[name] = function (...args) { | ||
| if ( | ||
| process.env.BABEL_8_BREAKING && | ||
| typeof args[args.length - 1] !== "function" | ||
| ) { | ||
| throw new Error( | ||
| `Starting from Babel 8.0.0, the '${name}' function expects a callback. If you need to call it synchronously, please use '${name}Sync'.` | ||
| ); | ||
| } | ||
| babelP.then(babel => { | ||
| babel[name](...args); | ||
| }); | ||
| }; | ||
| exports[`${name}Async`] = function (...args) { | ||
| return babelP.then(babel => babel[`${name}Async`](...args)); | ||
| }; | ||
| exports[`${name}Sync`] = function (...args) { | ||
| if (!babel) throw notLoadedError(`${name}Sync`, "callable"); | ||
| return babel[`${name}Sync`](...args); | ||
| }; | ||
| } | ||
| for (const name of propertyNames) { | ||
| Object.defineProperty(exports, name, { | ||
| get() { | ||
| if (!babel) throw notLoadedError(name, "accessible"); | ||
| return babel[name]; | ||
| }, | ||
| }); | ||
| } | ||
| function notLoadedError(name, keyword) { | ||
| return new Error( | ||
| `The \`${name}\` export of @babel/core is only ${keyword}` + | ||
| ` from the CommonJS version after that the ESM version is loaded.` | ||
| ); | ||
| } |
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 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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances 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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances 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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
24
-4%794180
-0.23%119
-0.83%6900
-0.85%Updated
Updated
Updated
Updated
Updated
Updated
Updated