Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-block-scoping

Package Overview
Dependencies
Maintainers
4
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-block-scoping - npm Package Compare versions

Comparing version 7.20.14 to 7.20.15

9

lib/index.js

@@ -67,6 +67,3 @@ "use strict";

} = (0, _loop.getUsageInBody)(binding, path);
if (capturedInClosure) {
markNeedsBodyWrap();
captured.push(name);
} else if (headScope.parent.hasBinding(name) || headScope.parent.hasGlobal(name)) {
if (headScope.parent.hasBinding(name) || headScope.parent.hasGlobal(name)) {
const newName = headScope.generateUid(name);

@@ -76,2 +73,6 @@ headScope.rename(name, newName);

}
if (capturedInClosure) {
markNeedsBodyWrap();
captured.push(name);
}
if (isForStatement && hasConstantViolations) {

@@ -78,0 +79,0 @@ updatedBindingsUsages.set(name, usages);

{
"name": "@babel/plugin-transform-block-scoping",
"version": "7.20.14",
"version": "7.20.15",
"description": "Compile ES2015 block scoping (const and let) to ES5",

@@ -5,0 +5,0 @@ "repository": {

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