Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
13d2fc78b8 | |||
898cc0407d |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartstream",
|
"name": "@push.rocks/smartstream",
|
||||||
"version": "3.0.36",
|
"version": "3.0.37",
|
||||||
"private": false,
|
"private": false,
|
||||||
"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.",
|
"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.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartstream',
|
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.'
|
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.'
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ export class StreamIntake<T> extends plugins.stream.Readable {
|
|||||||
_read(size: number): void {
|
_read(size: number): void {
|
||||||
// console.log('get next');
|
// console.log('get next');
|
||||||
const pushChunk = (): void => {
|
const pushChunk = (): void => {
|
||||||
if (this.chunkStore.length > 0) {
|
while (this.chunkStore.length > 0) {
|
||||||
// If push returns false, then we should stop reading
|
// If push returns false, then we should stop reading
|
||||||
if (!this.push(this.chunkStore.shift())) {
|
if (!this.push(this.chunkStore.shift())) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user