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.8 to 1.0.9

2

lib/index.js

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

if (parentPath.isJSXOpeningElement() && parentPath.get('name') === path) {
if (parentPath.isJSXOpeningElement() && parentPath.get('name') === path || parentPath.isJSXMemberExpression() && parentPath.get('object') === path) {
if (runtimeData[name]) {

@@ -41,0 +41,0 @@ delete runtimeData[name];

{
"name": "babel-plugin-danger-remove-unused-import",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -10,3 +10,3 @@ "main": "index.js",

"babel": "babel src --out-dir lib -D",
"dev": "babel src --out-dir lib -Dw",
"dev": "npm run babel -- -w",
"prepublish": "npm run clean; npm run babel"

@@ -13,0 +13,0 @@ },

@@ -44,2 +44,10 @@ # babel-plugin-danger-remove-unused-import

a.moment = <Button x={data} />
```
```
## ChangeLog
- 1.0.9
Fix `<Comp.A/>` Bug
## Todo
1. Supporting Scope
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