@nxtedition/lib 19.0.11 → 19.0.12
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.
- package/couch.js +2 -0
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -258,11 +258,13 @@ export function makeCouch(opts) {
|
|
|
258
258
|
})
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
// TODO (perf): Avoid stream pipeline
|
|
261
262
|
return stream.pipeline(
|
|
262
263
|
res.body,
|
|
263
264
|
split2(),
|
|
264
265
|
new stream.Transform({
|
|
265
266
|
objectMode: true,
|
|
267
|
+
readableHighWaterMark: 256, // TODO (fix): We would like to limit this to bytes and not elements...
|
|
266
268
|
construct(callback) {
|
|
267
269
|
this.state = 0
|
|
268
270
|
callback(null)
|