diff --git a/Promise.js b/Promise.js index caa24e6..1a7e567 100644 --- a/Promise.js +++ b/Promise.js @@ -201,13 +201,14 @@ module.packed = // values including the individual promises // can we combine the two??? // ...can we split this up into promises and - // other values and Promise.all(..) only + // other values and Promise.all(..) only // the promises??? // XXX we seem to be over-expanding here in some cases... // ...or under-wrapping someplace else... Promise.all(res) .then(function(res){ return res.flat() }) + // XXX the over-expand problem appears to be here... : res instanceof Array ? res.flat() : res }) diff --git a/package-lock.json b/package-lock.json index 4cd6101..96b8360 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ig-types", - "version": "6.24.16", + "version": "6.24.17", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ig-types", - "version": "6.24.16", + "version": "6.24.17", "license": "BSD-3-Clause", "dependencies": { "ig-object": "^6.0.0",