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

putout

Package Overview
Dependencies
Maintainers
1
Versions
1227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

putout - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

37

lib/get-vars.js

@@ -21,3 +21,2 @@

traverseObjectProps({path, vars});
traverseFnParams({path, returnPath, vars});
},

@@ -94,2 +93,5 @@

if (!node.init)
return;
if (!node.init.properties)

@@ -110,35 +112,2 @@ return;

function traverseFnParams({path, vars, returnPath}) {
const {
node,
scope,
} = path;
const {params} = node.init;
if (!params)
return;
for (const param of params) {
const {name} = param;
const {
line,
column,
} = getPosition(param);
init({
name,
scope,
vars,
path,
returnPath,
loc: {
line,
column,
},
});
}
}
function init({vars, name, scope, path, loc, returnPath}) {

@@ -145,0 +114,0 @@ const scopeNumber = getScopeNumber(name, scope);

2

package.json
{
"name": "putout",
"version": "1.2.0",
"version": "1.2.1",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "find and remove unused variables",

Sorry, the diff of this file is not supported yet

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