Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-modules-commonjs

Package Overview
Dependencies
Maintainers
4
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-modules-commonjs - npm Package Compare versions

Comparing version 7.18.6 to 7.19.6

lib/dynamic-import.js

11

lib/index.js

@@ -16,3 +16,3 @@ "use strict";

var _utils = require("babel-plugin-dynamic-import-node/utils");
var _dynamicImport = require("./dynamic-import");

@@ -23,3 +23,2 @@ var _default = (0, _helperPluginUtils.declare)((api, options) => {

api.assertVersion(7);
const transformImportCall = (0, _utils.createDynamicImportTransform)(api);
const {

@@ -129,3 +128,3 @@ strictNamespace = false,

if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return;
if (!path.get("callee").isImport()) return;
if (!_core.types.isImport(path.node.callee)) return;
let {

@@ -139,3 +138,3 @@ scope

transformImportCall(this, path.get("callee"));
(0, _dynamicImport.transformDynamicImport)(path, noInterop, this.file);
},

@@ -226,2 +225,4 @@

exports.default = _default;
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@babel/plugin-transform-modules-commonjs",
"version": "7.18.6",
"version": "7.19.6",
"description": "This plugin transforms ES2015 modules to CommonJS",

@@ -16,6 +16,5 @@ "repository": {

"dependencies": {
"@babel/helper-module-transforms": "^7.18.6",
"@babel/helper-plugin-utils": "^7.18.6",
"@babel/helper-simple-access": "^7.18.6",
"babel-plugin-dynamic-import-node": "^2.3.3"
"@babel/helper-module-transforms": "^7.19.6",
"@babel/helper-plugin-utils": "^7.19.0",
"@babel/helper-simple-access": "^7.19.4"
},

@@ -29,3 +28,3 @@ "keywords": [

"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/core": "^7.19.6",
"@babel/helper-plugin-test-runner": "^7.18.6",

@@ -32,0 +31,0 @@ "@babel/plugin-external-helpers": "^7.18.6",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc