@gjsify/buffer 0.4.23 → 0.4.24
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.
- package/lib/types/blob.d.ts +18 -1
- package/lib/types/index.d.ts +15 -1
- package/package.json +4 -4
package/lib/types/blob.d.ts
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
|
+
declare class BlobPolyfill implements Blob {
|
|
2
|
+
_parts: BlobPart[];
|
|
3
|
+
readonly size: number;
|
|
4
|
+
readonly type: string;
|
|
5
|
+
constructor(parts?: BlobPart[], options?: BlobPropertyBag);
|
|
6
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
7
|
+
text(): Promise<string>;
|
|
8
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
9
|
+
slice(start?: number, end?: number, type?: string): Blob;
|
|
10
|
+
stream(): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
11
|
+
}
|
|
12
|
+
declare class FilePolyfill extends BlobPolyfill {
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly lastModified: number;
|
|
15
|
+
readonly webkitRelativePath: string;
|
|
16
|
+
constructor(parts: BlobPart[], name: string, options?: FilePropertyBag);
|
|
17
|
+
}
|
|
1
18
|
declare const Blob: {
|
|
2
19
|
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
3
20
|
prototype: Blob;
|
|
4
21
|
};
|
|
5
|
-
declare const File:
|
|
22
|
+
declare const File: typeof FilePolyfill;
|
|
6
23
|
export { Blob, File };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -14,7 +14,21 @@ declare const _default: {
|
|
|
14
14
|
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
15
15
|
prototype: Blob;
|
|
16
16
|
};
|
|
17
|
-
File:
|
|
17
|
+
File: {
|
|
18
|
+
new (parts: BlobPart[], name: string, options?: FilePropertyBag): {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly lastModified: number;
|
|
21
|
+
readonly webkitRelativePath: string;
|
|
22
|
+
_parts: BlobPart[];
|
|
23
|
+
readonly size: number;
|
|
24
|
+
readonly type: string;
|
|
25
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
26
|
+
text(): Promise<string>;
|
|
27
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
28
|
+
slice(start?: number, end?: number, type?: string): Blob;
|
|
29
|
+
stream(): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
18
32
|
atob: typeof globalThis.atob;
|
|
19
33
|
btoa: typeof globalThis.btoa;
|
|
20
34
|
kMaxLength: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/buffer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.24",
|
|
4
4
|
"description": "Node.js buffer module for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"buffer"
|
|
41
41
|
],
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@gjsify/cli": "^0.4.
|
|
44
|
-
"@gjsify/unit": "^0.4.
|
|
43
|
+
"@gjsify/cli": "^0.4.24",
|
|
44
|
+
"@gjsify/unit": "^0.4.24",
|
|
45
45
|
"@types/node": "^25.9.1",
|
|
46
46
|
"typescript": "^6.0.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@gjsify/utils": "^0.4.
|
|
49
|
+
"@gjsify/utils": "^0.4.24"
|
|
50
50
|
}
|
|
51
51
|
}
|