@push.rocks/smartstream 3.0.29 → 3.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartstream',
|
|
6
|
-
version: '3.0.
|
|
6
|
+
version: '3.0.30',
|
|
7
7
|
description: 'simplifies access to node streams'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx5QkFBeUI7SUFDL0IsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLG1DQUFtQztDQUNqRCxDQUFBIn0=
|
|
@@ -17,11 +17,11 @@ export class SmartDuplex extends Duplex {
|
|
|
17
17
|
}
|
|
18
18
|
constructor(optionsArg) {
|
|
19
19
|
super(Object.assign({
|
|
20
|
-
highWaterMark:
|
|
20
|
+
highWaterMark: 1,
|
|
21
21
|
}, optionsArg));
|
|
22
22
|
this.asyncWritePromiseObjectmap = new plugins.lik.ObjectMap();
|
|
23
23
|
this.options = optionsArg;
|
|
24
|
-
this.backpressuredArray = new plugins.lik.BackpressuredArray(this.options.highWaterMark ||
|
|
24
|
+
this.backpressuredArray = new plugins.lik.BackpressuredArray(this.options.highWaterMark || 1);
|
|
25
25
|
}
|
|
26
26
|
async _read(size) {
|
|
27
27
|
this.debugLog(`${this.options.name}: read was called`);
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -46,10 +46,10 @@ export class SmartDuplex<TInput = any, TOutput = any> extends Duplex {
|
|
|
46
46
|
|
|
47
47
|
constructor(optionsArg?: ISmartDuplexOptions<TInput, TOutput>) {
|
|
48
48
|
super(Object.assign({
|
|
49
|
-
highWaterMark:
|
|
49
|
+
highWaterMark: 1,
|
|
50
50
|
}, optionsArg));
|
|
51
51
|
this.options = optionsArg;
|
|
52
|
-
this.backpressuredArray = new plugins.lik.BackpressuredArray<TOutput>(this.options.highWaterMark ||
|
|
52
|
+
this.backpressuredArray = new plugins.lik.BackpressuredArray<TOutput>(this.options.highWaterMark || 1)
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
public async _read(size: number): Promise<void> {
|