Socket
Socket
Sign inDemoInstall

@talend/babel-plugin-import-from-index

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@talend/babel-plugin-import-from-index - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

4

package.json
{
"name": "@talend/babel-plugin-import-from-index",
"version": "1.4.2",
"version": "1.4.3",
"description": "Transform default imports from specific path to named import from index",

@@ -41,2 +41,2 @@ "main": "src/index.js",

}
}
}

@@ -105,3 +105,8 @@ const PACKAGES = [

} else if (lastName && lastName !== localName) {
importedName = lastName;
// fix default import name except if we are at the root of the package
if (PACKAGES.indexOf(importDeclarationPath.node.source.value) === -1) {
importedName = lastName;
} else {
return types.importDefaultSpecifier(types.identifier(localName));
}
}

@@ -108,0 +113,0 @@ return types.importSpecifier(

@@ -89,3 +89,7 @@ import pluginTester from 'babel-plugin-tester';

},
{
code: "import cmfContainer, { AppLoader } from '@talend/react-containers';",
output: "import cmfContainer, { AppLoader } from '@talend/react-containers';",
},
],
});
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