@miniben90/x-win 3.0.0 → 3.1.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.
- package/README.md +1 -0
- package/index.d.ts +1 -1
- package/index.js +4 -62
- package/package.json +11 -11
package/README.md
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function isMusl() {
|
|
|
17
17
|
// For Node 10
|
|
18
18
|
if (!process.report || typeof process.report.getReport !== 'function') {
|
|
19
19
|
try {
|
|
20
|
-
const lddPath = require('child_process').execSync('which ldd').toString().trim()
|
|
20
|
+
const lddPath = require('child_process').execSync('which ldd').toString().trim();
|
|
21
21
|
return readFileSync(lddPath, 'utf8').includes('musl')
|
|
22
22
|
} catch (e) {
|
|
23
23
|
return true
|
|
@@ -224,72 +224,14 @@ switch (platform) {
|
|
|
224
224
|
}
|
|
225
225
|
break
|
|
226
226
|
case 'arm':
|
|
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
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
break
|
|
255
|
-
case 'riscv64':
|
|
256
|
-
if (isMusl()) {
|
|
257
|
-
localFileExisted = existsSync(
|
|
258
|
-
join(__dirname, 'x-win.linux-riscv64-musl.node')
|
|
259
|
-
)
|
|
260
|
-
try {
|
|
261
|
-
if (localFileExisted) {
|
|
262
|
-
nativeBinding = require('./x-win.linux-riscv64-musl.node')
|
|
263
|
-
} else {
|
|
264
|
-
nativeBinding = require('@miniben90/x-win-linux-riscv64-musl')
|
|
265
|
-
}
|
|
266
|
-
} catch (e) {
|
|
267
|
-
loadError = e
|
|
268
|
-
}
|
|
269
|
-
} else {
|
|
270
|
-
localFileExisted = existsSync(
|
|
271
|
-
join(__dirname, 'x-win.linux-riscv64-gnu.node')
|
|
272
|
-
)
|
|
273
|
-
try {
|
|
274
|
-
if (localFileExisted) {
|
|
275
|
-
nativeBinding = require('./x-win.linux-riscv64-gnu.node')
|
|
276
|
-
} else {
|
|
277
|
-
nativeBinding = require('@miniben90/x-win-linux-riscv64-gnu')
|
|
278
|
-
}
|
|
279
|
-
} catch (e) {
|
|
280
|
-
loadError = e
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
break
|
|
284
|
-
case 's390x':
|
|
285
227
|
localFileExisted = existsSync(
|
|
286
|
-
join(__dirname, 'x-win.linux-
|
|
228
|
+
join(__dirname, 'x-win.linux-arm-gnueabihf.node')
|
|
287
229
|
)
|
|
288
230
|
try {
|
|
289
231
|
if (localFileExisted) {
|
|
290
|
-
nativeBinding = require('./x-win.linux-
|
|
232
|
+
nativeBinding = require('./x-win.linux-arm-gnueabihf.node')
|
|
291
233
|
} else {
|
|
292
|
-
nativeBinding = require('@miniben90/x-win-linux-
|
|
234
|
+
nativeBinding = require('@miniben90/x-win-linux-arm-gnueabihf')
|
|
293
235
|
}
|
|
294
236
|
} catch (e) {
|
|
295
237
|
loadError = e
|
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": "3.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"artifacts": "napi artifacts",
|
|
64
64
|
"build": "napi build --platform --release",
|
|
65
65
|
"build:debug": "napi build --platform",
|
|
66
|
-
"prepublishOnly": "napi prepublish -t npm",
|
|
66
|
+
"prepublishOnly": "napi prepublish --skip-gh-release -t npm",
|
|
67
67
|
"test": "ava",
|
|
68
68
|
"universal": "napi universal",
|
|
69
69
|
"version": "napi version",
|
|
@@ -75,15 +75,15 @@
|
|
|
75
75
|
"clippy:napi": "cargo clippy -- -D warnings",
|
|
76
76
|
"clippy": "yarn clippy:rs && yarn clippy:napi"
|
|
77
77
|
},
|
|
78
|
-
"packageManager": "yarn@4.9.
|
|
78
|
+
"packageManager": "yarn@4.9.4",
|
|
79
79
|
"optionalDependencies": {
|
|
80
|
-
"@miniben90/x-win-win32-x64-msvc": "3.
|
|
81
|
-
"@miniben90/x-win-darwin-x64": "3.
|
|
82
|
-
"@miniben90/x-win-linux-x64-gnu": "3.
|
|
83
|
-
"@miniben90/x-win-darwin-arm64": "3.
|
|
84
|
-
"@miniben90/x-win-win32-arm64-msvc": "3.
|
|
85
|
-
"@miniben90/x-win-win32-ia32-msvc": "3.
|
|
86
|
-
"@miniben90/x-win-darwin-universal": "3.
|
|
87
|
-
"@miniben90/x-win-linux-x64-musl": "3.
|
|
80
|
+
"@miniben90/x-win-win32-x64-msvc": "3.1.1",
|
|
81
|
+
"@miniben90/x-win-darwin-x64": "3.1.1",
|
|
82
|
+
"@miniben90/x-win-linux-x64-gnu": "3.1.1",
|
|
83
|
+
"@miniben90/x-win-darwin-arm64": "3.1.1",
|
|
84
|
+
"@miniben90/x-win-win32-arm64-msvc": "3.1.1",
|
|
85
|
+
"@miniben90/x-win-win32-ia32-msvc": "3.1.1",
|
|
86
|
+
"@miniben90/x-win-darwin-universal": "3.1.1",
|
|
87
|
+
"@miniben90/x-win-linux-x64-musl": "3.1.1"
|
|
88
88
|
}
|
|
89
89
|
}
|