Socket
Socket
Sign inDemoInstall

babel-plugin-transform-es2015-parameters

Package Overview
Dependencies
28
Maintainers
6
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.3.25 to 6.3.26

9

lib/destructuring.js

@@ -15,3 +15,8 @@ "use strict";

for (var i = 0; i < params.length; i++) {
// If there's a rest param, no need to loop through it. Also, we need to
// hoist one more level to get `declar` at the right spot.
var hoistTweak = t.isRestElement(params[params.length - 1]) ? 1 : 0;
var outputParamsLength = params.length - hoistTweak;
for (var i = 0; i < outputParamsLength; i++) {
var param = params[i];

@@ -22,3 +27,3 @@ if (param.isArrayPattern() || param.isObjectPattern()) {

var declar = t.variableDeclaration("let", [t.variableDeclarator(param.node, uid)]);
declar._blockHoist = params.length - i;
declar._blockHoist = outputParamsLength - i;

@@ -25,0 +30,0 @@ path.ensureBlock();

{
"name": "babel-plugin-transform-es2015-parameters",
"version": "6.3.25",
"version": "6.3.26",
"description": "Compile ES2015 default and rest parameters to ES5",

@@ -9,3 +9,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-parameters",

"dependencies": {
"babel-traverse": "^6.3.25",
"babel-traverse": "^6.3.26",
"babel-helper-call-delegate": "^6.3.13",

@@ -12,0 +12,0 @@ "babel-helper-get-function-arity": "^6.3.13",

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