fix(core): update

This commit is contained in:
Philipp Kunz 2024-05-17 18:40:32 +02:00
parent 8a3f43a11a
commit 898cc0407d
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartstream',
version: '3.0.36',
version: '3.0.37',
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

@ -14,7 +14,7 @@ export class StreamIntake<T> extends plugins.stream.Readable {
_read(size: number): void {
// console.log('get next');
const pushChunk = (): void => {
if (this.chunkStore.length > 0) {
while (this.chunkStore.length > 0) {
// If push returns false, then we should stop reading
if (!this.push(this.chunkStore.shift())) {
return;