fix(SmartDuplex): Fix stream termination when reading from a web readable stream

This commit is contained in:
2024-10-16 02:28:31 +02:00
parent 4fc82d0dc6
commit a225188e24
4 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartstream',
version: '3.2.3',
version: '3.2.4',
description: 'A library to simplify the creation and manipulation of Node.js streams, providing utilities for handling transform, duplex, and readable/writable streams effectively in TypeScript.'
}

View File

@ -68,7 +68,7 @@ export class SmartDuplex<TInput = any, TOutput = any> extends Duplex {
}
reader.releaseLock();
if (done) {
smartDuplex.end();
smartDuplex.push(null);
}
},
});