Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-export-namespace-from

Package Overview
Dependencies
55
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.18.9 to 7.21.4-esm

lib/index.js.map

13

lib/index.js

@@ -7,9 +7,5 @@ "use strict";

exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _pluginSyntaxExportNamespaceFrom = require("@babel/plugin-syntax-export-namespace-from");
var _core = require("@babel/core");
var _default = (0, _helperPluginUtils.declare)(api => {

@@ -23,3 +19,2 @@ api.assertVersion(7);

var _exported$name;
const {

@@ -35,7 +30,5 @@ node,

const nodes = [];
if (index === 1) {
nodes.push(_core.types.exportNamedDeclaration(null, [specifiers.shift()], node.source));
}
const specifier = specifiers.shift();

@@ -47,15 +40,13 @@ const {

nodes.push(_core.types.importDeclaration([_core.types.importNamespaceSpecifier(uid)], _core.types.cloneNode(node.source)), _core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.cloneNode(uid), exported)]));
if (node.specifiers.length >= 1) {
nodes.push(node);
}
const [importDeclaration] = path.replaceWithMultiple(nodes);
path.scope.registerDeclaration(importDeclaration);
}
}
};
});
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@babel/plugin-proposal-export-namespace-from",
"version": "7.18.9",
"version": "7.21.4-esm",
"description": "Compile export namespace to ES2015",

@@ -19,11 +19,11 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.18.9",
"@babel/helper-plugin-utils": "^7.21.4-esm",
"@babel/plugin-syntax-export-namespace-from": "^7.8.3"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
"@babel/core": "^7.0.0-0 || 7.21.4-esm"
},
"devDependencies": {
"@babel/core": "^7.18.9",
"@babel/helper-plugin-test-runner": "^7.18.6"
"@babel/core": "^7.21.4-esm",
"@babel/helper-plugin-test-runner": "^7.21.4-esm"
},

@@ -30,0 +30,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-export-namespace-from",

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