@babel/preset-env
Advanced tools
Comparing version 7.22.10 to 7.22.20
@@ -57,18 +57,18 @@ "use strict"; | ||
var _pluginTransformUnicodeSetsRegex = require("@babel/plugin-transform-unicode-sets-regex"); | ||
var _transformAsyncArrowsInClass = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class"); | ||
var _transformEdgeDefaultParameters = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters"); | ||
var _transformEdgeFunctionName = require("@babel/preset-modules/lib/plugins/transform-edge-function-name"); | ||
var _transformTaggedTemplateCaching = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching"); | ||
var _transformSafariBlockShadowing = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing"); | ||
var _transformSafariForShadowing = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing"); | ||
var _index = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js"); | ||
var _index2 = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js"); | ||
var _index3 = require("@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js"); | ||
var _index4 = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js"); | ||
var _index5 = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js"); | ||
var _index6 = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js"); | ||
var _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression = require("@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression"); | ||
var _pluginBugfixV8SpreadParametersInOptionalChaining = require("@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining"); | ||
const availablePlugins = { | ||
"bugfix/transform-async-arrows-in-class": () => _transformAsyncArrowsInClass, | ||
"bugfix/transform-edge-default-parameters": () => _transformEdgeDefaultParameters, | ||
"bugfix/transform-edge-function-name": () => _transformEdgeFunctionName, | ||
"bugfix/transform-safari-block-shadowing": () => _transformSafariBlockShadowing, | ||
"bugfix/transform-safari-for-shadowing": () => _transformSafariForShadowing, | ||
"bugfix/transform-async-arrows-in-class": () => _index, | ||
"bugfix/transform-edge-default-parameters": () => _index2, | ||
"bugfix/transform-edge-function-name": () => _index3, | ||
"bugfix/transform-safari-block-shadowing": () => _index5, | ||
"bugfix/transform-safari-for-shadowing": () => _index6, | ||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default, | ||
"bugfix/transform-tagged-template-caching": () => _transformTaggedTemplateCaching, | ||
"bugfix/transform-tagged-template-caching": () => _index4, | ||
"bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default, | ||
@@ -136,24 +136,25 @@ "syntax-import-assertions": () => _pluginSyntaxImportAssertions.default, | ||
}); | ||
const emptyPlugin = () => ({}); | ||
const babel7SyntaxPlugin = name => { | ||
availablePlugins[`syntax-${name}`] = () => require(`@babel/plugin-syntax-${name}`); | ||
}; | ||
babel7SyntaxPlugin("async-generators"); | ||
babel7SyntaxPlugin("class-properties"); | ||
babel7SyntaxPlugin("class-static-block"); | ||
babel7SyntaxPlugin("dynamic-import"); | ||
babel7SyntaxPlugin("export-namespace-from"); | ||
babel7SyntaxPlugin("import-meta"); | ||
babel7SyntaxPlugin("json-strings"); | ||
babel7SyntaxPlugin("logical-assignment-operators"); | ||
babel7SyntaxPlugin("nullish-coalescing-operator"); | ||
babel7SyntaxPlugin("numeric-separator"); | ||
babel7SyntaxPlugin("object-rest-spread"); | ||
babel7SyntaxPlugin("optional-catch-binding"); | ||
babel7SyntaxPlugin("optional-chaining"); | ||
babel7SyntaxPlugin("private-property-in-object"); | ||
babel7SyntaxPlugin("top-level-await"); | ||
babel7SyntaxPlugin("unicode-sets-regex"); | ||
const e = () => () => () => ({}); | ||
Object.assign(availablePlugins, { | ||
"syntax-async-generators": () => require("@babel/plugin-syntax-async-generators"), | ||
"syntax-class-properties": () => require("@babel/plugin-syntax-class-properties"), | ||
"syntax-class-static-block": () => require("@babel/plugin-syntax-class-static-block"), | ||
"syntax-dynamic-import": () => require("@babel/plugin-syntax-dynamic-import"), | ||
"syntax-export-namespace-from": () => require("@babel/plugin-syntax-export-namespace-from"), | ||
"syntax-import-meta": () => require("@babel/plugin-syntax-import-meta"), | ||
"syntax-json-strings": () => require("@babel/plugin-syntax-json-strings"), | ||
"syntax-logical-assignment-operators": () => require("@babel/plugin-syntax-logical-assignment-operators"), | ||
"syntax-nullish-coalescing-operator": () => require("@babel/plugin-syntax-nullish-coalescing-operator"), | ||
"syntax-numeric-separator": () => require("@babel/plugin-syntax-numeric-separator"), | ||
"syntax-object-rest-spread": () => require("@babel/plugin-syntax-object-rest-spread"), | ||
"syntax-optional-catch-binding": () => require("@babel/plugin-syntax-optional-catch-binding"), | ||
"syntax-optional-chaining": () => require("@babel/plugin-syntax-optional-chaining"), | ||
"syntax-private-property-in-object": () => require("@babel/plugin-syntax-private-property-in-object"), | ||
"syntax-top-level-await": () => require("@babel/plugin-syntax-top-level-await") | ||
}); | ||
{ | ||
availablePlugins["unicode-sets-regex"] = () => require("@babel/plugin-syntax-unicode-sets-regex"); | ||
} | ||
} | ||
//# sourceMappingURL=available-plugins.js.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _semver = require("semver"); | ||
var _availablePlugins = require("./available-plugins"); | ||
var _availablePlugins = require("./available-plugins.js"); | ||
const has = Function.call.bind(Object.hasOwnProperty); | ||
@@ -13,0 +13,0 @@ function addProposalSyntaxPlugins(items, proposalSyntaxPlugins) { |
@@ -10,11 +10,11 @@ "use strict"; | ||
var _semver = require("semver"); | ||
var _debug = require("./debug"); | ||
var _getOptionSpecificExcludes = require("./get-option-specific-excludes"); | ||
var _filterItems = require("./filter-items"); | ||
var _moduleTransformations = require("./module-transformations"); | ||
var _normalizeOptions = require("./normalize-options"); | ||
var _shippedProposals = require("./shipped-proposals"); | ||
var _pluginsCompatData = require("./plugins-compat-data"); | ||
var _regenerator = require("./polyfills/regenerator"); | ||
var _babelPolyfill = require("./polyfills/babel-polyfill"); | ||
var _debug = require("./debug.js"); | ||
var _getOptionSpecificExcludes = require("./get-option-specific-excludes.js"); | ||
var _filterItems = require("./filter-items.js"); | ||
var _moduleTransformations = require("./module-transformations.js"); | ||
var _normalizeOptions = require("./normalize-options.js"); | ||
var _shippedProposals = require("./shipped-proposals.js"); | ||
var _pluginsCompatData = require("./plugins-compat-data.js"); | ||
var _regenerator = require("./polyfills/regenerator.js"); | ||
var _babelPolyfill = require("./polyfills/babel-polyfill.js"); | ||
var _babelPluginPolyfillCorejs = require("babel-plugin-polyfill-corejs2"); | ||
@@ -24,3 +24,3 @@ var _babelPluginPolyfillCorejs2 = require("babel-plugin-polyfill-corejs3"); | ||
var _helperCompilationTargets = require("@babel/helper-compilation-targets"); | ||
var _availablePlugins = require("./available-plugins"); | ||
var _availablePlugins = require("./available-plugins.js"); | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
@@ -27,0 +27,0 @@ const pluginCoreJS2 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; |
@@ -12,6 +12,6 @@ "use strict"; | ||
var _corejs2BuiltIns = require("@babel/compat-data/corejs2-built-ins"); | ||
var _coreJsCompat = require("../data/core-js-compat"); | ||
var _pluginsCompatData = require("./plugins-compat-data"); | ||
var _moduleTransformations = require("./module-transformations"); | ||
var _options = require("./options"); | ||
var _coreJsCompat = require("../data/core-js-compat.js"); | ||
var _pluginsCompatData = require("./plugins-compat-data.js"); | ||
var _moduleTransformations = require("./module-transformations.js"); | ||
var _options = require("./options.js"); | ||
var _helperValidatorOption = require("@babel/helper-validator-option"); | ||
@@ -18,0 +18,0 @@ const corejs2DefaultWebIncludes = ["web.timers", "web.immediate", "web.dom.iterable"]; |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _overlappingPlugins = require("@babel/compat-data/overlapping-plugins"); | ||
var _availablePlugins = require("./available-plugins"); | ||
var _availablePlugins = require("./available-plugins.js"); | ||
const keys = Object.keys; | ||
@@ -13,0 +13,0 @@ const plugins = filterAvailable(_plugins); |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.default = _default; | ||
var _utils = require("./utils"); | ||
var _utils = require("./utils.js"); | ||
const BABEL_POLYFILL_DEPRECATION = ` | ||
@@ -10,0 +10,0 @@ \`@babel/polyfill\` is deprecated. Please, use required parts of \`core-js\` |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.default = _default; | ||
var _utils = require("./utils"); | ||
var _utils = require("./utils.js"); | ||
function isRegeneratorSource(source) { | ||
@@ -10,0 +10,0 @@ return source === "regenerator-runtime/runtime" || source === "regenerator-runtime/runtime.js"; |
{ | ||
"name": "@babel/preset-env", | ||
"version": "7.22.10", | ||
"version": "7.22.20", | ||
"description": "A Babel preset for each environment.", | ||
@@ -19,8 +19,8 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/compat-data": "^7.22.9", | ||
"@babel/helper-compilation-targets": "^7.22.10", | ||
"@babel/compat-data": "^7.22.20", | ||
"@babel/helper-compilation-targets": "^7.22.15", | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/helper-validator-option": "^7.22.5", | ||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.5", | ||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.5", | ||
"@babel/helper-validator-option": "^7.22.15", | ||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.15", | ||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.15", | ||
"@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", | ||
@@ -46,37 +46,37 @@ "@babel/plugin-syntax-async-generators": "^7.8.4", | ||
"@babel/plugin-transform-arrow-functions": "^7.22.5", | ||
"@babel/plugin-transform-async-generator-functions": "^7.22.10", | ||
"@babel/plugin-transform-async-generator-functions": "^7.22.15", | ||
"@babel/plugin-transform-async-to-generator": "^7.22.5", | ||
"@babel/plugin-transform-block-scoped-functions": "^7.22.5", | ||
"@babel/plugin-transform-block-scoping": "^7.22.10", | ||
"@babel/plugin-transform-block-scoping": "^7.22.15", | ||
"@babel/plugin-transform-class-properties": "^7.22.5", | ||
"@babel/plugin-transform-class-static-block": "^7.22.5", | ||
"@babel/plugin-transform-classes": "^7.22.6", | ||
"@babel/plugin-transform-class-static-block": "^7.22.11", | ||
"@babel/plugin-transform-classes": "^7.22.15", | ||
"@babel/plugin-transform-computed-properties": "^7.22.5", | ||
"@babel/plugin-transform-destructuring": "^7.22.10", | ||
"@babel/plugin-transform-destructuring": "^7.22.15", | ||
"@babel/plugin-transform-dotall-regex": "^7.22.5", | ||
"@babel/plugin-transform-duplicate-keys": "^7.22.5", | ||
"@babel/plugin-transform-dynamic-import": "^7.22.5", | ||
"@babel/plugin-transform-dynamic-import": "^7.22.11", | ||
"@babel/plugin-transform-exponentiation-operator": "^7.22.5", | ||
"@babel/plugin-transform-export-namespace-from": "^7.22.5", | ||
"@babel/plugin-transform-for-of": "^7.22.5", | ||
"@babel/plugin-transform-export-namespace-from": "^7.22.11", | ||
"@babel/plugin-transform-for-of": "^7.22.15", | ||
"@babel/plugin-transform-function-name": "^7.22.5", | ||
"@babel/plugin-transform-json-strings": "^7.22.5", | ||
"@babel/plugin-transform-json-strings": "^7.22.11", | ||
"@babel/plugin-transform-literals": "^7.22.5", | ||
"@babel/plugin-transform-logical-assignment-operators": "^7.22.5", | ||
"@babel/plugin-transform-logical-assignment-operators": "^7.22.11", | ||
"@babel/plugin-transform-member-expression-literals": "^7.22.5", | ||
"@babel/plugin-transform-modules-amd": "^7.22.5", | ||
"@babel/plugin-transform-modules-commonjs": "^7.22.5", | ||
"@babel/plugin-transform-modules-systemjs": "^7.22.5", | ||
"@babel/plugin-transform-modules-commonjs": "^7.22.15", | ||
"@babel/plugin-transform-modules-systemjs": "^7.22.11", | ||
"@babel/plugin-transform-modules-umd": "^7.22.5", | ||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", | ||
"@babel/plugin-transform-new-target": "^7.22.5", | ||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.5", | ||
"@babel/plugin-transform-numeric-separator": "^7.22.5", | ||
"@babel/plugin-transform-object-rest-spread": "^7.22.5", | ||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11", | ||
"@babel/plugin-transform-numeric-separator": "^7.22.11", | ||
"@babel/plugin-transform-object-rest-spread": "^7.22.15", | ||
"@babel/plugin-transform-object-super": "^7.22.5", | ||
"@babel/plugin-transform-optional-catch-binding": "^7.22.5", | ||
"@babel/plugin-transform-optional-chaining": "^7.22.10", | ||
"@babel/plugin-transform-parameters": "^7.22.5", | ||
"@babel/plugin-transform-optional-catch-binding": "^7.22.11", | ||
"@babel/plugin-transform-optional-chaining": "^7.22.15", | ||
"@babel/plugin-transform-parameters": "^7.22.15", | ||
"@babel/plugin-transform-private-methods": "^7.22.5", | ||
"@babel/plugin-transform-private-property-in-object": "^7.22.5", | ||
"@babel/plugin-transform-private-property-in-object": "^7.22.11", | ||
"@babel/plugin-transform-property-literals": "^7.22.5", | ||
@@ -95,3 +95,3 @@ "@babel/plugin-transform-regenerator": "^7.22.10", | ||
"@babel/preset-modules": "0.1.6-no-external-plugins", | ||
"@babel/types": "^7.22.10", | ||
"@babel/types": "^7.22.19", | ||
"babel-plugin-polyfill-corejs2": "^0.4.5", | ||
@@ -107,6 +107,6 @@ "babel-plugin-polyfill-corejs3": "^0.8.3", | ||
"devDependencies": { | ||
"@babel/core": "^7.22.10", | ||
"@babel/core": "^7.22.20", | ||
"@babel/core-7.12": "npm:@babel/core@7.12.9", | ||
"@babel/helper-plugin-test-runner": "^7.22.5", | ||
"@babel/traverse": "^7.22.10" | ||
"@babel/traverse": "^7.22.20" | ||
}, | ||
@@ -113,0 +113,0 @@ "engines": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
140702
970
1
+ Addedelectron-to-chromium@1.5.21(transitive)
- Removedelectron-to-chromium@1.5.23(transitive)
Updated@babel/compat-data@^7.22.20
Updated@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.15
Updated@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.15
Updated@babel/plugin-transform-async-generator-functions@^7.22.15
Updated@babel/plugin-transform-export-namespace-from@^7.22.11
Updated@babel/plugin-transform-logical-assignment-operators@^7.22.11
Updated@babel/plugin-transform-nullish-coalescing-operator@^7.22.11
Updated@babel/plugin-transform-optional-catch-binding@^7.22.11
Updated@babel/plugin-transform-private-property-in-object@^7.22.11
Updated@babel/types@^7.22.19