Socket
Socket
Sign inDemoInstall

babel-plugin-transform-es2015-parameters

Package Overview
Dependencies
Maintainers
6
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-parameters - npm Package Compare versions

Comparing version 6.5.0 to 6.6.0

2

lib/default.js

@@ -0,1 +1,3 @@

/* eslint max-len: 0 */
"use strict";

@@ -2,0 +4,0 @@

@@ -0,1 +1,3 @@

/* eslint indent: 0 */
"use strict";

@@ -65,4 +67,9 @@

var grandparentPath = parentPath.parentPath;
// ex: args[0]
if (parentPath.isMemberExpression({ computed: true, object: node })) {
if (parentPath.isMemberExpression({ computed: true, object: node }) &&
// ex: `args[0] = "whatever"`
!(grandparentPath.isAssignmentExpression() && parentPath.node === grandparentPath.node.left)) {
// if we know that this member expression is referencing a number then

@@ -69,0 +76,0 @@ // we can safely optimise it

10

package.json
{
"name": "babel-plugin-transform-es2015-parameters",
"version": "6.5.0",
"version": "6.6.0",
"description": "Compile ES2015 default and rest parameters to ES5",

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

"dependencies": {
"babel-traverse": "^6.4.5",
"babel-helper-call-delegate": "^6.3.13",
"babel-traverse": "^6.6.0",
"babel-helper-call-delegate": "^6.6.0",
"babel-helper-get-function-arity": "^6.3.13",
"babel-template": "^6.3.13",
"babel-types": "^6.4.5",
"babel-template": "^6.6.0",
"babel-types": "^6.6.0",
"babel-runtime": "^5.0.0"

@@ -16,0 +16,0 @@ },

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