📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-es2015-block-scoped-functions

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-block-scoped-functions - npm Package Compare versions

Comparing version

to
7.0.0-alpha.20

8

lib/index.js

@@ -23,5 +23,5 @@ "use strict";

var _path = _ref2;
var func = _path.node;
if (!_path.isFunctionDeclaration()) continue;
var _path2 = _ref2;
var func = _path2.node;
if (!_path2.isFunctionDeclaration()) continue;
var declar = t.variableDeclaration("let", [t.variableDeclarator(func.id, t.toExpression(func))]);

@@ -31,3 +31,3 @@ declar._blockHoist = 2;

_path.replaceWith(declar);
_path2.replaceWith(declar);
}

@@ -34,0 +34,0 @@ }

{
"name": "babel-plugin-transform-es2015-block-scoped-functions",
"version": "7.0.0-alpha.19",
"version": "7.0.0-alpha.20",
"description": "Babel plugin to ensure function declarations at the block level are block scoped",

@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-block-scoped-functions",

"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-alpha.19"
"babel-helper-plugin-test-runner": "7.0.0-alpha.20"
}
}