babel-plugin-transform-es2015-parameters
Advanced tools
Comparing version 6.5.0 to 6.6.0
@@ -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 |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18242
427
Updatedbabel-template@^6.6.0
Updatedbabel-traverse@^6.6.0
Updatedbabel-types@^6.6.0