@gjsify/buffer 0.3.13 → 0.3.14

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/esm/index.js CHANGED
@@ -1,30 +1,22 @@
1
- import { Buffer, SlowBuffer, kMaxLength, kStringMaxLength, constants } from "./buffer.js";
2
- import { Blob as BlobImpl, File as FileImpl } from "./blob.js";
1
+ import { Blob, File } from "./blob.js";
2
+ import { Buffer, SlowBuffer, constants, kMaxLength, kStringMaxLength } from "./buffer.js";
3
+
4
+ //#region src/index.ts
3
5
  const atob = globalThis.atob;
4
6
  const btoa = globalThis.btoa;
5
7
  const INSPECT_MAX_BYTES = 50;
6
- var index_default = {
7
- Buffer,
8
- SlowBuffer,
9
- Blob: BlobImpl,
10
- File: FileImpl,
11
- atob,
12
- btoa,
13
- kMaxLength,
14
- kStringMaxLength,
15
- constants,
16
- INSPECT_MAX_BYTES
17
- };
18
- export {
19
- BlobImpl as Blob,
20
- Buffer,
21
- FileImpl as File,
22
- INSPECT_MAX_BYTES,
23
- SlowBuffer,
24
- atob,
25
- btoa,
26
- constants,
27
- index_default as default,
28
- kMaxLength,
29
- kStringMaxLength
8
+ var src_default = {
9
+ Buffer,
10
+ SlowBuffer,
11
+ Blob,
12
+ File,
13
+ atob,
14
+ btoa,
15
+ kMaxLength,
16
+ kStringMaxLength,
17
+ constants,
18
+ INSPECT_MAX_BYTES: 50
30
19
  };
20
+
21
+ //#endregion
22
+ export { Blob, Buffer, File, INSPECT_MAX_BYTES, SlowBuffer, atob, btoa, constants, src_default as default, kMaxLength, kStringMaxLength };
@@ -1,4 +1,8 @@
1
- import { registerGlobal } from "@gjsify/utils";
2
1
  import { Blob, File } from "./blob.js";
2
+ import { registerGlobal } from "@gjsify/utils";
3
+
4
+ //#region src/register.ts
3
5
  registerGlobal("Blob", Blob);
4
6
  registerGlobal("File", File);
7
+
8
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/buffer",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Node.js buffer module for Gjs",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -37,12 +37,12 @@
37
37
  "buffer"
38
38
  ],
39
39
  "devDependencies": {
40
- "@gjsify/cli": "^0.3.13",
41
- "@gjsify/unit": "^0.3.13",
40
+ "@gjsify/cli": "^0.3.14",
41
+ "@gjsify/unit": "^0.3.14",
42
42
  "@types/node": "^25.6.0",
43
43
  "typescript": "^6.0.3"
44
44
  },
45
45
  "dependencies": {
46
- "@gjsify/utils": "^0.3.13"
46
+ "@gjsify/utils": "^0.3.14"
47
47
  }
48
48
  }