🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@putout/plugin-convert-const-to-let

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-convert-const-to-let - npm Package Compare versions

Comparing version

to
2.1.0

8

lib/convert-const-to-let.js

@@ -13,3 +13,9 @@ 'use strict';

VariableDeclaration: (path) => {
for (const binding of values(path.scope.bindings)) {
const {scope} = path;
const {declare} = path.node;
if (declare)
return;
for (const binding of values(scope.bindings)) {
const {parentPath, node} = binding.path;

@@ -16,0 +22,0 @@ const {init} = node;

2

package.json
{
"name": "@putout/plugin-convert-const-to-let",
"version": "2.0.1",
"version": "2.1.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",