Comparing version 0.10.7-0 to 0.10.8-0
@@ -1150,2 +1150,4 @@ #API Reference | ||
**Note** If you pass empty array or a sparse array with no values, or a promise/thenable for such, it will be forever pending. | ||
<hr> | ||
@@ -1152,0 +1154,0 @@ |
@@ -955,7 +955,18 @@ /** | ||
function Promise$_All( promises, PromiseArray, caller, boundTo ) { | ||
if( isPromise( promises ) || | ||
isArray( promises ) ) { | ||
var list = null; | ||
if (isArray(promises)) { | ||
list = promises; | ||
} | ||
else { | ||
list = Promise._cast(promises, caller, void 0); | ||
if (list !== promises) { | ||
list._setBoundTo(boundTo); | ||
} | ||
else if (!isPromise(list)) { | ||
list = null; | ||
} | ||
} | ||
if (list !== null) { | ||
return new PromiseArray( | ||
promises, | ||
list, | ||
typeof caller === "function" | ||
@@ -968,3 +979,3 @@ ? caller | ||
return new PromiseArray( | ||
[ apiRejection( "expecting an array or a promise" ) ], | ||
[ apiRejection( "expecting an array, a promise or a thenable" ) ], | ||
caller, | ||
@@ -971,0 +982,0 @@ boundTo |
@@ -951,7 +951,18 @@ /** | ||
function Promise$_All( promises, PromiseArray, caller, boundTo ) { | ||
if( isPromise( promises ) || | ||
isArray( promises ) ) { | ||
var list = null; | ||
if (isArray(promises)) { | ||
list = promises; | ||
} | ||
else { | ||
list = Promise._cast(promises, caller, void 0); | ||
if (list !== promises) { | ||
list._setBoundTo(boundTo); | ||
} | ||
else if (!isPromise(list)) { | ||
list = null; | ||
} | ||
} | ||
if (list !== null) { | ||
return new PromiseArray( | ||
promises, | ||
list, | ||
typeof caller === "function" | ||
@@ -964,3 +975,3 @@ ? caller | ||
return new PromiseArray( | ||
[ apiRejection( "expecting an array or a promise" ) ], | ||
[ apiRejection( "expecting an array, a promise or a thenable" ) ], | ||
caller, | ||
@@ -967,0 +978,0 @@ boundTo |
{ | ||
"name": "bluebird", | ||
"description": "Full featured Promises/A+ implementation with exceptionally good performance", | ||
"version": "0.10.7-0", | ||
"version": "0.10.8-0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "promise", |
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
454629
9403