New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@putout/plugin-remove-unused-variables

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-remove-unused-variables - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

7

lib/get-vars/get-vars.js

@@ -335,2 +335,9 @@ 'use strict';

ExportNamedDeclaration(path) {
const {declaration} = path.node;
if (isFunctionDeclaration(declaration))
use(path, declaration.id.name);
},
FunctionDeclaration(path) {

@@ -337,0 +344,0 @@ const {

3

lib/get-vars/index.js

@@ -135,5 +135,2 @@ 'use strict';

const getLocLine = ({loc}) => {
if (!loc)
debugger;
const {

@@ -140,0 +137,0 @@ start,

{
"name": "@putout/plugin-remove-unused-variables",
"version": "1.1.0",
"version": "1.2.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "putout plugin adds ability to find and remove unused variables",

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