Socket
Socket
Sign inDemoInstall

bluebird

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluebird - npm Package Compare versions

Comparing version 0.10.7-0 to 0.10.8-0

2

API.md

@@ -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 @@

21

js/main/promise.js

@@ -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",

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