@miniben90/x-win 1.10.3 → 2.0.3
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/README.md +13 -0
- package/index.d.ts +5 -2
- package/package.json +40 -12
package/README.md
CHANGED
|
@@ -272,6 +272,19 @@ It will use AppleScript to get informations for chromium browsers and safari
|
|
|
272
272
|
|
|
273
273
|
* To prevent potential crashes and issues, it's recommended to execute recovery operations within a worker thread ([https://nodejs.org/api/worker_threads.html](https://nodejs.org/api/worker_threads.html))
|
|
274
274
|
* For macOS, you can utilize functions to check and request screen permissions ([https://www.electronjs.org/fr/docs/latest/api/system-preferences](https://www.electronjs.org/fr/docs/latest/api/system-preferences))
|
|
275
|
+
* When building your application, it’s important to specify all optional packages to be moved to `asar.unpack` to prevent issues during the signing process. [https://www.electronforge.io/config/plugins/auto-unpack-natives](https://www.electronforge.io/config/plugins/auto-unpack-natives) [https://www.electron.build/app-builder-lib.interface.configuration#asarunpack](https://www.electron.build/app-builder-lib.interface.configuration#asarunpack)
|
|
276
|
+
|
|
277
|
+
### Questions
|
|
278
|
+
|
|
279
|
+
* Why can't I find optional dependencies when I build my application?
|
|
280
|
+
|
|
281
|
+
When setting up CI/CD to build your application, it's important to enforce the installation of sub-packages for each system to prevent any missing components.
|
|
282
|
+
|
|
283
|
+
examples:
|
|
284
|
+
|
|
285
|
+
* `npm install --save-dev @miniben90/x-win-win32-x64-msvc @miniben90/x-win-win32-ia32-msvc @miniben90/x-win-win32-arm64-msvc --ignore-platform --ignore-engines` for win32 system
|
|
286
|
+
* `npm install --save-dev @miniben90/x-win-darwin-arm64 @miniben90/x-win-darwin-universal @miniben90/x-win-darwin-x64 --ignore-platform --ignore-engines` for Darwin system
|
|
287
|
+
* `npm install --save-dev @miniben90/x-win-linux-x64-gnu @miniben90/x-win-linux-x64-musl4 --ignore-platform --ignore-engines` for Linux system
|
|
275
288
|
|
|
276
289
|
<hr class="padding-top: 30px;padding-bottom:30px">
|
|
277
290
|
|
package/index.d.ts
CHANGED
|
@@ -329,8 +329,7 @@ export declare class WindowInfo {
|
|
|
329
329
|
position: WindowPosition
|
|
330
330
|
info: ProcessInfo
|
|
331
331
|
usage: UsageInfo
|
|
332
|
-
|
|
333
|
-
constructor(id: number, os: string, title: string, position: WindowPosition, info: ProcessInfo, usage: UsageInfo, url: string)
|
|
332
|
+
constructor(id: number, os: string, title: string, position: WindowPosition, info: ProcessInfo, usage: UsageInfo)
|
|
334
333
|
/**
|
|
335
334
|
* Funciton who help to recover icon of application and will return `IconInfo`.
|
|
336
335
|
*/
|
|
@@ -339,4 +338,8 @@ export declare class WindowInfo {
|
|
|
339
338
|
* Promise funciton who help to recover icon of application and will return `IconInfo`.
|
|
340
339
|
*/
|
|
341
340
|
getIconAsync(): Promise<IconInfo>
|
|
341
|
+
/**
|
|
342
|
+
* Getter to recover browser url
|
|
343
|
+
*/
|
|
344
|
+
get url(): string
|
|
342
345
|
}
|
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": "
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
"email": "contact@benkhadra.com",
|
|
28
28
|
"url": "https://benkhadra.com/"
|
|
29
29
|
},
|
|
30
|
-
"repository":
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/miniben-90/x-win.git"
|
|
33
|
+
},
|
|
31
34
|
"license": "MIT",
|
|
32
35
|
"keywords": [
|
|
33
36
|
"active",
|
|
@@ -42,20 +45,45 @@
|
|
|
42
45
|
"open"
|
|
43
46
|
],
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@napi-rs/cli": "^2.18.4"
|
|
48
|
+
"@napi-rs/cli": "^2.18.4",
|
|
49
|
+
"ava": "6.2.0",
|
|
50
|
+
"husky": "^9.1.6"
|
|
51
|
+
},
|
|
52
|
+
"ava": {
|
|
53
|
+
"timeout": "3m",
|
|
54
|
+
"failFast": true,
|
|
55
|
+
"files": [
|
|
56
|
+
"__test__/**/*.mjs"
|
|
57
|
+
]
|
|
46
58
|
},
|
|
47
59
|
"engines": {
|
|
48
60
|
"node": ">= 14"
|
|
49
61
|
},
|
|
50
|
-
"scripts": {
|
|
62
|
+
"scripts": {
|
|
63
|
+
"artifacts": "napi artifacts",
|
|
64
|
+
"build": "napi build --platform --release",
|
|
65
|
+
"build:debug": "napi build --platform",
|
|
66
|
+
"prepublishOnly": "napi prepublish -t npm",
|
|
67
|
+
"test": "ava",
|
|
68
|
+
"universal": "napi universal",
|
|
69
|
+
"version": "napi version",
|
|
70
|
+
"prepare": "husky",
|
|
71
|
+
"lint:rs": "cd ./x-win-rs && cargo fmt -- --check",
|
|
72
|
+
"lint:napi": "cargo fmt -- --check",
|
|
73
|
+
"lint": "yarn lint:rs && yarn lint:napi",
|
|
74
|
+
"clippy:rs": "cd ./x-win-rs && cargo clippy -- -D warnings",
|
|
75
|
+
"clippy:napi": "cargo clippy -- -D warnings",
|
|
76
|
+
"clippy": "yarn clippy:rs && yarn clippy:napi"
|
|
77
|
+
},
|
|
78
|
+
"packageManager": "yarn@4.5.0",
|
|
51
79
|
"optionalDependencies": {
|
|
52
|
-
"@miniben90/x-win-win32-x64-msvc": "
|
|
53
|
-
"@miniben90/x-win-darwin-x64": "
|
|
54
|
-
"@miniben90/x-win-linux-x64-gnu": "
|
|
55
|
-
"@miniben90/x-win-darwin-arm64": "
|
|
56
|
-
"@miniben90/x-win-win32-arm64-msvc": "
|
|
57
|
-
"@miniben90/x-win-win32-ia32-msvc": "
|
|
58
|
-
"@miniben90/x-win-darwin-universal": "
|
|
59
|
-
"@miniben90/x-win-linux-x64-musl": "
|
|
80
|
+
"@miniben90/x-win-win32-x64-msvc": "2.0.3",
|
|
81
|
+
"@miniben90/x-win-darwin-x64": "2.0.3",
|
|
82
|
+
"@miniben90/x-win-linux-x64-gnu": "2.0.3",
|
|
83
|
+
"@miniben90/x-win-darwin-arm64": "2.0.3",
|
|
84
|
+
"@miniben90/x-win-win32-arm64-msvc": "2.0.3",
|
|
85
|
+
"@miniben90/x-win-win32-ia32-msvc": "2.0.3",
|
|
86
|
+
"@miniben90/x-win-darwin-universal": "2.0.3",
|
|
87
|
+
"@miniben90/x-win-linux-x64-musl": "2.0.3"
|
|
60
88
|
}
|
|
61
89
|
}
|