babel-plugin-transform-es2015-parameters
Advanced tools
Comparing version 6.6.0 to 6.6.4
@@ -36,3 +36,3 @@ /* eslint max-len: 0 */ | ||
function hasDefaults(node) { | ||
for (var _iterator = (node.params /*: Array<Object>*/), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) { | ||
for (var _iterator = node.params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) { | ||
var _ref; | ||
@@ -39,0 +39,0 @@ |
@@ -13,3 +13,3 @@ "use strict"; | ||
Function: function Function(path) { | ||
var params /*: Array*/ = path.get("params"); | ||
var params = path.get("params"); | ||
@@ -16,0 +16,0 @@ // If there's a rest param, no need to loop through it. Also, we need to |
@@ -23,3 +23,2 @@ "use strict"; | ||
/*:: import type { NodePath } from "babel-traverse";*/ | ||
exports["default"] = function () { | ||
@@ -30,3 +29,3 @@ return { | ||
// default/rest visitors require access to `arguments` | ||
var params /*: Array<NodePath>*/ = path.get("params"); | ||
var params = path.get("params"); | ||
for (var _iterator = params, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) { | ||
@@ -33,0 +32,0 @@ var _ref; |
@@ -196,3 +196,3 @@ /* eslint indent: 0 */ | ||
if (!state.deopted && !state.references.length) { | ||
for (var _iterator = (state.candidates /*: Array*/), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) { | ||
for (var _iterator = state.candidates, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) { | ||
var _ref; | ||
@@ -199,0 +199,0 @@ |
{ | ||
"name": "babel-plugin-transform-es2015-parameters", | ||
"version": "6.6.0", | ||
"version": "6.6.4", | ||
"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.6.0", | ||
"babel-helper-call-delegate": "^6.6.0", | ||
"babel-helper-get-function-arity": "^6.3.13", | ||
"babel-template": "^6.6.0", | ||
"babel-types": "^6.6.0", | ||
"babel-traverse": "^6.6.4", | ||
"babel-helper-call-delegate": "^6.6.4", | ||
"babel-helper-get-function-arity": "^6.6.4", | ||
"babel-template": "^6.6.4", | ||
"babel-types": "^6.6.4", | ||
"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
18116
426
Updatedbabel-template@^6.6.4
Updatedbabel-traverse@^6.6.4
Updatedbabel-types@^6.6.4