Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-proposal-export-default-from - npm Package Compare versions

Comparing version 7.0.0-beta.47 to 7.0.0-beta.48

20

lib/index.js

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

_helperPluginUtils = function _helperPluginUtils() {
_helperPluginUtils = function () {
return data;

@@ -22,3 +22,3 @@ };

_pluginSyntaxExportDefaultFrom = function _pluginSyntaxExportDefaultFrom() {
_pluginSyntaxExportDefaultFrom = function () {
return data;

@@ -33,3 +33,3 @@ };

_core = function _core() {
_core = function () {
return data;

@@ -49,8 +49,14 @@ };

ExportNamedDeclaration(path) {
const node = path.node,
scope = path.scope;
const specifiers = node.specifiers;
const {
node,
scope
} = path;
const {
specifiers
} = node;
if (!_core().types.isExportDefaultSpecifier(specifiers[0])) return;
const specifier = specifiers.shift();
const exported = specifier.exported;
const {
exported
} = specifier;
const uid = scope.generateUidIdentifier(exported.name);

@@ -57,0 +63,0 @@ const nodes = [_core().types.importDeclaration([_core().types.importDefaultSpecifier(uid)], _core().types.cloneNode(node.source)), _core().types.exportNamedDeclaration(null, [_core().types.exportSpecifier(_core().types.cloneNode(uid), exported)])];

{
"name": "@babel/plugin-proposal-export-default-from",
"version": "7.0.0-beta.47",
"version": "7.0.0-beta.48",
"description": "Compile export default to ES2015",

@@ -12,12 +12,12 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-export-default-from",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.47",
"@babel/plugin-syntax-export-default-from": "7.0.0-beta.47"
"@babel/helper-plugin-utils": "7.0.0-beta.48",
"@babel/plugin-syntax-export-default-from": "7.0.0-beta.48"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"@babel/helper-plugin-test-runner": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48",
"@babel/helper-plugin-test-runner": "7.0.0-beta.48"
}
}
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