Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-modules-systemjs

Package Overview
Dependencies
54
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.22.11 to 7.23.0

11

lib/index.js

@@ -136,4 +136,5 @@ "use strict";

visitor: {
CallExpression(path, state) {
if (_core.types.isImport(path.node.callee)) {
["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path, state) {
if (path.isCallExpression() && !_core.types.isImport(path.node.callee)) return;
if (path.isCallExpression()) {
if (!this.file.has("@babel/plugin-proposal-dynamic-import")) {

@@ -144,4 +145,8 @@ {

}
path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, true, specifier => _core.types.callExpression(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("import")), [specifier])));
} else {
if (!this.file.has("@babel/plugin-proposal-dynamic-import")) {
throw new Error(MISSING_PLUGIN_ERROR);
}
}
path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, true, specifier => _core.types.callExpression(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("import")), [specifier])));
},

@@ -148,0 +153,0 @@ MetaProperty(path, state) {

{
"name": "@babel/plugin-transform-modules-systemjs",
"version": "7.22.11",
"version": "7.23.0",
"description": "This plugin transforms ES2015 modules to SystemJS",

@@ -17,5 +17,5 @@ "repository": {

"@babel/helper-hoist-variables": "^7.22.5",
"@babel/helper-module-transforms": "^7.22.9",
"@babel/helper-module-transforms": "^7.23.0",
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/helper-validator-identifier": "^7.22.5"
"@babel/helper-validator-identifier": "^7.22.20"
},

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

"devDependencies": {
"@babel/core": "^7.22.11",
"@babel/core": "^7.23.0",
"@babel/helper-plugin-test-runner": "^7.22.5"

@@ -32,0 +32,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc