@miniben90/x-win 1.10.1 → 1.10.2

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 (3) hide show
  1. package/README.md +7 -4
  2. package/index.d.ts +6 -6
  3. package/package.json +9 -9
package/README.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # @miniben90/x-win
2
+
2
3
  [![ci-rs](https://github.com/miniben-90/x-win/actions/workflows/ci-rs.yml/badge.svg)](https://github.com/miniben-90/x-win/actions/workflows/ci-rs.yml)
3
4
  [![ci-napi](https://github.com/miniben-90/x-win/actions/workflows/ci-napi.yml/badge.svg)](https://github.com/miniben-90/x-win/actions/workflows/ci-napi.yml)
4
5
  [![Node version](https://img.shields.io/node/v/@miniben90/x-win.svg)](https://www.npmjs.com/package/@miniben90/x-win)
5
6
  ![npm type definitions](https://img.shields.io/npm/types/@miniben90/x-win)
6
- ![NPM License](https://img.shields.io/npm/l/@miniben90/x-win)
7
+ ![License](https://img.shields.io/npm/l/@miniben90/x-win)
7
8
  ![NPM Version](https://img.shields.io/npm/v/%40miniben90%2Fx-win)
8
9
 
9
- This project uses Rust and napi-rs to make it easy to obtain the active window or an array of open windows. It works on Microsoft Windows (10, 11), [Linux (with X server)](#linux), [Linux (with Gnome =< 45)](#GNOME), and [macOS 10.6+](#darwin).
10
+ This project uses Rust and napi-rs to make it easy to obtain the active window or an array of open windows. It works on Microsoft Windows (10, 11), [Linux (with X server)](#linux), [Linux (with Gnome =< 45)](#wayland), and [macOS 10.6+](#darwin).
10
11
 
11
12
  ## How to install
12
13
 
@@ -188,7 +189,7 @@ sudo apt install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0
188
189
  > ⚠️**Warning**<br />
189
190
  > Recovery url is not available on linux
190
191
 
191
- ### GNOME (Wayland)
192
+ ### Wayland
192
193
 
193
194
  In order to recover data, you'll need to install and activate an extension designed for systems running GNOME version 41 or newer (as evaluation is disabled from this version onward).
194
195
 
@@ -202,7 +203,9 @@ After executing this function, it's vital to **restart the user session** to loa
202
203
  | Ubuntu 22.04.4 Desktop | ✅ |
203
204
  | Debian 12 Desktop | ✅ |
204
205
 
205
- ### Darwin (version 10.6+)
206
+ ## Darwin
207
+
208
+ > ⚠️**Warning**<br /> This project work only for macos version 10.6+
206
209
 
207
210
  ## Screen recording permission introduced in macOS 10.15 Catalina
208
211
 
package/index.d.ts CHANGED
@@ -298,15 +298,15 @@ export declare function unsubscribeActiveWindow(threadId: number): void
298
298
  */
299
299
  export declare function unsubscribeAllActiveWindow(): void
300
300
  /**
301
- * Install Gnome extensions required for Linux using Gnome > 41.
301
+ * Install "@mininben90/x-win" Gnome extension required for Linux using Gnome > 41.
302
302
  * This function will write extension files needed to correctly detect working windows with Wayland desktop environment.
303
- * Restart session will be require to install the gnome extension.
303
+ * **Restart session will be require to install the gnome extension.**
304
304
  */
305
305
  export declare function installExtension(): boolean
306
306
  /**
307
- * Install Gnome extensions required for Linux using Gnome > 41.
308
- * This function will write extension files needed to correctly detect working windows with Wayland desktop environment.
309
- * Restart session will be require to remove the gnome extension.
307
+ * Uninstall "@mininben90/x-win" Gnome extension.
308
+ * This function will disable and remove extension files.
309
+ * **Restart session will be require to remove the gnome extension.**
310
310
  */
311
311
  export declare function uninstallExtension(): boolean
312
312
  /**
@@ -322,7 +322,7 @@ export declare function disableExtension(): boolean
322
322
  /**
323
323
  * Struct to store all informations of the window
324
324
  */
325
- export class WindowInfo {
325
+ export declare class WindowInfo {
326
326
  id: number
327
327
  os: string
328
328
  title: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@miniben90/x-win",
3
3
  "description": "This package allows you to retrieve precise information about active and open windows on Windows, MacOS, and Linux. You can obtain the position, size, title, and other memory of windows.",
4
- "version": "1.10.1",
4
+ "version": "1.10.2",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "files": [
@@ -68,13 +68,13 @@
68
68
  },
69
69
  "packageManager": "yarn@4.1.1",
70
70
  "optionalDependencies": {
71
- "@miniben90/x-win-win32-x64-msvc": "1.10.1",
72
- "@miniben90/x-win-darwin-x64": "1.10.1",
73
- "@miniben90/x-win-linux-x64-gnu": "1.10.1",
74
- "@miniben90/x-win-darwin-arm64": "1.10.1",
75
- "@miniben90/x-win-win32-arm64-msvc": "1.10.1",
76
- "@miniben90/x-win-win32-ia32-msvc": "1.10.1",
77
- "@miniben90/x-win-darwin-universal": "1.10.1",
78
- "@miniben90/x-win-linux-x64-musl": "1.10.1"
71
+ "@miniben90/x-win-win32-x64-msvc": "1.10.2",
72
+ "@miniben90/x-win-darwin-x64": "1.10.2",
73
+ "@miniben90/x-win-linux-x64-gnu": "1.10.2",
74
+ "@miniben90/x-win-darwin-arm64": "1.10.2",
75
+ "@miniben90/x-win-win32-arm64-msvc": "1.10.2",
76
+ "@miniben90/x-win-win32-ia32-msvc": "1.10.2",
77
+ "@miniben90/x-win-darwin-universal": "1.10.2",
78
+ "@miniben90/x-win-linux-x64-musl": "1.10.2"
79
79
  }
80
80
  }