homey-api 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Util.js +4 -3
- package/package.json +1 -1
package/lib/Util.js
CHANGED
|
@@ -244,15 +244,16 @@ class Util {
|
|
|
244
244
|
.catch(err => {
|
|
245
245
|
rejections[i] = err;
|
|
246
246
|
|
|
247
|
-
if
|
|
248
|
-
|
|
247
|
+
// Check if all promises have been rejected
|
|
248
|
+
if (rejections.filter(Boolean).length === promises.length) {
|
|
249
|
+
reject(rejections);
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
252
|
});
|
|
252
253
|
});
|
|
253
254
|
}
|
|
254
255
|
|
|
255
|
-
|
|
256
|
+
/**
|
|
256
257
|
* Converts an object to a query string
|
|
257
258
|
* @param {object} queryObject - Query parameter object
|
|
258
259
|
* @returns {string}
|