Socket
Socket
Sign inDemoInstall

@babel/helper-module-transforms

Package Overview
Dependencies
8
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.17.12 to 7.18.0

4

lib/index.js

@@ -83,2 +83,3 @@ "use strict";

esNamespaceOnly,
filename,
constantReexports = loose,

@@ -97,3 +98,4 @@ enumerableModuleMeta = loose,

lazy,
esNamespaceOnly
esNamespaceOnly,
filename
});

@@ -100,0 +102,0 @@

@@ -33,5 +33,5 @@ "use strict";

function resolveImportInterop(importInterop, source) {
function resolveImportInterop(importInterop, source, filename) {
if (typeof importInterop === "function") {
return validateImportInteropOption(importInterop(source));
return validateImportInteropOption(importInterop(source, filename));
}

@@ -46,3 +46,4 @@

lazy = false,
esNamespaceOnly = false
esNamespaceOnly = false,
filename
}) {

@@ -70,3 +71,3 @@ if (!exportName) {

const resolvedInterop = resolveImportInterop(importInterop, metadata.source);
const resolvedInterop = resolveImportInterop(importInterop, metadata.source, filename);

@@ -73,0 +74,0 @@ if (resolvedInterop === "none") {

{
"name": "@babel/helper-module-transforms",
"version": "7.17.12",
"version": "7.18.0",
"description": "Babel helper functions for implementing ES6 module transformations",

@@ -24,4 +24,4 @@ "author": "The Babel Team (https://babel.dev/team)",

"@babel/template": "^7.16.7",
"@babel/traverse": "^7.17.12",
"@babel/types": "^7.17.12"
"@babel/traverse": "^7.18.0",
"@babel/types": "^7.18.0"
},

@@ -28,0 +28,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc