Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-parameters

Package Overview
Dependencies
56
Maintainers
6
Versions
91
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.8.4 to 7.8.7

30

lib/params.js

@@ -75,2 +75,30 @@ "use strict";

const param = params[i];
for (const name of Object.keys(param.getBindingIdentifiers())) {
var _scope$bindings$name;
const constantViolations = (_scope$bindings$name = scope.bindings[name]) == null ? void 0 : _scope$bindings$name.constantViolations;
if (constantViolations) {
for (const redeclarator of constantViolations) {
const node = redeclarator.node;
switch (node.type) {
case "VariableDeclarator":
if (node.init === null) {
redeclarator.remove();
} else {
state.iife = true;
}
break;
case "FunctionDeclaration":
state.iife = true;
break;
}
}
}
}
const paramIsAssignmentPattern = param.isAssignmentPattern();

@@ -145,3 +173,3 @@

if (state.iife) {
body.push((0, _helperCallDelegate.default)(path, scope));
body.push((0, _helperCallDelegate.default)(path, scope, false));
path.set("body", _core.types.blockStatement(body));

@@ -148,0 +176,0 @@ } else {

8

package.json
{
"name": "@babel/plugin-transform-parameters",
"version": "7.8.4",
"version": "7.8.7",
"description": "Compile ES2015 default and rest parameters to ES5",

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

"dependencies": {
"@babel/helper-call-delegate": "^7.8.3",
"@babel/helper-call-delegate": "^7.8.7",
"@babel/helper-get-function-arity": "^7.8.3",

@@ -24,6 +24,6 @@ "@babel/helper-plugin-utils": "^7.8.3"

"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/helper-plugin-test-runner": "^7.8.3"
},
"gitHead": "5c2e6bc07fed3d28801d93168622c99ae622653a"
"gitHead": "595f65f33b8e948e34d12be83f700cf8d070c790"
}
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