Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@babel/core

Package Overview
Dependencies
Maintainers
4
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/core - npm Package Compare versions

Comparing version
8.0.0-beta.0
to
8.0.0-beta.1
+1
-1
lib/config/cache-contexts.js

@@ -0,3 +1,3 @@

export {};
//# sourceMappingURL=cache-contexts.js.map

@@ -18,3 +18,3 @@ import buildDebug from "debug";

const debug = buildDebug("babel:config:loading:files:configuration");
export const ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"];
export const ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts", "babel.config.ts", "babel.config.mts"];
const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"];

@@ -21,0 +21,0 @@ const BABELIGNORE_FILENAME = ".babelignore";

@@ -37,2 +37,8 @@ import { isAsync, waitFor } from "../../gensync-utils/async.js";

});
const tsNotSupportedError = ext => `\
You are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:
- Use a .cts config file
- Update to Node.js 23.6.0, which has native TypeScript support
- Install tsx to transpile ${ext} files on the fly\
`;
const SUPPORTED_EXTENSIONS = {

@@ -85,3 +91,7 @@ ".js": "unknown",

}
throw new ConfigError(esmError, filepath);
if (isTS) {
throw new ConfigError(tsNotSupportedError(ext), filepath);
} else {
throw new ConfigError(esmError, filepath);
}
default:

@@ -92,12 +102,7 @@ throw new Error("Internal Babel error: unreachable code.");

function ensureTsSupport(filepath, ext, callback) {
if (require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]) {
if (process.features.typescript || require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]) {
return callback();
}
if (ext !== ".cts") {
throw new ConfigError(`\
You are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:
- Use a .cts config file
- Update to Node.js 23.6.0, which has native TypeScript support
- Install ts-node to transpile ${ext} files on the fly\
`, filepath);
throw new ConfigError(tsNotSupportedError(ext), filepath);
}

