From 34cbf289725ea95f5c032061e66d47c95c77f999 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 4 Nov 2023 00:17:03 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartstream.classes.passthrough.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 6f7c3a1..eb9586a 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.6', + version: '3.0.7', description: 'simplifies access to node streams' } diff --git a/ts/smartstream.classes.passthrough.ts b/ts/smartstream.classes.passthrough.ts index db62c9c..202cc0a 100644 --- a/ts/smartstream.classes.passthrough.ts +++ b/ts/smartstream.classes.passthrough.ts @@ -13,7 +13,9 @@ export class PassThrough extends plugins.stream.Duplex { if (this.push(chunk, encoding)) { callback(); } else { - this.once('drain', callback); + this.once('drain', () => { + callback(); + }); } } } \ No newline at end of file