@babel/core
Advanced tools
Comparing version 7.22.9 to 7.22.10
@@ -227,3 +227,4 @@ "use strict"; | ||
}, alias, descriptors, envName) { | ||
const opts = options.env && options.env[envName]; | ||
var _options$env; | ||
const opts = (_options$env = options.env) == null ? void 0 : _options$env[envName]; | ||
return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null; | ||
@@ -235,3 +236,4 @@ } | ||
}, alias, descriptors, index) { | ||
const opts = options.overrides && options.overrides[index]; | ||
var _options$overrides; | ||
const opts = (_options$overrides = options.overrides) == null ? void 0 : _options$overrides[index]; | ||
if (!opts) throw new Error("Assertion failure - missing override"); | ||
@@ -244,5 +246,6 @@ return descriptors(dirname, opts, `${alias}.overrides[${index}]`); | ||
}, alias, descriptors, index, envName) { | ||
const override = options.overrides && options.overrides[index]; | ||
var _options$overrides2, _override$env; | ||
const override = (_options$overrides2 = options.overrides) == null ? void 0 : _options$overrides2[index]; | ||
if (!override) throw new Error("Assertion failure - missing override"); | ||
const opts = override.env && override.env[envName]; | ||
const opts = (_override$env = override.env) == null ? void 0 : _override$env[envName]; | ||
return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null; | ||
@@ -249,0 +252,0 @@ } |
@@ -22,3 +22,4 @@ "use strict"; | ||
function isEqualDescriptor(a, b) { | ||
return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && (a.file && a.file.request) === (b.file && b.file.request) && (a.file && a.file.resolved) === (b.file && b.file.resolved); | ||
var _a$file, _b$file, _a$file2, _b$file2; | ||
return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && ((_a$file = a.file) == null ? void 0 : _a$file.request) === ((_b$file = b.file) == null ? void 0 : _b$file.request) && ((_a$file2 = a.file) == null ? void 0 : _a$file2.resolved) === ((_b$file2 = b.file) == null ? void 0 : _b$file2.resolved); | ||
} | ||
@@ -25,0 +26,0 @@ function* handlerOf(value) { |
@@ -226,3 +226,4 @@ "use strict"; | ||
var thisFile = require("./index"); | ||
const version = "7.22.9"; | ||
; | ||
const version = "7.22.10"; | ||
exports.version = version; | ||
@@ -229,0 +230,0 @@ const DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); |
@@ -81,3 +81,5 @@ "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 +86,0 @@ const fn = plugin.post; |
{ | ||
"name": "@babel/core", | ||
"version": "7.22.9", | ||
"version": "7.22.10", | ||
"description": "Babel compiler core.", | ||
@@ -50,11 +50,11 @@ "main": "./lib/index.js", | ||
"@ampproject/remapping": "^2.2.0", | ||
"@babel/code-frame": "^7.22.5", | ||
"@babel/generator": "^7.22.9", | ||
"@babel/helper-compilation-targets": "^7.22.9", | ||
"@babel/code-frame": "^7.22.10", | ||
"@babel/generator": "^7.22.10", | ||
"@babel/helper-compilation-targets": "^7.22.10", | ||
"@babel/helper-module-transforms": "^7.22.9", | ||
"@babel/helpers": "^7.22.6", | ||
"@babel/parser": "^7.22.7", | ||
"@babel/helpers": "^7.22.10", | ||
"@babel/parser": "^7.22.10", | ||
"@babel/template": "^7.22.5", | ||
"@babel/traverse": "^7.22.8", | ||
"@babel/types": "^7.22.5", | ||
"@babel/traverse": "^7.22.10", | ||
"@babel/types": "^7.22.10", | ||
"convert-source-map": "^1.7.0", | ||
@@ -67,7 +67,7 @@ "debug": "^4.1.0", | ||
"devDependencies": { | ||
"@babel/helper-transform-fixture-test-runner": "^7.22.7", | ||
"@babel/helper-transform-fixture-test-runner": "^7.22.10", | ||
"@babel/plugin-syntax-flow": "^7.22.5", | ||
"@babel/plugin-transform-flow-strip-types": "^7.22.5", | ||
"@babel/plugin-transform-modules-commonjs": "^7.22.5", | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-env": "^7.22.10", | ||
"@babel/preset-typescript": "^7.22.5", | ||
@@ -74,0 +74,0 @@ "@jridgewell/trace-mapping": "^0.3.17", |
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
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
771374
6799
+ Addedelectron-to-chromium@1.5.21(transitive)
- Removedelectron-to-chromium@1.5.22(transitive)
Updated@babel/code-frame@^7.22.10
Updated@babel/generator@^7.22.10
Updated@babel/helpers@^7.22.10
Updated@babel/parser@^7.22.10
Updated@babel/traverse@^7.22.10
Updated@babel/types@^7.22.10