Compare commits

...

4 Commits

Author SHA1 Message Date
5e4ec5b837 3.0.8 2023-11-06 20:48:33 +01:00
62796f7151 fix(core): update 2023-11-06 20:48:32 +01:00
2c1d9f05ce 3.0.7 2023-11-04 00:17:04 +01:00
34cbf28972 fix(core): update 2023-11-04 00:17:03 +01:00
4 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@push.rocks/smartstream",
"version": "3.0.6",
"version": "3.0.8",
"private": false,
"description": "simplifies access to node streams",
"main": "dist_ts/index.js",

View File

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

View File

@ -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();
});
}
}
}

View File

@ -48,5 +48,6 @@ export class StreamIntake<T> extends plugins.stream.Readable {
this.signalEndBoolean = true;
this.pushedNextDeferred.resolve();
this.pushNextObservable.signalComplete();
this.push(null);
}
}