@gjsify/stream 0.3.13 → 0.3.15

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.
@@ -1,30 +1,33 @@
1
- import { pipeline as _pipeline, finished as _finished } from "../index.js";
1
+ import { finished as finished$1, pipeline as pipeline$1 } from "../index.js";
2
+
3
+ //#region src/promises/index.ts
2
4
  function pipeline(...streams) {
3
- return new Promise((resolve, reject) => {
4
- _pipeline(...streams, (err) => {
5
- if (err) reject(err);
6
- else resolve();
7
- });
8
- });
5
+ return new Promise((resolve, reject) => {
6
+ pipeline$1(...streams, (err) => {
7
+ if (err) reject(err);
8
+ else resolve();
9
+ });
10
+ });
9
11
  }
10
12
  function finished(stream, opts) {
11
- return new Promise((resolve, reject) => {
12
- if (opts && typeof opts !== "function") {
13
- _finished(stream, opts, (err) => {
14
- if (err) reject(err);
15
- else resolve();
16
- });
17
- } else {
18
- _finished(stream, (err) => {
19
- if (err) reject(err);
20
- else resolve();
21
- });
22
- }
23
- });
13
+ return new Promise((resolve, reject) => {
14
+ if (opts && typeof opts !== "function") {
15
+ finished$1(stream, opts, (err) => {
16
+ if (err) reject(err);
17
+ else resolve();
18
+ });
19
+ } else {
20
+ finished$1(stream, (err) => {
21
+ if (err) reject(err);
22
+ else resolve();
23
+ });
24
+ }
25
+ });
24
26
  }
25
- var promises_default = { pipeline, finished };
26
- export {
27
- promises_default as default,
28
- finished,
29
- pipeline
27
+ var promises_default = {
28
+ pipeline,
29
+ finished
30
30
  };
31
+
32
+ //#endregion
33
+ export { promises_default as default, finished, pipeline };
@@ -1,37 +1,15 @@
1
- import {
2
- ReadableStream,
3
- WritableStream,
4
- TransformStream,
5
- ByteLengthQueuingStrategy,
6
- CountQueuingStrategy,
7
- TextEncoderStream,
8
- TextDecoderStream
9
- } from "@gjsify/web-streams";
10
- import {
11
- ReadableStream as ReadableStream2,
12
- WritableStream as WritableStream2,
13
- TransformStream as TransformStream2,
14
- ByteLengthQueuingStrategy as ByteLengthQueuingStrategy2,
15
- CountQueuingStrategy as CountQueuingStrategy2,
16
- TextEncoderStream as TextEncoderStream2,
17
- TextDecoderStream as TextDecoderStream2
18
- } from "@gjsify/web-streams";
1
+ import { ByteLengthQueuingStrategy, ByteLengthQueuingStrategy as ByteLengthQueuingStrategy$1, CountQueuingStrategy, CountQueuingStrategy as CountQueuingStrategy$1, ReadableStream, ReadableStream as ReadableStream$1, TextDecoderStream, TextDecoderStream as TextDecoderStream$1, TextEncoderStream, TextEncoderStream as TextEncoderStream$1, TransformStream, TransformStream as TransformStream$1, WritableStream, WritableStream as WritableStream$1 } from "@gjsify/web-streams";
2
+
3
+ //#region src/web/index.ts
19
4
  var web_default = {
20
- ReadableStream: ReadableStream2,
21
- WritableStream: WritableStream2,
22
- TransformStream: TransformStream2,
23
- ByteLengthQueuingStrategy: ByteLengthQueuingStrategy2,
24
- CountQueuingStrategy: CountQueuingStrategy2,
25
- TextEncoderStream: TextEncoderStream2,
26
- TextDecoderStream: TextDecoderStream2
27
- };
28
- export {
29
- ByteLengthQueuingStrategy,
30
- CountQueuingStrategy,
31
- ReadableStream,
32
- TextDecoderStream,
33
- TextEncoderStream,
34
- TransformStream,
35
- WritableStream,
36
- web_default as default
5
+ ReadableStream: ReadableStream$1,
6
+ WritableStream: WritableStream$1,
7
+ TransformStream: TransformStream$1,
8
+ ByteLengthQueuingStrategy: ByteLengthQueuingStrategy$1,
9
+ CountQueuingStrategy: CountQueuingStrategy$1,
10
+ TextEncoderStream: TextEncoderStream$1,
11
+ TextDecoderStream: TextDecoderStream$1
37
12
  };
13
+
14
+ //#endregion
15
+ export { ByteLengthQueuingStrategy, CountQueuingStrategy, ReadableStream, TextDecoderStream, TextEncoderStream, TransformStream, WritableStream, web_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/stream",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Node.js stream module for Gjs",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -43,14 +43,14 @@
43
43
  "stream"
44
44
  ],
45
45
  "devDependencies": {
46
- "@gjsify/cli": "^0.3.13",
47
- "@gjsify/unit": "^0.3.13",
46
+ "@gjsify/cli": "^0.3.15",
47
+ "@gjsify/unit": "^0.3.15",
48
48
  "@types/node": "^25.6.0",
49
49
  "typescript": "^6.0.3"
50
50
  },
51
51
  "dependencies": {
52
- "@gjsify/events": "^0.3.13",
53
- "@gjsify/utils": "^0.3.13",
54
- "@gjsify/web-streams": "^0.3.13"
52
+ "@gjsify/events": "^0.3.15",
53
+ "@gjsify/utils": "^0.3.15",
54
+ "@gjsify/web-streams": "^0.3.15"
55
55
  }
56
56
  }
File without changes