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.
Files changed (2) hide show
  1. package/Promise.js +6 -10
  2. 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 are not using only the first branch to keep the
250
- // lists as exposed as possible thus avoiding blocking
251
- // until the whole ting is resolved...
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
- Promise.all([cur, other])
255
- .then(function(list){
256
- return list[0].concat(list[1]) })
254
+ [cur, other]
257
255
  : cur instanceof Promise ?
258
- cur.then(function(list){
259
- return list.concat(other) })
256
+ [cur, ...other]
260
257
  : other instanceof Promise ?
261
- other.then(function(list){
262
- return cur.concat(list) })
258
+ [...cur, other]
263
259
  : cur.concat(other),
264
260
  'raw') },
265
261
  push: function(elem){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ig-types",
3
- "version": "6.13.4",
3
+ "version": "6.13.6",
4
4
  "description": "Generic JavaScript types and type extensions...",
5
5
  "main": "main.js",
6
6
  "scripts": {