@@ -104,0 +109,0 @@ const opts = {

@@ -0,3 +1,3 @@

export {};
//# sourceMappingURL=types.js.map

@@ -45,4 +45,4 @@ import { isBrowsersQueryValid, TargetNames } from "@babel/helper-compilation-targets";

export function assertSourceType(loc, value) {
if (value !== undefined && value !== "module" && value !== "script" && value !== "unambiguous") {
throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`);
if (value !== undefined && value !== "module" && value !== "commonjs" && value !== "script" && value !== "unambiguous") {
throw new Error(`${msg(loc)} must be "module", "commonjs", "script", "unambiguous", or undefined`);
}

@@ -49,0 +49,0 @@ return value;

@@ -16,2 +16,3 @@ import * as _babel_traverse from '@babel/traverse';

type ___CallerMetadata = CallerMetadata;
type ___ConfigAPI = ConfigAPI;
type ___ConfigItem<API> = ConfigItem<API>;

@@ -60,3 +61,3 @@ declare const ___ConfigItem: typeof ConfigItem;

declare namespace __ {
export { type ___CallerMetadata as CallerMetadata, ___ConfigItem as ConfigItem, ___DEFAULT_EXTENSIONS as DEFAULT_EXTENSIONS, ___File as File, type ___FileResult as FileResult, type ___InputOptions as InputOptions, ___NodePath as NodePath, type ___PluginAPI as PluginAPI, type ___PluginObject as PluginObject, ___PluginPass as PluginPass, type ___PresetAPI as PresetAPI, type ValidatedOptions as PresetObject, ___Scope as Scope, type ___Visitor as Visitor, export_default as buildExternalHelpers, ___createConfigItem as createConfigItem, ___createConfigItemAsync as createConfigItemAsync, ___createConfigItemSync as createConfigItemSync, ___getEnv as getEnv, ___loadOptions as loadOptions, ___loadOptionsAsync as loadOptionsAsync, ___loadOptionsSync as loadOptionsSync, ___loadPartialConfig as loadPartialConfig, ___loadPartialConfigAsync as loadPartialConfigAsync, ___loadPartialConfigSync as loadPartialConfigSync, ___parse as parse, ___parseAsync as parseAsync, ___parseSync as parseSync, ___resolvePlugin as resolvePlugin, ___resolvePreset as resolvePreset, ___template as template, ___tokTypes as tokTypes, ___transform as transform, ___transformAsync as transformAsync, ___transformFile as transformFile, ___transformFileAsync as transformFileAsync, ___transformFileSync as transformFileSync, ___transformFromAst as transformFromAst, ___transformFromAstAsync as transformFromAstAsync, ___transformFromAstSync as transformFromAstSync, ___transformSync as transformSync, _babel_traverse__default as traverse, t as types, ___version as version };
export { type ___CallerMetadata as CallerMetadata, type ___ConfigAPI as ConfigAPI, ___ConfigItem as ConfigItem, ___DEFAULT_EXTENSIONS as DEFAULT_EXTENSIONS, ___File as File, type ___FileResult as FileResult, type ___InputOptions as InputOptions, ___NodePath as NodePath, type ___PluginAPI as PluginAPI, type ___PluginObject as PluginObject, ___PluginPass as PluginPass, type ___PresetAPI as PresetAPI, type ValidatedOptions as PresetObject, ___Scope as Scope, type ___Visitor as Visitor, export_default as buildExternalHelpers, ___createConfigItem as createConfigItem, ___createConfigItemAsync as createConfigItemAsync, ___createConfigItemSync as createConfigItemSync, ___getEnv as getEnv, ___loadOptions as loadOptions, ___loadOptionsAsync as loadOptionsAsync, ___loadOptionsSync as loadOptionsSync, ___loadPartialConfig as loadPartialConfig, ___loadPartialConfigAsync as loadPartialConfigAsync, ___loadPartialConfigSync as loadPartialConfigSync, ___parse as parse, ___parseAsync as parseAsync, ___parseSync as parseSync, ___resolvePlugin as resolvePlugin, ___resolvePreset as resolvePreset, ___template as template, ___tokTypes as tokTypes, ___transform as transform, ___transformAsync as transformAsync, ___transformFile as transformFile, ___transformFileAsync as transformFileAsync, ___transformFileSync as transformFileSync, ___transformFromAst as transformFromAst, ___transformFromAstAsync as transformFromAstAsync, ___transformFromAstSync as transformFromAstSync, ___transformSync as transformSync, _babel_traverse__default as traverse, t as types, ___version as version };
}

@@ -280,3 +281,3 @@

type SourceMapsOption = boolean | "inline" | "both";
type SourceTypeOption = "module" | "script" | "unambiguous";
type SourceTypeOption = "module" | "commonjs" | "script" | "unambiguous";
type CompactOption = boolean | "auto";

@@ -487,2 +488,2 @@ type RootInputSourceMapOption = object | boolean;

export { type CallerMetadata, ConfigItem, DEFAULT_EXTENSIONS, File, type FileResult, type InputOptions, type PluginAPI, type PluginObject, PluginPass, type PresetAPI, type ValidatedOptions as PresetObject, type Visitor, export_default as buildExternalHelpers, createConfigItem, createConfigItemAsync, createConfigItemSync, getEnv, loadOptions, loadOptionsAsync, loadOptionsSync, loadPartialConfig, loadPartialConfigAsync, loadPartialConfigSync, parse, parseAsync, parseSync, resolvePlugin, resolvePreset, transform, transformAsync, transformFile, transformFileAsync, transformFileSync, transformFromAst, transformFromAstAsync, transformFromAstSync, transformSync, version };
export { type CallerMetadata, type ConfigAPI, ConfigItem, DEFAULT_EXTENSIONS, File, type FileResult, type InputOptions, type PluginAPI, type PluginObject, PluginPass, type PresetAPI, type ValidatedOptions as PresetObject, type Visitor, export_default as buildExternalHelpers, createConfigItem, createConfigItemAsync, createConfigItemSync, getEnv, loadOptions, loadOptionsAsync, loadOptionsSync, loadPartialConfig, loadPartialConfigAsync, loadPartialConfigSync, parse, parseAsync, parseSync, resolvePlugin, resolvePreset, transform, transformAsync, transformFile, transformFileAsync, transformFileSync, transformFromAst, transformFromAstAsync, transformFromAstSync, transformSync, version };
;
export const version = "8.0.0-beta.0";
export const version = "8.0.0-beta.1";
export { default as File } from "./transformation/file/file.js";

@@ -4,0 +4,0 @@ export { default as buildExternalHelpers } from "./tools/build-external-helpers.js";

{
"name": "@babel/core",
"version": "8.0.0-beta.0",
"version": "8.0.0-beta.1",
"description": "Babel compiler core.",

@@ -50,10 +50,10 @@ "main": "./lib/index.js",

"@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^8.0.0-beta.0",
"@babel/generator": "^8.0.0-beta.0",
"@babel/helper-compilation-targets": "^8.0.0-beta.0",
"@babel/helpers": "^8.0.0-beta.0",
"@babel/parser": "^8.0.0-beta.0",
"@babel/template": "^8.0.0-beta.0",
"@babel/traverse": "^8.0.0-beta.0",
"@babel/types": "^8.0.0-beta.0",
"@babel/code-frame": "^8.0.0-beta.1",
"@babel/generator": "^8.0.0-beta.1",
"@babel/helper-compilation-targets": "^8.0.0-beta.1",
"@babel/helpers": "^8.0.0-beta.1",
"@babel/parser": "^8.0.0-beta.1",
"@babel/template": "^8.0.0-beta.1",
"@babel/traverse": "^8.0.0-beta.1",
"@babel/types": "^8.0.0-beta.1",
"@types/gensync": "^1.0.0",

@@ -67,9 +67,9 @@ "convert-source-map": "^2.0.0",

"devDependencies": {
"@babel/helper-transform-fixture-test-runner": "^8.0.0-beta.0",
"@babel/plugin-syntax-flow": "^8.0.0-beta.0",
"@babel/plugin-transform-flow-strip-types": "^8.0.0-beta.0",
"@babel/plugin-transform-modules-commonjs": "^8.0.0-beta.0",
"@babel/preset-env": "^8.0.0-beta.0",
"@babel/preset-typescript": "^8.0.0-beta.0",
"@jridgewell/trace-mapping": "^0.3.25",
"@babel/helper-transform-fixture-test-runner": "^8.0.0-beta.1",
"@babel/plugin-syntax-flow": "^8.0.0-beta.1",
"@babel/plugin-transform-flow-strip-types": "^8.0.0-beta.1",
"@babel/plugin-transform-modules-commonjs": "^8.0.0-beta.1",
"@babel/preset-env": "^8.0.0-beta.1",
"@babel/preset-typescript": "^8.0.0-beta.1",
"@jridgewell/trace-mapping": "^0.3.28",
"@types/convert-source-map": "^2.0.0",

@@ -80,3 +80,4 @@ "@types/debug": "^4.1.0",

"rimraf": "^3.0.0",
"ts-node": "^11.0.0-beta.1"
"ts-node": "^11.0.0-beta.1",
"tsx": "^4.20.3"
},

@@ -83,0 +84,0 @@ "exports": {

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