@gjsify/terminal-native 0.3.15 → 0.3.17

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.
Files changed (2) hide show
  1. package/lib/esm/index.js +1 -17
  2. package/package.json +6 -6
package/lib/esm/index.js CHANGED
@@ -1,17 +1 @@
1
- //#region src/ts/index.ts
2
- let _mod = null;
3
- const _gi = globalThis.imports?.gi;
4
- if (_gi) {
5
- try {
6
- _mod = _gi["GjsifyTerminal"];
7
- } catch {}
8
- }
9
- /** The native GjsifyTerminal module, or null if not installed. */
10
- const nativeTerminal = _mod;
11
- /** Returns true when the GjsifyTerminal native library is available. */
12
- function hasNativeTerminal() {
13
- return _mod !== null;
14
- }
15
-
16
- //#endregion
17
- export { hasNativeTerminal, nativeTerminal };
1
+ let e=null;const t=globalThis.imports?.gi;if(t)try{e=t.GjsifyTerminal}catch{}const n=e;function r(){return e!==null}export{r as hasNativeTerminal,n as nativeTerminal};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/terminal-native",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
4
  "description": "Optional Vala/GObject bridge providing Posix.isatty(), ioctl(TIOCGWINSZ), termios raw-mode and SIGWINCH for GJS. Enhances @gjsify/tty and @gjsify/process with correct terminal behaviour when installed.",
5
5
  "type": "module",
6
6
  "main": "lib/esm/index.js",
@@ -46,13 +46,13 @@
46
46
  "build:gir-types": "ts-for-gir generate --externalDeps --allowMissingDeps --girDirectories=./prebuilds/linux-x86_64 --girDirectories=/usr/share/gir-1.0 --modules=GjsifyTerminal-1.0 --outdir=src/ts --npmScope=@girs --package=false --ignoreVersionConflicts=true"
47
47
  },
48
48
  "dependencies": {
49
- "@girs/glib-2.0": "2.88.0-4.0.0-rc.9",
50
- "@girs/gobject-2.0": "2.88.0-4.0.0-rc.9"
49
+ "@girs/glib-2.0": "2.88.0-4.0.0-rc.14",
50
+ "@girs/gobject-2.0": "2.88.0-4.0.0-rc.14"
51
51
  },
52
52
  "devDependencies": {
53
- "@gjsify/cli": "^0.3.15",
54
- "@ts-for-gir/cli": "^4.0.0-rc.9",
55
- "@types/node": "^25.6.0",
53
+ "@gjsify/cli": "^0.3.17",
54
+ "@ts-for-gir/cli": "^4.0.0-rc.14",
55
+ "@types/node": "^25.6.2",
56
56
  "typescript": "^6.0.3"
57
57
  }
58
58
  }