Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-modules-commonjs

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.24.7 to 7.24.8

6

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc