From 96ea67e135571f2d2d95a8ec8514c6a32ddaee5e Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 14 Nov 2023 10:51:23 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartstream.classes.smartduplex.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 90da087..cfa3d50 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartstream', - version: '3.0.29', + version: '3.0.30', description: 'simplifies access to node streams' } diff --git a/ts/smartstream.classes.smartduplex.ts b/ts/smartstream.classes.smartduplex.ts index ef7d68d..2d5b02a 100644 --- a/ts/smartstream.classes.smartduplex.ts +++ b/ts/smartstream.classes.smartduplex.ts @@ -46,10 +46,10 @@ export class SmartDuplex extends Duplex { constructor(optionsArg?: ISmartDuplexOptions) { super(Object.assign({ - highWaterMark: 4, + highWaterMark: 1, }, optionsArg)); this.options = optionsArg; - this.backpressuredArray = new plugins.lik.BackpressuredArray(this.options.highWaterMark || 4) + this.backpressuredArray = new plugins.lik.BackpressuredArray(this.options.highWaterMark || 1) } public async _read(size: number): Promise {