@gjsify/node-gi 0.29.0 → 0.31.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/node-gi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "GObject-Introspection runtime for Node.js — load gi:// namespaces (GLib/GObject/Gio/…) with GJS-compatible semantics. Vendored + rewritten from node-gtk under MIT.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/system-gi.js
CHANGED
|
@@ -55,7 +55,16 @@
|
|
|
55
55
|
// eventual lift to a shared package is tracked in `status/open-todos.md`.
|
|
56
56
|
import { statSync } from 'node:fs';
|
|
57
57
|
import { createRequire } from 'node:module';
|
|
58
|
-
|
|
58
|
+
// POSIX path semantics, not the HOST's. This function answers a question about
|
|
59
|
+
// a darwin filesystem — `platform` is a PARAMETER, so the host running the code
|
|
60
|
+
// may be any of the three. Node's default `join`/`dirname`/`basename` follow the
|
|
61
|
+
// host, so on win32 `join('/usr/local/lib', 'girepository-1.0')` becomes
|
|
62
|
+
// `\usr\local\lib\girepository-1.0` and never matches the darwin path the
|
|
63
|
+
// caller (or the injected `existsDir`) is holding. Measured on the Windows leg:
|
|
64
|
+
// three `systemGiLibraryDirs` specs returned `[]` where they assert a prefix.
|
|
65
|
+
// `PROBED_GI_LIBDIRS` is darwin-only, so POSIX is always the right dialect here.
|
|
66
|
+
import { posix } from 'node:path';
|
|
67
|
+
const { basename, dirname, join } = posix;
|
|
59
68
|
|
|
60
69
|
const require = createRequire(import.meta.url);
|
|
61
70
|
|