Socket
Socket
Sign inDemoInstall

@babel/core

Package Overview
Dependencies
Maintainers
4
Versions
191
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 7.23.2 to 7.23.3

5

lib/config/config-chain.js

@@ -42,3 +42,3 @@ "use strict";

}
const buildPresetChainWalker = makeChainWalker({
const buildPresetChainWalker = exports.buildPresetChainWalker = makeChainWalker({
root: preset => loadPresetDescriptors(preset),

@@ -50,3 +50,2 @@ env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),

});
exports.buildPresetChainWalker = buildPresetChainWalker;
const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors));

@@ -195,3 +194,3 @@ const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName)));

const chain = yield* loadFileChainWalker(input, context, files, baseLogger);
chain == null ? void 0 : chain.files.add(input.filepath);
chain == null || chain.files.add(input.filepath);
return chain;

@@ -198,0 +197,0 @@ }

@@ -56,4 +56,3 @@ "use strict";

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

@@ -82,3 +81,3 @@ const BABELIGNORE_FILENAME = ".babelignore";

if (typeof options.then === "function") {
options.catch == null ? void 0 : options.catch(() => {});
options.catch == null || options.catch(() => {});
throw new _configError.default(`You appear to be using an async configuration, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously return your config.`, filepath);

@@ -85,0 +84,0 @@ }

3

lib/config/files/index-browser.js

