░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/usr/lib/node_modules/npm/node_modules/promise-all-reject-late
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: index.js
const allSettled = Promise.allSettled ? promises => Promise.allSettled(promises) : promises => { const reflections = [] for (let i = 0; i < promises.length; i++) { reflections[i] = Promise.resolve(promises[i]).then(value => ({ status: 'fulfilled', value, }), reason => ({ status: 'rejected', reason, })) } return Promise.all(reflections) } module.exports = promises => allSettled(promises).then(results => { let er = null const ret = new Array(results.length) results.forEach((result, i) => { if (result.status === 'rejected') throw result.reason else ret[i] = result.value }) return ret })
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 test/
DIR
—
2023-09-24 03:45
📄 index.js
JS
694 B
2023-09-24 03:45
EDIT
📄 LICENSE
?
748 B
2023-09-24 03:45
EDIT
📄 package.json
JSON
552 B
2023-09-24 03:45
EDIT