@miniben90/x-win 1.8.0-beta → 1.8.1

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 +8 -0
  2. package/index.js +25 -10
  3. package/package.json +10 -10
package/README.md CHANGED
@@ -157,8 +157,10 @@ sudo apt install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0
157
157
  ```
158
158
 
159
159
  > ⚠️**Warning**
160
+ > libc.so.6 is needed
160
161
  > Recovery url is not available on linux
161
162
 
163
+
162
164
  ### GNOME (Wayland)
163
165
 
164
166
  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).
@@ -167,6 +169,12 @@ The extension can be installed using the `installExtension` function, which will
167
169
 
168
170
  After executing this function, it's vital to **restart the user session** to load the new extension and then proceed to enable it using `enableExtension` to be able to use x-win.
169
171
 
172
+ | Gnome Distrib. | Tested |
173
+ |---|---|
174
+ | Fedora Workstation 39 | ✅ |
175
+ | Ubuntu 22.04.4 Desktop | ✅ |
176
+ | Debian 12 Desktop | ✅ |
177
+
170
178
  ### Darwin (version 10.6+)
171
179
 
172
180
  ## Screen recording permission introduced in macOS 10.15 Catalina
package/index.js CHANGED
@@ -224,17 +224,32 @@ switch (platform) {
224
224
  }
225
225
  break
226
226
  case 'arm':
227
- localFileExisted = existsSync(
228
- join(__dirname, 'x-win.linux-arm-gnueabihf.node')
229
- )
230
- try {
231
- if (localFileExisted) {
232
- nativeBinding = require('./x-win.linux-arm-gnueabihf.node')
233
- } else {
234
- nativeBinding = require('@miniben90/x-win-linux-arm-gnueabihf')
227
+ if (isMusl()) {
228
+ localFileExisted = existsSync(
229
+ join(__dirname, 'x-win.linux-arm-musleabihf.node')
230
+ )
231
+ try {
232
+ if (localFileExisted) {
233
+ nativeBinding = require('./x-win.linux-arm-musleabihf.node')
234
+ } else {
235
+ nativeBinding = require('@miniben90/x-win-linux-arm-musleabihf')
236
+ }
237
+ } catch (e) {
238
+ loadError = e
239
+ }
240
+ } else {
241
+ localFileExisted = existsSync(
242
+ join(__dirname, 'x-win.linux-arm-gnueabihf.node')
243
+ )
244
+ try {
245
+ if (localFileExisted) {
246
+ nativeBinding = require('./x-win.linux-arm-gnueabihf.node')
247
+ } else {
248
+ nativeBinding = require('@miniben90/x-win-linux-arm-gnueabihf')
249
+ }
250
+ } catch (e) {
251
+ loadError = e
235
252
  }
236
- } catch (e) {
237
- loadError = e
238
253
  }
239
254
  break
240
255
  case 'riscv64':
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.8.0-beta",
4
+ "version": "1.8.1",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "files": [
@@ -41,8 +41,8 @@
41
41
  "open"
42
42
  ],
43
43
  "devDependencies": {
44
- "@napi-rs/cli": "^2.18.0",
45
- "ava": "^6.1.1"
44
+ "@napi-rs/cli": "^2.18.1",
45
+ "ava": "^6.1.2"
46
46
  },
47
47
  "ava": {
48
48
  "timeout": "3m",
@@ -62,12 +62,12 @@
62
62
  },
63
63
  "packageManager": "yarn@4.0.2",
64
64
  "optionalDependencies": {
65
- "@miniben90/x-win-win32-x64-msvc": "1.8.0-beta",
66
- "@miniben90/x-win-darwin-x64": "1.8.0-beta",
67
- "@miniben90/x-win-linux-x64-gnu": "1.8.0-beta",
68
- "@miniben90/x-win-darwin-arm64": "1.8.0-beta",
69
- "@miniben90/x-win-win32-arm64-msvc": "1.8.0-beta",
70
- "@miniben90/x-win-win32-ia32-msvc": "1.8.0-beta",
71
- "@miniben90/x-win-darwin-universal": "1.8.0-beta"
65
+ "@miniben90/x-win-win32-x64-msvc": "1.8.1",
66
+ "@miniben90/x-win-darwin-x64": "1.8.1",
67
+ "@miniben90/x-win-linux-x64-gnu": "1.8.1",
68
+ "@miniben90/x-win-darwin-arm64": "1.8.1",
69
+ "@miniben90/x-win-win32-arm64-msvc": "1.8.1",
70
+ "@miniben90/x-win-win32-ia32-msvc": "1.8.1",
71
+ "@miniben90/x-win-darwin-universal": "1.8.1"
72
72
  }
73
73
  }