ig-types 6.13.4 → 6.13.6
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/Promise.js +6 -10
- package/package.json +1 -1
package/Promise.js
CHANGED
|
@@ -246,20 +246,16 @@ object.Constructor('IterablePromise', Promise, {
|
|
|
246
246
|
var cur = this.__pack(this)
|
|
247
247
|
var other = this.__pack(other)
|
|
248
248
|
return this.constructor(
|
|
249
|
-
// NOTE: we
|
|
250
|
-
//
|
|
251
|
-
//
|
|
249
|
+
// NOTE: we need to keep things as exposed as possible, this
|
|
250
|
+
// is why we're not blanketing all the cases with
|
|
251
|
+
// Promise.all(..)...
|
|
252
252
|
(cur instanceof Promise
|
|
253
253
|
&& other instanceof Promise) ?
|
|
254
|
-
|
|
255
|
-
.then(function(list){
|
|
256
|
-
return list[0].concat(list[1]) })
|
|
254
|
+
[cur, other]
|
|
257
255
|
: cur instanceof Promise ?
|
|
258
|
-
cur
|
|
259
|
-
return list.concat(other) })
|
|
256
|
+
[cur, ...other]
|
|
260
257
|
: other instanceof Promise ?
|
|
261
|
-
other
|
|
262
|
-
return cur.concat(list) })
|
|
258
|
+
[...cur, other]
|
|
263
259
|
: cur.concat(other),
|
|
264
260
|
'raw') },
|
|
265
261
|
push: function(elem){
|