Skip to content

Commit 5e701e6

Browse files
committed
adding constructor arg to Writer in order to pass writerQueueStrategy to transform stream, allowing more than one stream to be in progress at a time while using .ready as a client
1 parent 2d199bd commit 5e701e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/write.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ class ZipTransformer {
201201
}
202202

203203
export class Writer extends TransformStream<ZipTransformerEntry, Uint8Array> {
204-
constructor() {
205-
super(new ZipTransformer());
204+
/**
205+
* @param queueingStrategy - determines the number of entries being written before backpressure applied
206+
*/
207+
constructor(queueingStrategy?: QueuingStrategy<ZipTransformerEntry>) {
208+
super(new ZipTransformer(), queueingStrategy);
206209
}
207210
}

0 commit comments

Comments
 (0)