babel-helper-get-function-arity
Advanced tools
Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16
@@ -7,4 +7,6 @@ "use strict"; | ||
var params = node.params; | ||
for (var i = 0; i < params.length; i++) { | ||
var param = params[i]; | ||
if (t.isAssignmentPattern(param) || t.isRestElement(param)) { | ||
@@ -14,2 +16,3 @@ return i; | ||
} | ||
return params.length; | ||
@@ -16,0 +19,0 @@ }; |
{ | ||
"name": "babel-helper-get-function-arity", | ||
"version": "7.0.0-alpha.15", | ||
"version": "7.0.0-alpha.16", | ||
"description": "Helper function to get function arity", | ||
@@ -9,4 +9,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity", | ||
"dependencies": { | ||
"babel-types": "7.0.0-alpha.15" | ||
"babel-types": "7.0.0-alpha.16" | ||
} | ||
} |
1072
+ Addedbabel-types@7.0.0-alpha.16(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
- Removedbabel-types@7.0.0-alpha.15(transitive)
- Removedto-fast-properties@1.0.3(transitive)
Updatedbabel-types@7.0.0-alpha.16