@naturalcycles/db-lib 10.26.0 → 10.26.1
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.
|
@@ -269,7 +269,7 @@ export class CommonDao {
|
|
|
269
269
|
// this can make the stream async-iteration-friendly
|
|
270
270
|
// but not applying it now for perf reasons
|
|
271
271
|
// UPD: applying, to be compliant with `.toArray()`, etc.
|
|
272
|
-
.on('error', err => stream.
|
|
272
|
+
.on('error', err => stream.destroy(err))
|
|
273
273
|
.pipe(transformNoOp()));
|
|
274
274
|
}
|
|
275
275
|
async queryIds(q, opt = {}) {
|
package/package.json
CHANGED
|
@@ -384,7 +384,7 @@ export class CommonDao<
|
|
|
384
384
|
// this can make the stream async-iteration-friendly
|
|
385
385
|
// but not applying it now for perf reasons
|
|
386
386
|
// UPD: applying, to be compliant with `.toArray()`, etc.
|
|
387
|
-
.on('error', err => stream.
|
|
387
|
+
.on('error', err => stream.destroy(err))
|
|
388
388
|
.pipe(transformNoOp())
|
|
389
389
|
)
|
|
390
390
|
}
|