@babel/preset-env
Advanced tools
Comparing version 7.24.7 to 7.24.8
@@ -63,3 +63,3 @@ "use strict"; | ||
return opts.reduce((result, opt) => { | ||
const target = opt.match(/^(es|es6|es7|esnext|web)\./) ? "builtIns" : "plugins"; | ||
const target = /^(es|es6|es7|esnext|web)\./.exec(opt) ? "builtIns" : "plugins"; | ||
result[target].add(opt); | ||
@@ -66,0 +66,0 @@ return result; |
@@ -47,3 +47,3 @@ "use strict"; | ||
re = new RegExp(`^${normalizePluginName(filter)}$`); | ||
} catch (e) { | ||
} catch (_) { | ||
invalidFilters.push(filter); | ||
@@ -66,3 +66,3 @@ return []; | ||
const checkDuplicateIncludeExcludes = (include = [], exclude = []) => { | ||
const duplicates = include.filter(opt => exclude.indexOf(opt) >= 0); | ||
const duplicates = include.filter(opt => exclude.includes(opt)); | ||
v.invariant(duplicates.length === 0, `The plugins/built-ins '${duplicates.join(", ")}' were found in both the "include" and | ||
@@ -69,0 +69,0 @@ "exclude" options.`); |
{ | ||
"name": "@babel/preset-env", | ||
"version": "7.24.7", | ||
"version": "7.24.8", | ||
"description": "A Babel preset for each environment.", | ||
@@ -19,6 +19,6 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/compat-data": "^7.24.7", | ||
"@babel/helper-compilation-targets": "^7.24.7", | ||
"@babel/helper-plugin-utils": "^7.24.7", | ||
"@babel/helper-validator-option": "^7.24.7", | ||
"@babel/compat-data": "^7.24.8", | ||
"@babel/helper-compilation-targets": "^7.24.8", | ||
"@babel/helper-plugin-utils": "^7.24.8", | ||
"@babel/helper-validator-option": "^7.24.8", | ||
"@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.24.7", | ||
@@ -54,5 +54,5 @@ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.24.7", | ||
"@babel/plugin-transform-class-static-block": "^7.24.7", | ||
"@babel/plugin-transform-classes": "^7.24.7", | ||
"@babel/plugin-transform-classes": "^7.24.8", | ||
"@babel/plugin-transform-computed-properties": "^7.24.7", | ||
"@babel/plugin-transform-destructuring": "^7.24.7", | ||
"@babel/plugin-transform-destructuring": "^7.24.8", | ||
"@babel/plugin-transform-dotall-regex": "^7.24.7", | ||
@@ -70,3 +70,3 @@ "@babel/plugin-transform-duplicate-keys": "^7.24.7", | ||
"@babel/plugin-transform-modules-amd": "^7.24.7", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.7", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.8", | ||
"@babel/plugin-transform-modules-systemjs": "^7.24.7", | ||
@@ -81,3 +81,3 @@ "@babel/plugin-transform-modules-umd": "^7.24.7", | ||
"@babel/plugin-transform-optional-catch-binding": "^7.24.7", | ||
"@babel/plugin-transform-optional-chaining": "^7.24.7", | ||
"@babel/plugin-transform-optional-chaining": "^7.24.8", | ||
"@babel/plugin-transform-parameters": "^7.24.7", | ||
@@ -93,3 +93,3 @@ "@babel/plugin-transform-private-methods": "^7.24.7", | ||
"@babel/plugin-transform-template-literals": "^7.24.7", | ||
"@babel/plugin-transform-typeof-symbol": "^7.24.7", | ||
"@babel/plugin-transform-typeof-symbol": "^7.24.8", | ||
"@babel/plugin-transform-unicode-escapes": "^7.24.7", | ||
@@ -103,3 +103,3 @@ "@babel/plugin-transform-unicode-property-regex": "^7.24.7", | ||
"babel-plugin-polyfill-regenerator": "^0.6.1", | ||
"core-js-compat": "^3.31.0", | ||
"core-js-compat": "^3.37.1", | ||
"semver": "^6.3.1" | ||
@@ -111,6 +111,6 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7", | ||
"@babel/core": "^7.24.8", | ||
"@babel/core-7.12": "npm:@babel/core@7.12.9", | ||
"@babel/helper-plugin-test-runner": "^7.24.7", | ||
"@babel/traverse": "^7.24.7" | ||
"@babel/traverse": "^7.24.8" | ||
}, | ||
@@ -117,0 +117,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
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
230875
+ Added@babel/generator@7.25.5(transitive)
+ Added@babel/helpers@7.25.0(transitive)
+ Added@babel/parser@7.25.4(transitive)
+ Added@babel/plugin-syntax-import-assertions@7.24.7(transitive)
+ Added@babel/plugin-syntax-import-attributes@7.24.7(transitive)
+ Added@babel/runtime@7.25.4(transitive)
+ Added@babel/traverse@7.25.4(transitive)
+ Added@babel/types@7.25.4(transitive)
+ Addedcaniuse-lite@1.0.30001653(transitive)
+ Addedescalade@3.1.2(transitive)
- Removed@babel/generator@7.25.6(transitive)
- Removed@babel/helpers@7.25.6(transitive)
- Removed@babel/parser@7.25.6(transitive)
- Removed@babel/plugin-syntax-import-assertions@7.25.6(transitive)
- Removed@babel/plugin-syntax-import-attributes@7.25.6(transitive)
- Removed@babel/runtime@7.25.6(transitive)
- Removed@babel/traverse@7.25.6(transitive)
- Removed@babel/types@7.25.6(transitive)
- Removedcaniuse-lite@1.0.30001655(transitive)
- Removedescalade@3.2.0(transitive)
Updated@babel/compat-data@^7.24.8
Updatedcore-js-compat@^3.37.1