Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-helper-hoist-variables

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-helper-hoist-variables - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc