@babel/core
Advanced tools
@@ -142,3 +142,3 @@ "use strict"; | ||
| for (const pattern of ignorePatterns) { | ||
| if (pattern[0] === "!") { | ||
| if (pattern.startsWith("!")) { | ||
| throw new _configError.default(`Negation of file paths is not supported.`, filepath); | ||
@@ -145,0 +145,0 @@ } |
@@ -44,7 +44,5 @@ "use strict"; | ||
| const debug = _debug()("babel:config:loading:files:module-types"); | ||
| { | ||
| try { | ||
| var import_ = require("./import.cjs"); | ||
| } catch (_unused) {} | ||
| } | ||
| try { | ||
| var import_ = require("./import.cjs"); | ||
| } catch (_unused) {} | ||
| const supportsESM = exports.supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2"); | ||
@@ -64,5 +62,3 @@ const LOADING_CJS_FILES = new Set(); | ||
| } | ||
| { | ||
| return module != null && (module.__esModule || module[Symbol.toStringTag] === "Module") ? module.default || (arguments[1] ? module : undefined) : module; | ||
| } | ||
| return module != null && (module.__esModule || module[Symbol.toStringTag] === "Module") ? module.default || (arguments[1] ? module : undefined) : module; | ||
| } | ||
@@ -72,8 +68,6 @@ const loadMjsFromPath = (0, _rewriteStackTrace.endHiddenCallStack)(function () { | ||
| const url = (0, _url().pathToFileURL)(filepath).toString() + "?import"; | ||
| { | ||
| if (!import_) { | ||
| throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath); | ||
| } | ||
| return yield import_(url); | ||
| if (!import_) { | ||
| throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath); | ||
| } | ||
| return yield import_(url); | ||
| }); | ||
@@ -197,5 +191,4 @@ function loadMjsFromPath(_x) { | ||
| let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!"; | ||
| { | ||
| if (process.versions.pnp) { | ||
| message += ` | ||
| if (process.versions.pnp) { | ||
| message += ` | ||
| If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file: | ||
@@ -208,3 +201,2 @@ | ||
| `; | ||
| } | ||
| } | ||
@@ -211,0 +203,0 @@ throw new _configError.default(message, filepath); |
@@ -203,18 +203,10 @@ "use strict"; | ||
| } | ||
| { | ||
| var LOADING_MODULES = new Set(); | ||
| } | ||
| var LOADING_MODULES = new Set(); | ||
| function* requireModule(type, loader, name) { | ||
| { | ||
| if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) { | ||
| throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.'); | ||
| } | ||
| if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) { | ||
| throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.'); | ||
| } | ||
| try { | ||
| { | ||
| LOADING_MODULES.add(name); | ||
| } | ||
| { | ||
| return yield* (0, _moduleTypes.default)(name, loader, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", `You appear to be using a ${type} that contains top-level await, ` + "which is only supported when running Babel asynchronously.", true); | ||
| } | ||
| LOADING_MODULES.add(name); | ||
| return yield* (0, _moduleTypes.default)(name, loader, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", `You appear to be using a ${type} that contains top-level await, ` + "which is only supported when running Babel asynchronously.", true); | ||
| } catch (err) { | ||
@@ -224,5 +216,3 @@ err.message = `[BABEL]: ${err.message} (While processing: ${name})`; | ||
| } finally { | ||
| { | ||
| LOADING_MODULES.delete(name); | ||
| } | ||
| LOADING_MODULES.delete(name); | ||
| } | ||
@@ -229,0 +219,0 @@ } |
@@ -158,3 +158,3 @@ "use strict"; | ||
| } catch (e) { | ||
| if (!/^\[BABEL\]/.test(e.message)) { | ||
| if (!e.message.startsWith("[BABEL]")) { | ||
| var _context$filename; | ||
@@ -161,0 +161,0 @@ e.message = `[BABEL] ${(_context$filename = context.filename) != null ? _context$filename : "unknown file"}: ${e.message}`; |
@@ -68,2 +68,3 @@ "use strict"; | ||
| if (range === "*" || _semver().satisfies(_index.version, range)) return; | ||
| const message = `Requires Babel "${range}", but was loaded with "${_index.version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`; | ||
| const limit = Error.stackTraceLimit; | ||
@@ -73,3 +74,3 @@ if (typeof limit === "number" && limit < 25) { | ||
| } | ||
| const err = new Error(`Requires Babel "${range}", but was loaded with "${_index.version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); | ||
| const err = new Error(message); | ||
| if (typeof limit === "number") { | ||
@@ -76,0 +77,0 @@ Error.stackTraceLimit = limit; |
@@ -45,5 +45,3 @@ "use strict"; | ||
| } else { | ||
| { | ||
| return loadPartialConfigSync(opts); | ||
| } | ||
| return loadPartialConfigSync(opts); | ||
| } | ||
@@ -69,5 +67,3 @@ } | ||
| } else { | ||
| { | ||
| return loadOptionsSync(opts); | ||
| } | ||
| return loadOptionsSync(opts); | ||
| } | ||
@@ -88,5 +84,3 @@ } | ||
| } else { | ||
| { | ||
| return createConfigItemSync(target, options); | ||
| } | ||
| return createConfigItemSync(target, options); | ||
| } | ||
@@ -93,0 +87,0 @@ } |
@@ -30,3 +30,3 @@ "use strict"; | ||
| if (part === "*") return last ? starPatLast : starPat; | ||
| if (part.indexOf("*.") === 0) { | ||
| if (part.startsWith("*.")) { | ||
| return substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep); | ||
@@ -33,0 +33,0 @@ } |
@@ -65,10 +65,8 @@ "use strict"; | ||
| }; | ||
| { | ||
| Object.assign(COMMON_VALIDATORS, { | ||
| getModuleId: _optionAssertions.assertFunction, | ||
| moduleRoot: _optionAssertions.assertString, | ||
| moduleIds: _optionAssertions.assertBoolean, | ||
| moduleId: _optionAssertions.assertString | ||
| }); | ||
| } | ||
| Object.assign(COMMON_VALIDATORS, { | ||
| getModuleId: _optionAssertions.assertFunction, | ||
| moduleRoot: _optionAssertions.assertString, | ||
| moduleIds: _optionAssertions.assertBoolean, | ||
| moduleId: _optionAssertions.assertString | ||
| }); | ||
| const knownAssumptions = ["arrayLikeIsIterable", "constantReexports", "constantSuper", "enumerableModuleMeta", "ignoreFunctionLength", "ignoreToPrimitiveHint", "iterableIsArray", "mutableTemplateObject", "noClassCalls", "noDocumentAll", "noIncompleteNsImportDetection", "noNewArrows", "noUninitializedPrivateFieldAccess", "objectRestNoSymbols", "privateFieldsAsSymbols", "privateFieldsAsProperties", "pureGetters", "setClassMethods", "setComputedProperties", "setPublicClassFields", "setSpreadProperties", "skipForOfIteratorClosing", "superIsCallableConstructor"]; | ||
@@ -75,0 +73,0 @@ const assumptionsNames = exports.assumptionsNames = new Set(knownAssumptions); |
+9
-12
@@ -214,4 +214,3 @@ "use strict"; | ||
| var _parse = require("./parse.js"); | ||
| ; | ||
| const version = exports.version = "7.28.5"; | ||
| const version = exports.version = "7.28.6"; | ||
| const resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath; | ||
@@ -222,14 +221,12 @@ exports.resolvePlugin = resolvePlugin; | ||
| const DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); | ||
| { | ||
| exports.OptionManager = class OptionManager { | ||
| init(opts) { | ||
| return (0, _index2.loadOptionsSync)(opts); | ||
| } | ||
| }; | ||
| exports.Plugin = function Plugin(alias) { | ||
| throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`); | ||
| }; | ||
| } | ||
| exports.OptionManager = class OptionManager { | ||
| init(opts) { | ||
| return (0, _index2.loadOptionsSync)(opts); | ||
| } | ||
| }; | ||
| exports.Plugin = function Plugin(alias) { | ||
| throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`); | ||
| }; | ||
| 0 && (exports.types = exports.traverse = exports.tokTypes = exports.template = 0); | ||
| //# sourceMappingURL=index.js.map |
+1
-3
@@ -33,5 +33,3 @@ "use strict"; | ||
| if (callback === undefined) { | ||
| { | ||
| return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(code, opts); | ||
| } | ||
| return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(code, opts); | ||
| } | ||
@@ -38,0 +36,0 @@ (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.errback)(code, opts, callback); |
@@ -127,176 +127,174 @@ "use strict"; | ||
| }; | ||
| { | ||
| Object.assign(pluginNameMap, { | ||
| asyncGenerators: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-async-generators", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-async-generator-functions", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions" | ||
| } | ||
| Object.assign(pluginNameMap, { | ||
| asyncGenerators: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-async-generators", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators" | ||
| }, | ||
| classProperties: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-async-generator-functions", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions" | ||
| } | ||
| }, | ||
| classProperties: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" | ||
| }, | ||
| classPrivateProperties: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" | ||
| } | ||
| }, | ||
| classPrivateProperties: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" | ||
| }, | ||
| classPrivateMethods: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-private-methods", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" | ||
| } | ||
| }, | ||
| classPrivateMethods: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-properties", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" | ||
| }, | ||
| classStaticBlock: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-static-block", | ||
| url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-class-static-block", | ||
| url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-private-methods", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods" | ||
| } | ||
| }, | ||
| classStaticBlock: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-class-static-block", | ||
| url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block" | ||
| }, | ||
| dynamicImport: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-dynamic-import", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-class-static-block", | ||
| url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block" | ||
| } | ||
| }, | ||
| dynamicImport: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-dynamic-import", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import" | ||
| } | ||
| }, | ||
| exportNamespaceFrom: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-export-namespace-from", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from" | ||
| }, | ||
| exportNamespaceFrom: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-export-namespace-from", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-export-namespace-from", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-export-namespace-from", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from" | ||
| } | ||
| }, | ||
| importAssertions: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-import-assertions", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions" | ||
| } | ||
| }, | ||
| importAttributes: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-import-attributes", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes" | ||
| } | ||
| }, | ||
| importMeta: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-import-meta", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta" | ||
| } | ||
| }, | ||
| logicalAssignment: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-logical-assignment-operators", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators" | ||
| }, | ||
| importAssertions: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-import-assertions", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-logical-assignment-operators", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators" | ||
| } | ||
| }, | ||
| moduleStringNames: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-module-string-names", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names" | ||
| } | ||
| }, | ||
| numericSeparator: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-numeric-separator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator" | ||
| }, | ||
| importAttributes: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-import-attributes", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-numeric-separator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator" | ||
| } | ||
| }, | ||
| nullishCoalescingOperator: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-nullish-coalescing-operator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator" | ||
| }, | ||
| importMeta: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-import-meta", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-nullish-coalescing-operator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator" | ||
| } | ||
| }, | ||
| objectRestSpread: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-object-rest-spread", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread" | ||
| }, | ||
| logicalAssignment: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-logical-assignment-operators", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-logical-assignment-operators", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-object-rest-spread", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread" | ||
| } | ||
| }, | ||
| optionalCatchBinding: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-optional-catch-binding", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding" | ||
| }, | ||
| moduleStringNames: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-module-string-names", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-optional-catch-binding", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding" | ||
| } | ||
| }, | ||
| optionalChaining: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-optional-chaining", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining" | ||
| }, | ||
| numericSeparator: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-numeric-separator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-numeric-separator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-optional-chaining", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining" | ||
| } | ||
| }, | ||
| privateIn: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-private-property-in-object", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object" | ||
| }, | ||
| nullishCoalescingOperator: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-nullish-coalescing-operator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-nullish-coalescing-operator", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-private-property-in-object", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object" | ||
| } | ||
| }, | ||
| regexpUnicodeSets: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-unicode-sets-regex", | ||
| url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md" | ||
| }, | ||
| objectRestSpread: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-object-rest-spread", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-object-rest-spread", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread" | ||
| } | ||
| }, | ||
| optionalCatchBinding: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-optional-catch-binding", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-optional-catch-binding", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding" | ||
| } | ||
| }, | ||
| optionalChaining: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-optional-chaining", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-optional-chaining", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining" | ||
| } | ||
| }, | ||
| privateIn: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-private-property-in-object", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-private-property-in-object", | ||
| url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object" | ||
| } | ||
| }, | ||
| regexpUnicodeSets: { | ||
| syntax: { | ||
| name: "@babel/plugin-syntax-unicode-sets-regex", | ||
| url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md" | ||
| }, | ||
| transform: { | ||
| name: "@babel/plugin-transform-unicode-sets-regex", | ||
| url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md" | ||
| } | ||
| transform: { | ||
| name: "@babel/plugin-transform-unicode-sets-regex", | ||
| url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md" | ||
| } | ||
| }); | ||
| } | ||
| } | ||
| }); | ||
| const getNameURLCombination = ({ | ||
@@ -303,0 +301,0 @@ name, |
@@ -36,5 +36,3 @@ "use strict"; | ||
| if (callback === undefined) { | ||
| { | ||
| return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(ast, code, opts); | ||
| } | ||
| return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(ast, code, opts); | ||
| } | ||
@@ -41,0 +39,0 @@ (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.errback)(ast, code, opts, callback); |
+1
-3
@@ -35,5 +35,3 @@ "use strict"; | ||
| if (callback === undefined) { | ||
| { | ||
| return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code, opts); | ||
| } | ||
| return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code, opts); | ||
| } | ||
@@ -40,0 +38,0 @@ (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.errback)(code, opts, callback); |
@@ -1,6 +0,4 @@ | ||
| { | ||
| exports.getModuleName = () => require("@babel/helper-module-transforms").getModuleName; | ||
| } | ||
| exports.getModuleName = () => require("@babel/helper-module-transforms").getModuleName; | ||
| 0 && 0; | ||
| //# sourceMappingURL=babel-7-helpers.cjs.map |
@@ -97,6 +97,4 @@ "use strict"; | ||
| set(key, val) { | ||
| { | ||
| if (key === "helpersNamespace") { | ||
| throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility." + "If you are using @babel/plugin-external-helpers you will need to use a newer " + "version than the one you currently have installed. " + "If you have your own implementation, you'll want to explore using 'helperGenerator' " + "alongside 'file.availableHelper()'."); | ||
| } | ||
| if (key === "helpersNamespace") { | ||
| throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility." + "If you are using @babel/plugin-external-helpers you will need to use a newer " + "version than the one you currently have installed. " + "If you have your own implementation, you'll want to explore using 'helperGenerator' " + "alongside 'file.availableHelper()'."); | ||
| } | ||
@@ -122,5 +120,3 @@ this._map.set(key, val); | ||
| if (_semver().valid(versionRange)) versionRange = `^${versionRange}`; | ||
| { | ||
| return !_semver().intersects(`<${minVersion}`, versionRange) && !_semver().intersects(`>=8.0.0`, versionRange); | ||
| } | ||
| return !_semver().intersects(`<${minVersion}`, versionRange) && !_semver().intersects(`>=8.0.0`, versionRange); | ||
| } | ||
@@ -199,17 +195,13 @@ addHelper(name) { | ||
| exports.default = File; | ||
| { | ||
| File.prototype.addImport = function addImport() { | ||
| throw new Error("This API has been removed. If you're looking for this " + "functionality in Babel 7, you should import the " + "'@babel/helper-module-imports' module and use the functions exposed " + " from that module, such as 'addNamed' or 'addDefault'."); | ||
| }; | ||
| File.prototype.addTemplateObject = function addTemplateObject() { | ||
| throw new Error("This function has been moved into the template literal transform itself."); | ||
| }; | ||
| { | ||
| File.prototype.getModuleName = function getModuleName() { | ||
| return _babel7Helpers.getModuleName()(this.opts, this.opts); | ||
| }; | ||
| } | ||
| } | ||
| File.prototype.addImport = function addImport() { | ||
| throw new Error("This API has been removed. If you're looking for this " + "functionality in Babel 7, you should import the " + "'@babel/helper-module-imports' module and use the functions exposed " + " from that module, such as 'addNamed' or 'addDefault'."); | ||
| }; | ||
| File.prototype.addTemplateObject = function addTemplateObject() { | ||
| throw new Error("This function has been moved into the template literal transform itself."); | ||
| }; | ||
| File.prototype.getModuleName = function getModuleName() { | ||
| return _babel7Helpers.getModuleName()(this.opts, this.opts); | ||
| }; | ||
| 0 && 0; | ||
| //# sourceMappingURL=file.js.map |
@@ -79,5 +79,3 @@ "use strict"; | ||
| const visitor = _traverse().default.visitors.merge(visitors, passes, file.opts.wrapPluginVisitorMethod); | ||
| { | ||
| (0, _traverse().default)(file.ast, visitor, file.scope); | ||
| } | ||
| (0, _traverse().default)(file.ast, visitor, file.scope); | ||
| for (const [plugin, pass] of passPairs) { | ||
@@ -84,0 +82,0 @@ if (plugin.post) { |
@@ -77,5 +77,3 @@ "use strict"; | ||
| } catch (err) { | ||
| { | ||
| debug("discarding unknown inline input sourcemap"); | ||
| } | ||
| debug("discarding unknown inline input sourcemap"); | ||
| } | ||
@@ -82,0 +80,0 @@ } |
@@ -40,12 +40,10 @@ "use strict"; | ||
| exports.default = PluginPass; | ||
| { | ||
| PluginPass.prototype.getModuleName = function getModuleName() { | ||
| return this.file.getModuleName(); | ||
| }; | ||
| PluginPass.prototype.addImport = function addImport() { | ||
| this.file.addImport(); | ||
| }; | ||
| } | ||
| PluginPass.prototype.getModuleName = function getModuleName() { | ||
| return this.file.getModuleName(); | ||
| }; | ||
| PluginPass.prototype.addImport = function addImport() { | ||
| this.file.addImport(); | ||
| }; | ||
| 0 && 0; | ||
| //# sourceMappingURL=plugin-pass.js.map |
@@ -46,8 +46,6 @@ "use strict"; | ||
| if (typeof value !== "object") return value; | ||
| { | ||
| try { | ||
| return deepClone(value, new Map(), true); | ||
| } catch (_) { | ||
| return structuredClone(value); | ||
| } | ||
| try { | ||
| return deepClone(value, new Map(), true); | ||
| } catch (_) { | ||
| return structuredClone(value); | ||
| } | ||
@@ -54,0 +52,0 @@ } |
+14
-14
| { | ||
| "name": "@babel/core", | ||
| "version": "7.28.5", | ||
| "version": "7.28.6", | ||
| "description": "Babel compiler core.", | ||
@@ -49,11 +49,11 @@ "main": "./lib/index.js", | ||
| "dependencies": { | ||
| "@babel/code-frame": "^7.27.1", | ||
| "@babel/generator": "^7.28.5", | ||
| "@babel/helper-compilation-targets": "^7.27.2", | ||
| "@babel/helper-module-transforms": "^7.28.3", | ||
| "@babel/helpers": "^7.28.4", | ||
| "@babel/parser": "^7.28.5", | ||
| "@babel/template": "^7.27.2", | ||
| "@babel/traverse": "^7.28.5", | ||
| "@babel/types": "^7.28.5", | ||
| "@babel/code-frame": "^7.28.6", | ||
| "@babel/generator": "^7.28.6", | ||
| "@babel/helper-compilation-targets": "^7.28.6", | ||
| "@babel/helper-module-transforms": "^7.28.6", | ||
| "@babel/helpers": "^7.28.6", | ||
| "@babel/parser": "^7.28.6", | ||
| "@babel/template": "^7.28.6", | ||
| "@babel/traverse": "^7.28.6", | ||
| "@babel/types": "^7.28.6", | ||
| "@jridgewell/remapping": "^2.3.5", | ||
@@ -67,7 +67,7 @@ "convert-source-map": "^2.0.0", | ||
| "devDependencies": { | ||
| "@babel/helper-transform-fixture-test-runner": "^7.28.5", | ||
| "@babel/plugin-syntax-flow": "^7.27.1", | ||
| "@babel/helper-transform-fixture-test-runner": "^7.28.6", | ||
| "@babel/plugin-syntax-flow": "^7.28.6", | ||
| "@babel/plugin-transform-flow-strip-types": "^7.27.1", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.27.1", | ||
| "@babel/preset-env": "^7.28.5", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.28.6", | ||
| "@babel/preset-env": "^7.28.6", | ||
| "@babel/preset-typescript": "^7.28.5", | ||
@@ -74,0 +74,0 @@ "@jridgewell/trace-mapping": "^0.3.28", |
@@ -6,2 +6,3 @@ type indexBrowserType = typeof import("./index-browser"); | ||
| // exports of index-browser, since this file may be replaced at bundle time with index-browser. | ||
| // eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
| ({}) as any as indexBrowserType as indexType; | ||
@@ -8,0 +9,0 @@ |
@@ -6,2 +6,3 @@ type browserType = typeof import("./resolve-targets-browser"); | ||
| // exports of index-browser, since this file may be replaced at bundle time with index-browser. | ||
| // eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
| ({}) as any as browserType as nodeType; | ||
@@ -8,0 +9,0 @@ |
@@ -15,2 +15,3 @@ import gensync, { type Handler } from "gensync"; | ||
| // transform-file-browser. | ||
| // eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
| ({}) as any as transformFileBrowserType as transformFileType; | ||
@@ -17,0 +18,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
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
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
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 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
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
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
798812
-0.06%6852
-0.74%Updated
Updated
Updated
Updated
Updated
Updated
Updated