You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
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

Comparing version 7.20.8 to 7.20.9

11

lib/index.js

@@ -58,2 +58,7 @@ "use strict";

let binding = headPath.scope.getOwnBinding(name);
if (!binding) {
headPath.scope.crawl();
binding = headPath.scope.getOwnBinding(name);
}
const {

@@ -63,3 +68,3 @@ usages,

hasConstantViolations
} = (0, _loop.getUsageInBody)(headPath.scope.getOwnBinding(name), path);
} = (0, _loop.getUsageInBody)(binding, path);
if (capturedInClosure) {

@@ -124,3 +129,5 @@ markNeedsBodyWrap();

for (const name of bindingNames) {
path.scope.getOwnBinding(name).kind = "var";
const binding = path.scope.getOwnBinding(name);
if (!binding) continue;
binding.kind = "var";
}

@@ -127,0 +134,0 @@ if (isInLoop(path) && !(0, _loop.isVarInLoopHead)(path) || dynamicTDZNames.length > 0) {

2

package.json
{
"name": "@babel/plugin-transform-block-scoping",
"version": "7.20.8",
"version": "7.20.9",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc