@gjsify/napi 0.36.0 → 0.37.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/types/index.d.ts +4 -6
- package/package.json +3 -3
package/lib/types/index.d.ts
CHANGED
|
@@ -15,11 +15,9 @@ export declare function hasNapi(): boolean;
|
|
|
15
15
|
/**
|
|
16
16
|
* Load a compiled Node-API addon (`.node`) into the running GJS context.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @param path Filesystem path to the `.node` shared object.
|
|
23
|
-
* @returns The addon's `exports` object.
|
|
18
|
+
* `path` is the filesystem path to the shared object; the addon must be a pure
|
|
19
|
+
* Node-API module (e.g. a stock node-gyp build), legacy NAN/V8 addons are
|
|
20
|
+
* rejected with a clear error. Returns the addon's `exports` object — a second
|
|
21
|
+
* load of the same realpath returns the cached one.
|
|
24
22
|
*/
|
|
25
23
|
export declare function loadAddon(path: string): Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/napi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "Node-API (N-API) host for GJS — implements the napi C ABI over SpiderMonkey (mozjs-140) so GJS can load unmodified compiled .node addons. The forward mirror of @gjsify/node-gi (GI in Node); this is N-API in GJS. Vala/C++ shim as .so+.gir+.typelib prebuild, loaded via imports.gi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
},
|
|
98
98
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/napi/napi#readme",
|
|
99
99
|
"optionalDependencies": {
|
|
100
|
-
"@gjsify/napi-darwin-arm64": "0.
|
|
101
|
-
"@gjsify/napi-linux-x64": "0.
|
|
100
|
+
"@gjsify/napi-darwin-arm64": "0.37.0",
|
|
101
|
+
"@gjsify/napi-linux-x64": "0.37.0"
|
|
102
102
|
}
|
|
103
103
|
}
|