Socket
Socket
Sign inDemoInstall

babel-helper-hoist-variables

Package Overview
Dependencies
4
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16

13

lib/index.js

@@ -7,4 +7,6 @@ "use strict";

var kind = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "var";
path.traverse(visitor, { kind: kind, emit: emit });
path.traverse(visitor, {
kind: kind,
emit: emit
});
};

@@ -27,5 +29,3 @@

if (state.kind && path.node.kind !== state.kind) return;
var nodes = [];
var declarations = path.get("declarations");

@@ -47,3 +47,2 @@ var firstId = void 0;

var declar = _ref;
firstId = declar.node.id;

@@ -60,3 +59,5 @@

if (path.parentPath.isFor({ left: path.node })) {
if (path.parentPath.isFor({
left: path.node
})) {
path.replaceWith(firstId);

@@ -63,0 +64,0 @@ } else {

{
"name": "babel-helper-hoist-variables",
"version": "7.0.0-alpha.15",
"version": "7.0.0-alpha.16",
"description": "Helper function to hoist variables",

@@ -9,4 +9,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-hoist-variables",

"dependencies": {
"babel-types": "7.0.0-alpha.15"
"babel-types": "7.0.0-alpha.16"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc