@babel/plugin-transform-modules-commonjs
Advanced tools
Comparing version 7.24.7 to 7.24.8
@@ -94,6 +94,6 @@ "use strict"; | ||
const ids = left.getOuterBindingIdentifiers(); | ||
const localName = Object.keys(ids).filter(localName => { | ||
const localName = Object.keys(ids).find(localName => { | ||
if (localName !== "module" && localName !== "exports") return false; | ||
return this.scope.getBinding(localName) === path.scope.getBinding(localName); | ||
})[0]; | ||
}); | ||
if (localName) { | ||
@@ -187,3 +187,3 @@ const right = path.get("right"); | ||
path.get("body").forEach(path => { | ||
if (headers.indexOf(path.node) === -1) return; | ||
if (!headers.includes(path.node)) return; | ||
if (path.isVariableDeclaration()) { | ||
@@ -190,0 +190,0 @@ path.scope.registerDeclaration(path); |
@@ -11,3 +11,3 @@ "use strict"; | ||
name: `${"@babel/plugin-transform-modules-commonjs"}/lazy`, | ||
version: "7.24.7", | ||
version: "7.24.8", | ||
getWrapperPayload(source, metadata) { | ||
@@ -18,6 +18,6 @@ if ((0, _helperModuleTransforms.isSideEffectImport)(metadata) || metadata.reexportAll) { | ||
if (lazy === true) { | ||
return /\./.test(source) ? null : "lazy/function"; | ||
return source.includes(".") ? null : "lazy/function"; | ||
} | ||
if (Array.isArray(lazy)) { | ||
return lazy.indexOf(source) === -1 ? null : "lazy/function"; | ||
return !lazy.includes(source) ? null : "lazy/function"; | ||
} | ||
@@ -24,0 +24,0 @@ if (typeof lazy === "function") { |
{ | ||
"name": "@babel/plugin-transform-modules-commonjs", | ||
"version": "7.24.7", | ||
"version": "7.24.8", | ||
"description": "This plugin transforms ES2015 modules to CommonJS", | ||
@@ -16,4 +16,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-module-transforms": "^7.24.7", | ||
"@babel/helper-plugin-utils": "^7.24.7", | ||
"@babel/helper-module-transforms": "^7.24.8", | ||
"@babel/helper-plugin-utils": "^7.24.8", | ||
"@babel/helper-simple-access": "^7.24.7" | ||
@@ -28,3 +28,3 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7", | ||
"@babel/core": "^7.24.8", | ||
"@babel/helper-plugin-test-runner": "^7.24.7", | ||
@@ -31,0 +31,0 @@ "@babel/plugin-external-helpers": "^7.24.7" |
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
106814
+ Addedelectron-to-chromium@1.5.7(transitive)
- Removedelectron-to-chromium@1.5.13(transitive)