We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bba0bc4 commit 3f6bbabCopy full SHA for 3f6bbab
lib/index.js
@@ -200,7 +200,7 @@ function Postgres(a, b) {
200
function nested(first, rest) {
201
const o = Object.create(notPromise)
202
o.first = first
203
- o.rest = rest.flat()
+ o.rest = rest.reduce((acc, val) => acc.concat(val), [])
204
return o
205
}
206
@@ -353,7 +353,7 @@ function Postgres(a, b) {
353
onclose: () => {
354
Object.entries(listeners).forEach(([channel, fns]) => {
355
delete listeners[channel]
356
- Promise.allSettled(fns.map(fn => listen(channel, fn)))
+ Promise.all(fns.map(fn => listen(channel, fn).catch(() => { /* noop */ })))
357
})
358
359
},
0 commit comments