Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
2c1d9f05ce | |||
34cbf28972 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@push.rocks/smartstream",
|
||||
"version": "3.0.6",
|
||||
"version": "3.0.7",
|
||||
"private": false,
|
||||
"description": "simplifies access to node streams",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -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'
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user