@@ -43,4 +43,3 @@ "use strict";

}
const ROOT_CONFIG_FILENAMES = [];
exports.ROOT_CONFIG_FILENAMES = ROOT_CONFIG_FILENAMES;
const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = [];
function resolvePlugin(name, dirname) {

@@ -47,0 +46,0 @@ return null;

@@ -47,4 +47,3 @@ "use strict";

} catch (_unused) {}
const supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2");
exports.supportsESM = supportsESM;
const supportsESM = exports.supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2");
function* loadCodeDefault(filepath, asyncError) {

@@ -51,0 +50,0 @@ switch (_path().extname(filepath)) {

@@ -42,6 +42,4 @@ "use strict";

const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;
const resolvePlugin = resolveStandardizedName.bind(null, "plugin");
exports.resolvePlugin = resolvePlugin;
const resolvePreset = resolveStandardizedName.bind(null, "preset");
exports.resolvePreset = resolvePreset;
const resolvePlugin = exports.resolvePlugin = resolveStandardizedName.bind(null, "plugin");
const resolvePreset = exports.resolvePreset = resolveStandardizedName.bind(null, "preset");
function* loadPlugin(name, dirname) {

@@ -48,0 +46,0 @@ const filepath = resolvePlugin(name, dirname, yield* (0, _async.isAsync)());

@@ -34,3 +34,3 @@ "use strict";

var _configError = require("../errors/config-error.js");
var _default = _gensync()(function* loadFullConfig(inputOpts) {
var _default = exports.default = _gensync()(function* loadFullConfig(inputOpts) {
var _opts$assumptions;

@@ -154,3 +154,2 @@ const result = yield* (0, _partial.default)(inputOpts);

});
exports.default = _default;
function enhanceError(context, fn) {

@@ -278,3 +277,3 @@ return function* (arg1, arg2) {

validateIfOptionNeedsFilename(options, descriptor);
(_options$overrides = options.overrides) == null ? void 0 : _options$overrides.forEach(overrideOptions => validateIfOptionNeedsFilename(overrideOptions, descriptor));
(_options$overrides = options.overrides) == null || _options$overrides.forEach(overrideOptions => validateIfOptionNeedsFilename(overrideOptions, descriptor));
}

@@ -281,0 +280,0 @@ };

@@ -67,3 +67,2 @@ "use strict";

}
;
if (_semver().satisfies(_index.version, range)) return;

@@ -70,0 +69,0 @@ const limit = Error.stackTraceLimit;

@@ -14,7 +14,6 @@ "use strict";

}
const ChainFormatter = {
const ChainFormatter = exports.ChainFormatter = {
Programmatic: 0,
Config: 1
};
exports.ChainFormatter = ChainFormatter;
const Formatter = {

@@ -21,0 +20,0 @@ title(type, callerName, filepath) {

@@ -135,3 +135,3 @@ "use strict";

const arr = assertArray(loc, value);
arr == null ? void 0 : arr.forEach((item, i) => assertIgnoreItem(access(loc, i), item));
arr == null || arr.forEach((item, i) => assertIgnoreItem(access(loc, i), item));
return arr;

@@ -138,0 +138,0 @@ }

@@ -74,4 +74,3 @@ "use strict";

const knownAssumptions = ["arrayLikeIsIterable", "constantReexports", "constantSuper", "enumerableModuleMeta", "ignoreFunctionLength", "ignoreToPrimitiveHint", "iterableIsArray", "mutableTemplateObject", "noClassCalls", "noDocumentAll", "noIncompleteNsImportDetection", "noNewArrows", "objectRestNoSymbols", "privateFieldsAsSymbols", "privateFieldsAsProperties", "pureGetters", "setClassMethods", "setComputedProperties", "setPublicClassFields", "setSpreadProperties", "skipForOfIteratorClosing", "superIsCallableConstructor"];
const assumptionsNames = new Set(knownAssumptions);
exports.assumptionsNames = assumptionsNames;
const assumptionsNames = exports.assumptionsNames = new Set(knownAssumptions);
function getSource(loc) {

@@ -78,0 +77,0 @@ return loc.type === "root" ? loc.source : getSource(loc.parent);

@@ -7,3 +7,3 @@ "use strict";

exports.default = void 0;
var _default = {
var _default = exports.default = {
auxiliaryComment: {

@@ -67,5 +67,4 @@ message: "Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"

};
exports.default = _default;
0 && 0;
//# sourceMappingURL=removed.js.map

@@ -23,7 +23,6 @@ "use strict";

});
const isAsync = _gensync()({
const isAsync = exports.isAsync = _gensync()({
sync: () => false,
errback: cb => cb(null, true)
});
exports.isAsync = isAsync;
function maybeAsync(fn, message) {

@@ -59,3 +58,3 @@ return _gensync()({

}
const onFirstPause = _gensync()({
const onFirstPause = exports.onFirstPause = _gensync()({
name: "onFirstPause",

@@ -77,4 +76,3 @@ arity: 2,

});
exports.onFirstPause = onFirstPause;
const waitFor = _gensync()({
const waitFor = exports.waitFor = _gensync()({
sync: x => x,

@@ -90,3 +88,2 @@ async: function () {

});
exports.waitFor = waitFor;
function isThenable(val) {

@@ -93,0 +90,0 @@ return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function";

@@ -21,14 +21,12 @@ "use strict";

}
const readFile = _gensync()({
const readFile = exports.readFile = _gensync()({
sync: _fs().readFileSync,
errback: _fs().readFile
});
exports.readFile = readFile;
const stat = _gensync()({
const stat = exports.stat = _gensync()({
sync: _fs().statSync,
errback: _fs().stat
});
exports.stat = stat;
0 && 0;
//# sourceMappingURL=fs.js.map

@@ -227,6 +227,4 @@ "use strict";

;
const version = "7.23.2";
exports.version = version;
const DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
exports.DEFAULT_EXTENSIONS = DEFAULT_EXTENSIONS;
const version = exports.version = "7.23.3";
const DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
;

@@ -233,0 +231,0 @@ {

@@ -27,3 +27,3 @@ "use strict";

});
const parse = function parse(code, opts, callback) {
const parse = exports.parse = function parse(code, opts, callback) {
if (typeof opts === "function") {

@@ -40,3 +40,2 @@ callback = opts;

};
exports.parse = parse;
function parseSync(...args) {

@@ -43,0 +42,0 @@ return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(...args);

@@ -25,3 +25,3 @@ "use strict";

});
const transformFromAst = function transformFromAst(ast, code, optsOrCallback, maybeCallback) {
const transformFromAst = exports.transformFromAst = function transformFromAst(ast, code, optsOrCallback, maybeCallback) {
let opts;

@@ -43,3 +43,2 @@ let callback;

};
exports.transformFromAst = transformFromAst;
function transformFromAstSync(...args) {

@@ -46,0 +45,0 @@ return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(...args);

@@ -9,3 +9,3 @@ "use strict";

exports.transformFileSync = transformFileSync;
const transformFile = function transformFile(filename, opts, callback) {
const transformFile = exports.transformFile = function transformFile(filename, opts, callback) {
if (typeof opts === "function") {

@@ -16,3 +16,2 @@ callback = opts;

};
exports.transformFile = transformFile;
function transformFileSync() {

@@ -19,0 +18,0 @@ throw new Error("Transforming files is not supported in browsers");

@@ -24,3 +24,3 @@ "use strict";

});
const transform = function transform(code, optsOrCallback, maybeCallback) {
const transform = exports.transform = function transform(code, optsOrCallback, maybeCallback) {
let opts;

@@ -42,3 +42,2 @@ let callback;

};
exports.transform = transform;
function transformSync(...args) {

@@ -45,0 +44,0 @@ return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(...args);

@@ -64,4 +64,4 @@ "use strict";

}
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
const isWindows = _process().platform === 'win32';

@@ -68,0 +68,0 @@ const own$1 = {}.hasOwnProperty;

{
"name": "@babel/core",
"version": "7.23.2",
"version": "7.23.3",
"description": "Babel compiler core.",

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

"@babel/code-frame": "^7.22.13",
"@babel/generator": "^7.23.0",
"@babel/generator": "^7.23.3",
"@babel/helper-compilation-targets": "^7.22.15",
"@babel/helper-module-transforms": "^7.23.0",
"@babel/helper-module-transforms": "^7.23.3",
"@babel/helpers": "^7.23.2",
"@babel/parser": "^7.23.0",
"@babel/parser": "^7.23.3",
"@babel/template": "^7.22.15",
"@babel/traverse": "^7.23.2",
"@babel/types": "^7.23.0",
"@babel/traverse": "^7.23.3",
"@babel/types": "^7.23.3",
"convert-source-map": "^2.0.0",

@@ -68,7 +68,7 @@ "debug": "^4.1.0",

"@babel/helper-transform-fixture-test-runner": "^7.22.19",
"@babel/plugin-syntax-flow": "^7.22.5",
"@babel/plugin-transform-flow-strip-types": "^7.22.5",
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@babel/plugin-syntax-flow": "^7.23.3",
"@babel/plugin-transform-flow-strip-types": "^7.23.3",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@jridgewell/trace-mapping": "^0.3.17",

@@ -75,0 +75,0 @@ "@types/convert-source-map": "^2.0.0",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc