Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-import

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-import - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

1

lib/index.js

@@ -86,2 +86,3 @@ 'use strict';

ret.visitor[method] = function () {
// eslint-disable-line
applyInstance(method, arguments, ret.visitor); // eslint-disable-line

@@ -88,0 +89,0 @@ };

4

lib/Plugin.js

@@ -75,3 +75,3 @@ 'use strict';

if (_this.specified[node[prop].name]) {
node[prop] = _this.importMethod(node[prop].name, file); // eslint-disable-line
node[prop] = _this.importMethod(_this.specified[node[prop].name], file); // eslint-disable-line
}

@@ -87,3 +87,3 @@ });

if (!types.isIdentifier(node[prop])) return;
if (this.specified[node[prop].name]) {
if (this.specified[node[prop].name] && path.scope.hasBinding(node[prop].name) && path.scope.getBinding(node[prop].name).path.type === 'ImportSpecifier') {
node[prop] = this.importMethod(node[prop].name, file); // eslint-disable-line

@@ -90,0 +90,0 @@ }

{
"name": "babel-plugin-import",
"version": "1.2.0",
"version": "1.2.1",
"description": "Component modular import plugin for babel.",
"repository": {
"type": "git",
"url": "https://github.com/ant-design/babel-plugin-import"
},
"main": "lib/index.js",

@@ -6,0 +10,0 @@ "scripts": {

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