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

babel-plugin-import

Package Overview
Dependencies
Maintainers
4
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.6.6 to 1.6.7

4

lib/index.js

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

if (_plugin[method]) {
_plugin[method].apply(_plugin, _toConsumableArray(args).concat([context]));
_plugin[method].apply(_plugin, [].concat(_toConsumableArray(args), [context]));
}

@@ -85,3 +85,3 @@ }

};
var methods = ['ImportDeclaration', 'CallExpression', 'MemberExpression', 'Property', 'VariableDeclarator', 'LogicalExpression', 'ConditionalExpression', 'IfStatement', 'ExpressionStatement', 'ReturnStatement', 'ExportDefaultDeclaration', 'BinaryExpression', 'NewExpression'];
var methods = ['ImportDeclaration', 'CallExpression', 'MemberExpression', 'Property', 'VariableDeclarator', 'ArrayExpression', 'LogicalExpression', 'ConditionalExpression', 'IfStatement', 'ExpressionStatement', 'ReturnStatement', 'ExportDefaultDeclaration', 'BinaryExpression', 'NewExpression'];
var ret = {

@@ -88,0 +88,0 @@ visitor: {

@@ -198,2 +198,11 @@ "use strict";

}, {
key: "ArrayExpression",
value: function ArrayExpression(path, state) {
var node = path.node;
var props = node.elements.map(function (_, index) {
return index;
});
this.buildExpressionHandler(node.elements, props, path, state);
}
}, {
key: "LogicalExpression",

@@ -200,0 +209,0 @@ value: function LogicalExpression(path, state) {

{
"name": "babel-plugin-import",
"version": "1.6.6",
"version": "1.6.7",
"description": "Component modular import plugin for babel.",

@@ -5,0 +5,0 @@ "repository": {

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