@gjsify/stream 0.4.28 → 0.4.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.
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{pipeline as e}from"../utils/pipeline.js";import{finished as t}from"../utils/finished.js";import"../index.js";function pipeline(...t){return new Promise((n,r)=>{e(...t,e=>{e?r(e):n()})})}function finished(e,n){return new Promise((r,i)=>{n&&typeof n!=`function`?t(e,n,e=>{e?i(e):r()}):t(e,e=>{e?i(e):r()})})}var n={pipeline,finished};export{n as default,finished,pipeline};
1
+ import"../_virtual/_rolldown/runtime.js";import{pipeline as e}from"../utils/pipeline.js";import{finished as t}from"../utils/finished.js";import"../index.js";function pipeline(...t){return new Promise((n,r)=>{let cb=e=>{e?r(e):n()};e(...t,cb)})}function finished(e,n){return new Promise((r,i)=>{n&&typeof n!=`function`?t(e,n,e=>{e?i(e):r()}):t(e,e=>{e?i(e):r()})})}var n={pipeline,finished};export{n as default,finished,pipeline};
@@ -1,8 +1,8 @@
1
- export declare function arrayBuffer(stream: ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
2
- export declare function blob(stream: ReadableStream | AsyncIterable<any>): Promise<Blob>;
3
- export declare function buffer(stream: ReadableStream | AsyncIterable<any>): Promise<any>;
4
- export declare function text(stream: ReadableStream | AsyncIterable<any>): Promise<string>;
5
- export declare function json(stream: ReadableStream | AsyncIterable<any>): Promise<any>;
1
+ export declare function arrayBuffer(stream: ReadableStream | AsyncIterable<unknown>): Promise<ArrayBuffer>;
2
+ export declare function blob(stream: ReadableStream | AsyncIterable<unknown>): Promise<Blob>;
3
+ export declare function buffer(stream: ReadableStream | AsyncIterable<unknown>): Promise<Uint8Array>;
4
+ export declare function text(stream: ReadableStream | AsyncIterable<unknown>): Promise<string>;
5
+ export declare function json(stream: ReadableStream | AsyncIterable<unknown>): Promise<unknown>;
6
6
  declare const _default: {
7
7
  arrayBuffer: typeof arrayBuffer;
8
8
  blob: typeof blob;
@@ -1,6 +1,6 @@
1
- import type { Stream, Readable, Writable } from '../index.js';
1
+ import type { Stream, Readable, Writable, FinishedOptions } from '../index.js';
2
2
  export declare function pipeline(...streams: any[]): Promise<void>;
3
- export declare function finished(stream: Stream | Readable | Writable, opts?: any): Promise<void>;
3
+ export declare function finished(stream: Stream | Readable | Writable, opts?: FinishedOptions): Promise<void>;
4
4
  declare const _default: {
5
5
  pipeline: typeof pipeline;
6
6
  finished: typeof finished;
@@ -1,3 +1,3 @@
1
1
  export { ReadableStream, WritableStream, TransformStream, ByteLengthQueuingStrategy, CountQueuingStrategy, TextEncoderStream, TextDecoderStream, } from '@gjsify/web-streams';
2
- declare const _default: Record<string, any>;
2
+ declare const _default: Record<string, unknown>;
3
3
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/stream",
3
- "version": "0.4.28",
3
+ "version": "0.4.30",
4
4
  "description": "Node.js stream module for Gjs",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -47,14 +47,14 @@
47
47
  "stream"
48
48
  ],
49
49
  "devDependencies": {
50
- "@gjsify/cli": "^0.4.28",
51
- "@gjsify/unit": "^0.4.28",
50
+ "@gjsify/cli": "^0.4.30",
51
+ "@gjsify/unit": "^0.4.30",
52
52
  "@types/node": "^25.9.1",
53
53
  "typescript": "^6.0.3"
54
54
  },
55
55
  "dependencies": {
56
- "@gjsify/events": "^0.4.28",
57
- "@gjsify/utils": "^0.4.28",
58
- "@gjsify/web-streams": "^0.4.28"
56
+ "@gjsify/events": "^0.4.30",
57
+ "@gjsify/utils": "^0.4.30",
58
+ "@gjsify/web-streams": "^0.4.30"
59
59
  }
60
60
  }