Allow CB to be called by construction streams
This commit is contained in:
@@ -52,8 +52,10 @@ class Compose extends Duplex {
|
||||
return (this.last as NodeJS.ReadableStream).pipe(dest);
|
||||
}
|
||||
|
||||
public write(chunk: any) {
|
||||
return (this.first as NodeJS.WritableStream).write(chunk);
|
||||
public _write(chunk: any, encoding: string, cb: any) {
|
||||
const res = (this.first as NodeJS.WritableStream).write(chunk);
|
||||
cb();
|
||||
return res;
|
||||
}
|
||||
|
||||
public on(event: string, cb: any) {
|
||||
|
||||
Reference in New Issue
Block a user