fix(core): update

This commit is contained in:
Philipp Kunz 2023-11-14 10:43:17 +01:00
parent e2b4d772b3
commit a09c359847
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartstream', name: '@push.rocks/smartstream',
version: '3.0.28', version: '3.0.29',
description: 'simplifies access to node streams' description: 'simplifies access to node streams'
} }

View File

@ -46,10 +46,10 @@ export class SmartDuplex<TInput = any, TOutput = any> extends Duplex {
constructor(optionsArg?: ISmartDuplexOptions<TInput, TOutput>) { constructor(optionsArg?: ISmartDuplexOptions<TInput, TOutput>) {
super(Object.assign({ super(Object.assign({
highWaterMark: 1, highWaterMark: 4,
}, optionsArg)); }, optionsArg));
this.options = optionsArg; this.options = optionsArg;
this.backpressuredArray = new plugins.lik.BackpressuredArray<TOutput>(this.options.highWaterMark || 1) this.backpressuredArray = new plugins.lik.BackpressuredArray<TOutput>(this.options.highWaterMark || 4)
} }
public async _read(size: number): Promise<void> { public async _read(size: number): Promise<void> {