@gjsify/utils 0.25.1 → 0.26.0
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/main-loop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";let e=!1,t=null;function ensureMainLoop(){let n=globalThis.imports;if(!n)return;if(e)return t;let r=n.gi?.GLib;if(r)
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";let e=!1,t=null;function ensureMainLoop(){let n=globalThis.imports;if(!n)return;if(e)return t;let r=n.gi?.GLib;if(r)return t=new r.MainLoop(null,!1),e=!0,r.main_depth()===0&&t.runAsync().catch(()=>{}),t}function quitMainLoop(){t&&=(t.quit(),e=!1,null)}export{ensureMainLoop,quitMainLoop};
|
|
@@ -4,9 +4,8 @@ import type GLib from '@girs/glib-2.0';
|
|
|
4
4
|
*
|
|
5
5
|
* Uses `GLib.Bytes.prototype.toArray()` — the GJS core override
|
|
6
6
|
* (`refs/gjs/modules/core/overrides/GLib.js`), which `@gjsify/node-gi` mirrors
|
|
7
|
-
* on its boxed-GBytes proxy
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `@gjsify/node-gi/globals` shim.
|
|
7
|
+
* on its boxed-GBytes proxy — instead of the legacy
|
|
8
|
+
* `imports.byteArray.fromGBytes()` (AGENTS.md § The legacy imports.* object is
|
|
9
|
+
* NOT an API).
|
|
11
10
|
*/
|
|
12
11
|
export declare function gbytesToUint8Array(bytes: GLib.Bytes): Uint8Array;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Utils module for gjsify",
|
|
5
5
|
"module": "lib/esm/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"fs"
|
|
41
41
|
],
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@gjsify/cli": "^0.
|
|
43
|
+
"@gjsify/cli": "^0.26.0",
|
|
44
44
|
"typescript": "^6.0.3"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|