Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-modules-systemjs

Package Overview
Dependencies
4
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.20.11 to 7.21.4-esm

lib/package.json

14

lib/index.js

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

`;
function getExportSpecifierName(node, stringSpecifiers) {

@@ -113,3 +112,2 @@ if (node.type === "Identifier") {

const name = arg.node.name;
if (this.scope.getBinding(name) !== path.scope.getBinding(name)) return;

@@ -119,3 +117,2 @@ const exportedNames = this.exports[name];

let node = path.node;
const isPostUpdateExpression = _core.types.isUpdateExpression(node, {

@@ -125,5 +122,3 @@ prefix: false

if (isPostUpdateExpression) {
node = _core.types.binaryExpression(
node.operator[0], _core.types.unaryExpression("+", _core.types.cloneNode(
node.argument)), _core.types.numericLiteral(1));
node = _core.types.binaryExpression(node.operator[0], _core.types.unaryExpression("+", _core.types.cloneNode(node.argument)), _core.types.numericLiteral(1));
}

@@ -307,4 +302,3 @@ for (const exportedName of exportedNames) {

exportValues.push(_core.types.cloneNode(local));
}
else if (!binding) {
} else if (!binding) {
nodes.push(buildExportCall(exportedName, local));

@@ -349,6 +343,4 @@ }

exportValues.push(_core.types.memberExpression(_core.types.identifier(target), node.local, _core.types.isStringLiteral(node.local)));
} else {
}
} else {}
}
setterBody.push(...constructExportCall(path, _core.types.identifier(exportIdent), exportNames, exportValues, hasExportStar ? _core.types.identifier(target) : null, stringSpecifiers));

@@ -355,0 +347,0 @@ }

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

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

"dependencies": {
"@babel/helper-hoist-variables": "^7.18.6",
"@babel/helper-module-transforms": "^7.20.11",
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/helper-validator-identifier": "^7.19.1"
"@babel/helper-hoist-variables": "^7.21.4-esm",
"@babel/helper-module-transforms": "^7.21.4-esm",
"@babel/helper-plugin-utils": "^7.21.4-esm",
"@babel/helper-validator-identifier": "^7.21.4-esm"
},

@@ -26,7 +26,7 @@ "keywords": [

"peerDependencies": {
"@babel/core": "^7.0.0-0"
"@babel/core": "^7.0.0-0 || 7.21.4-esm"
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/helper-plugin-test-runner": "^7.18.6",
"@babel/core": "^7.21.4-esm",
"@babel/helper-plugin-test-runner": "^7.21.4-esm",
"@babel/plugin-syntax-dynamic-import": "^7.8.3"

@@ -33,0 +33,0 @@ },

Sorry, the diff of this file is not supported yet

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