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

babel-plugin-danger-remove-unused-import

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-danger-remove-unused-import - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

17

lib/index.js

@@ -32,4 +32,12 @@ 'use strict';

var idTraverseObject = {
Identifier: function Identifier(path, _ref) {
JSXIdentifier: function JSXIdentifier(path, _ref) {
var runtimeData = _ref.runtimeData;
var name = path.node.name;
if (runtimeData[name]) {
delete runtimeData[name];
}
},
Identifier: function Identifier(path, _ref2) {
var runtimeData = _ref2.runtimeData;
var parentPath = path.parentPath;

@@ -110,5 +118,8 @@ var name = path.node.name;

})) {
parent.remove();
!parent.__removed && parent.remove();
parent.__removed = true;
} else {
data.path.remove();
var path = data.path;
!path.__removed && path.remove();
path.__removed = true;
}

@@ -115,0 +126,0 @@ });

2

package.json
{
"name": "babel-plugin-danger-remove-unused-import",
"version": "1.0.5",
"version": "1.0.6",
"description": "",

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

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