Socket
Socket
Sign inDemoInstall

babel-plugin-filter-imports

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-filter-imports - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

lib/removeReferences.js

@@ -30,2 +30,6 @@ 'use strict';

if (t.isArrowFunctionExpression(parent)) {
parent.get('body').remove();
return;
}
if (t.isVariableDeclarator(parent)) removeReferences(parent, _lodash2.default.get(parent, 'node.id.name'));

@@ -32,0 +36,0 @@ parent.remove();

2

package.json
{
"name": "babel-plugin-filter-imports",
"version": "1.0.2",
"version": "1.0.3",
"description": "A babel transform for filtering out imports",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -12,2 +12,6 @@ import * as t from 'babel-types'

if (t.isArrowFunctionExpression(parent)) {
parent.get('body').remove()
return
}
if (t.isVariableDeclarator(parent)) removeReferences(parent, _.get(parent, 'node.id.name'))

@@ -14,0 +18,0 @@ parent.remove()

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