appium-uiautomator2-driver 8.2.0 → 8.2.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.
- package/CHANGELOG.md +12 -0
- package/build/lib/commands/actions.d.ts.map +1 -1
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/aut.d.ts.map +1 -1
- package/build/lib/commands/aut.js +1 -2
- package/build/lib/commands/aut.js.map +1 -1
- package/build/lib/commands/battery.d.ts.map +1 -1
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/element.d.ts +1 -1
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +1 -1
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/screenshot.d.ts +1 -1
- package/build/lib/commands/screenshot.d.ts.map +1 -1
- package/build/lib/commands/screenshot.js +1 -3
- package/build/lib/commands/screenshot.js.map +1 -1
- package/build/lib/commands/viewport.d.ts.map +1 -1
- package/build/lib/commands/viewport.js.map +1 -1
- package/build/lib/commands/windows.d.ts.map +1 -1
- package/build/lib/commands/windows.js.map +1 -1
- package/build/lib/css/index.d.ts.map +1 -1
- package/build/lib/css/index.js.map +1 -1
- package/build/lib/css/ui-automator-emitter.d.ts.map +1 -1
- package/build/lib/css/ui-automator-emitter.js +1 -3
- package/build/lib/css/ui-automator-emitter.js.map +1 -1
- package/build/lib/doctor/optional-checks.d.ts.map +1 -1
- package/build/lib/doctor/optional-checks.js.map +1 -1
- package/build/lib/doctor/required-checks.d.ts.map +1 -1
- package/build/lib/doctor/required-checks.js.map +1 -1
- package/build/lib/driver.d.ts +6 -6
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +9 -20
- package/build/lib/driver.js.map +1 -1
- package/build/lib/logger.d.ts.map +1 -1
- package/build/lib/logger.js.map +1 -1
- package/build/lib/session-claim-handler.d.ts.map +1 -1
- package/build/lib/session-claim-handler.js +1 -1
- package/build/lib/session-claim-handler.js.map +1 -1
- package/build/lib/types.d.ts.map +1 -1
- package/build/lib/uiautomator2-server/core.d.ts +1 -1
- package/build/lib/uiautomator2-server/core.d.ts.map +1 -1
- package/build/lib/uiautomator2-server/core.js +8 -22
- package/build/lib/uiautomator2-server/core.js.map +1 -1
- package/build/lib/uiautomator2-server/session.d.ts.map +1 -1
- package/build/lib/uiautomator2-server/session.js +8 -6
- package/build/lib/uiautomator2-server/session.js.map +1 -1
- package/build/lib/utils/app.d.ts.map +1 -1
- package/build/lib/utils/app.js.map +1 -1
- package/build/lib/utils/mjpeg.d.ts.map +1 -1
- package/build/lib/utils/mjpeg.js +1 -1
- package/build/lib/utils/mjpeg.js.map +1 -1
- package/build/lib/utils/object.d.ts.map +1 -1
- package/build/lib/utils/object.js.map +1 -1
- package/lib/commands/actions.ts +4 -12
- package/lib/commands/alert.ts +2 -8
- package/lib/commands/app-management.ts +3 -4
- package/lib/commands/aut.ts +4 -10
- package/lib/commands/battery.ts +1 -5
- package/lib/commands/element.ts +15 -51
- package/lib/commands/find.ts +5 -6
- package/lib/commands/gestures.ts +5 -11
- package/lib/commands/keyboard.ts +10 -19
- package/lib/commands/misc.ts +3 -7
- package/lib/commands/screenshot.ts +8 -15
- package/lib/commands/viewport.ts +3 -10
- package/lib/commands/windows.ts +1 -5
- package/lib/css/index.ts +3 -5
- package/lib/css/ui-automator-emitter.ts +3 -9
- package/lib/doctor/optional-checks.ts +1 -1
- package/lib/doctor/required-checks.ts +1 -1
- package/lib/driver.ts +34 -61
- package/lib/logger.ts +1 -1
- package/lib/session-claim-handler.ts +21 -45
- package/lib/types.ts +2 -2
- package/lib/uiautomator2-server/core.ts +24 -60
- package/lib/uiautomator2-server/session.ts +13 -22
- package/lib/utils/app.ts +1 -0
- package/lib/utils/mjpeg.ts +8 -28
- package/lib/utils/object.ts +1 -4
- package/npm-shrinkwrap.json +74 -95
- package/package.json +21 -35
- package/scripts/reset.mjs +2 -8
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-uiautomator2-driver",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-uiautomator2-driver",
|
|
9
|
-
"version": "8.2.
|
|
9
|
+
"version": "8.2.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@appium/css-locator-to-native": "^1.0.1",
|
|
@@ -21,14 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@appium/docutils": "^2.0.0-rc.1",
|
|
24
|
-
"@appium/
|
|
24
|
+
"@appium/oxc-config": "^1.1.0",
|
|
25
|
+
"@appium/semantic-release-config": "^1.1.0",
|
|
25
26
|
"@appium/support": "^7.0.0-rc.1",
|
|
26
|
-
"@appium/tsconfig": "^1.
|
|
27
|
+
"@appium/tsconfig": "^1.2.0",
|
|
27
28
|
"@appium/types": "^1.5.0",
|
|
28
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
29
|
-
"@semantic-release/git": "^10.0.1",
|
|
30
|
-
"@types/chai": "^5.2.3",
|
|
31
|
-
"@types/chai-as-promised": "^8.0.2",
|
|
32
29
|
"@types/node": "^26.0.0",
|
|
33
30
|
"@types/portscanner": "^2.1.1",
|
|
34
31
|
"@types/semver": "^7.5.0",
|
|
@@ -36,14 +33,8 @@
|
|
|
36
33
|
"@types/unzipper": "^0.10.11",
|
|
37
34
|
"@types/ws": "^8.5.4",
|
|
38
35
|
"@xmldom/xmldom": "^0.x",
|
|
39
|
-
"chai": "^6.0.0",
|
|
40
|
-
"chai-as-promised": "^8.0.0",
|
|
41
|
-
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
42
|
-
"prettier": "^3.0.3",
|
|
43
|
-
"semantic-release": "^25.0.2",
|
|
44
36
|
"sharp": "^0.x",
|
|
45
37
|
"sinon": "^22.0.0",
|
|
46
|
-
"typescript": "^6.0.2",
|
|
47
38
|
"unzipper": "^0.x",
|
|
48
39
|
"webdriverio": "^9.0.9",
|
|
49
40
|
"xpath": "^0.x"
|
|
@@ -102,10 +93,22 @@
|
|
|
102
93
|
"npm": ">=10"
|
|
103
94
|
}
|
|
104
95
|
},
|
|
96
|
+
"node_modules/@appium/base-driver/node_modules/axios": {
|
|
97
|
+
"version": "1.18.1",
|
|
98
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.18.1.tgz",
|
|
99
|
+
"integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==",
|
|
100
|
+
"license": "MIT",
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"follow-redirects": "^1.16.0",
|
|
103
|
+
"form-data": "^4.0.5",
|
|
104
|
+
"https-proxy-agent": "^5.0.1",
|
|
105
|
+
"proxy-from-env": "^2.1.0"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
105
108
|
"node_modules/@appium/css-locator-to-native": {
|
|
106
|
-
"version": "1.0.
|
|
107
|
-
"resolved": "https://registry.npmjs.org/@appium/css-locator-to-native/-/css-locator-to-native-1.0.
|
|
108
|
-
"integrity": "sha512-
|
|
109
|
+
"version": "1.0.6",
|
|
110
|
+
"resolved": "https://registry.npmjs.org/@appium/css-locator-to-native/-/css-locator-to-native-1.0.6.tgz",
|
|
111
|
+
"integrity": "sha512-65UfoooziCETtDWZZ7Tb+MC8YEjJK5iKsGks4Cn/rJAwWFLjlRkW/pdK0Kr1Lf25Mo/JnB1bk7PEes/clvdMhA==",
|
|
109
112
|
"license": "Apache-2.0",
|
|
110
113
|
"dependencies": {
|
|
111
114
|
"css-selector-parser": "^3.3.0"
|
|
@@ -233,6 +236,18 @@
|
|
|
233
236
|
"npm": ">=10"
|
|
234
237
|
}
|
|
235
238
|
},
|
|
239
|
+
"node_modules/@appium/support/node_modules/axios": {
|
|
240
|
+
"version": "1.18.1",
|
|
241
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.18.1.tgz",
|
|
242
|
+
"integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==",
|
|
243
|
+
"license": "MIT",
|
|
244
|
+
"dependencies": {
|
|
245
|
+
"follow-redirects": "^1.16.0",
|
|
246
|
+
"form-data": "^4.0.5",
|
|
247
|
+
"https-proxy-agent": "^5.0.1",
|
|
248
|
+
"proxy-from-env": "^2.1.0"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
236
251
|
"node_modules/@appium/support/node_modules/teen_process": {
|
|
237
252
|
"version": "4.1.9",
|
|
238
253
|
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.1.9.tgz",
|
|
@@ -393,9 +408,9 @@
|
|
|
393
408
|
}
|
|
394
409
|
},
|
|
395
410
|
"node_modules/appium-adb": {
|
|
396
|
-
"version": "16.0.
|
|
397
|
-
"resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-16.0.
|
|
398
|
-
"integrity": "sha512-
|
|
411
|
+
"version": "16.0.2",
|
|
412
|
+
"resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-16.0.2.tgz",
|
|
413
|
+
"integrity": "sha512-ygyjjdRbHiubZkVpNdMr+FZh11D5F3Mo7CvsabWnQByQA7ZbtiYELAXL9R9qYDr596mKU83vFWJXtxf0NFmYNw==",
|
|
399
414
|
"license": "Apache-2.0",
|
|
400
415
|
"dependencies": {
|
|
401
416
|
"@appium/support": "^7.2.2",
|
|
@@ -412,9 +427,9 @@
|
|
|
412
427
|
}
|
|
413
428
|
},
|
|
414
429
|
"node_modules/appium-android-driver": {
|
|
415
|
-
"version": "14.0.
|
|
416
|
-
"resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-14.0.
|
|
417
|
-
"integrity": "sha512-
|
|
430
|
+
"version": "14.0.4",
|
|
431
|
+
"resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-14.0.4.tgz",
|
|
432
|
+
"integrity": "sha512-BuxG2a1pTO92k05EZH+0bcifjAxYZ71mUT3exPOK4vtlDtPgk48Ciij5jtkP5wjG0bDFTDqebAnLsG1y34x1yg==",
|
|
418
433
|
"license": "Apache-2.0",
|
|
419
434
|
"dependencies": {
|
|
420
435
|
"@appium/support": "^7.2.5",
|
|
@@ -439,9 +454,9 @@
|
|
|
439
454
|
}
|
|
440
455
|
},
|
|
441
456
|
"node_modules/appium-chromedriver": {
|
|
442
|
-
"version": "9.0.
|
|
443
|
-
"resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-9.0.
|
|
444
|
-
"integrity": "sha512-
|
|
457
|
+
"version": "9.0.3",
|
|
458
|
+
"resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-9.0.3.tgz",
|
|
459
|
+
"integrity": "sha512-0oY/UTwveExqa6UhRNU9x/1ljOFKyOgm5a311bCx8drkn/6ouxeky48BHx7pJulQdkR2LaJwOJV5O1qxoniBLg==",
|
|
445
460
|
"license": "Apache-2.0",
|
|
446
461
|
"dependencies": {
|
|
447
462
|
"@appium/base-driver": "^10.0.0-rc.2",
|
|
@@ -461,9 +476,9 @@
|
|
|
461
476
|
}
|
|
462
477
|
},
|
|
463
478
|
"node_modules/appium-uiautomator2-server": {
|
|
464
|
-
"version": "10.3.
|
|
465
|
-
"resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-10.3.
|
|
466
|
-
"integrity": "sha512-
|
|
479
|
+
"version": "10.3.5",
|
|
480
|
+
"resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-10.3.5.tgz",
|
|
481
|
+
"integrity": "sha512-P3q+/EHN2ir1XqCoR9u059Qn6Rp30w8qCdLRCzcIwb39GJo4DkV+4Gry+Za6BQtssto7jEbXq6KGc7LJDiCBvw==",
|
|
467
482
|
"license": "Apache-2.0",
|
|
468
483
|
"engines": {
|
|
469
484
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -503,9 +518,9 @@
|
|
|
503
518
|
"license": "MIT"
|
|
504
519
|
},
|
|
505
520
|
"node_modules/asyncbox": {
|
|
506
|
-
"version": "6.4.
|
|
507
|
-
"resolved": "https://registry.npmjs.org/asyncbox/-/asyncbox-6.4.
|
|
508
|
-
"integrity": "sha512-
|
|
521
|
+
"version": "6.4.1",
|
|
522
|
+
"resolved": "https://registry.npmjs.org/asyncbox/-/asyncbox-6.4.1.tgz",
|
|
523
|
+
"integrity": "sha512-VsL3X0NczAVgqQAUkuwOdJ/yHay0GQFM6cuqgamWBcGgk70HVJPOnyYistHscN07NeULSHkXx62nb7vWoQ1C7A==",
|
|
509
524
|
"license": "Apache-2.0",
|
|
510
525
|
"dependencies": {
|
|
511
526
|
"p-limit": "^7.2.0"
|
|
@@ -522,13 +537,13 @@
|
|
|
522
537
|
"license": "MIT"
|
|
523
538
|
},
|
|
524
539
|
"node_modules/axios": {
|
|
525
|
-
"version": "1.
|
|
526
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-1.
|
|
527
|
-
"integrity": "sha512-
|
|
540
|
+
"version": "1.19.0",
|
|
541
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.19.0.tgz",
|
|
542
|
+
"integrity": "sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==",
|
|
528
543
|
"license": "MIT",
|
|
529
544
|
"dependencies": {
|
|
530
545
|
"follow-redirects": "^1.16.0",
|
|
531
|
-
"form-data": "^4.0.
|
|
546
|
+
"form-data": "^4.0.6",
|
|
532
547
|
"https-proxy-agent": "^5.0.1",
|
|
533
548
|
"proxy-from-env": "^2.1.0"
|
|
534
549
|
}
|
|
@@ -1716,9 +1731,9 @@
|
|
|
1716
1731
|
}
|
|
1717
1732
|
},
|
|
1718
1733
|
"node_modules/io.appium.settings": {
|
|
1719
|
-
"version": "8.0.
|
|
1720
|
-
"resolved": "https://registry.npmjs.org/io.appium.settings/-/io.appium.settings-8.0.
|
|
1721
|
-
"integrity": "sha512
|
|
1734
|
+
"version": "8.0.5",
|
|
1735
|
+
"resolved": "https://registry.npmjs.org/io.appium.settings/-/io.appium.settings-8.0.5.tgz",
|
|
1736
|
+
"integrity": "sha512-eZ5s4VQTvTiIoujwVb8Z7EqT/m2CQQ3LH2l+s0B7lHnH2SaRVC0/Rhvj5/oveyT6+UA8oM30TAbJMN/72OgOHA==",
|
|
1722
1737
|
"license": "Apache-2.0",
|
|
1723
1738
|
"dependencies": {
|
|
1724
1739
|
"@appium/logger": "^2.0.0-rc.1",
|
|
@@ -1881,6 +1896,12 @@
|
|
|
1881
1896
|
"signal-exit": "^3.0.2"
|
|
1882
1897
|
}
|
|
1883
1898
|
},
|
|
1899
|
+
"node_modules/lockfile/node_modules/signal-exit": {
|
|
1900
|
+
"version": "3.0.7",
|
|
1901
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
|
|
1902
|
+
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
|
|
1903
|
+
"license": "ISC"
|
|
1904
|
+
},
|
|
1884
1905
|
"node_modules/lodash": {
|
|
1885
1906
|
"version": "4.18.1",
|
|
1886
1907
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
|
|
@@ -2000,16 +2021,6 @@
|
|
|
2000
2021
|
"url": "https://opencollective.com/express"
|
|
2001
2022
|
}
|
|
2002
2023
|
},
|
|
2003
|
-
"node_modules/mimic-fn": {
|
|
2004
|
-
"version": "2.1.0",
|
|
2005
|
-
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
|
|
2006
|
-
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
|
|
2007
|
-
"extraneous": true,
|
|
2008
|
-
"license": "MIT",
|
|
2009
|
-
"engines": {
|
|
2010
|
-
"node": ">=6"
|
|
2011
|
-
}
|
|
2012
|
-
},
|
|
2013
2024
|
"node_modules/minimalistic-assert": {
|
|
2014
2025
|
"version": "1.0.1",
|
|
2015
2026
|
"resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
|
|
@@ -2018,12 +2029,12 @@
|
|
|
2018
2029
|
"optional": true
|
|
2019
2030
|
},
|
|
2020
2031
|
"node_modules/minimatch": {
|
|
2021
|
-
"version": "10.2.
|
|
2022
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.
|
|
2023
|
-
"integrity": "sha512-
|
|
2032
|
+
"version": "10.2.6",
|
|
2033
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
|
|
2034
|
+
"integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
|
|
2024
2035
|
"license": "BlueOak-1.0.0",
|
|
2025
2036
|
"dependencies": {
|
|
2026
|
-
"brace-expansion": "^5.0.
|
|
2037
|
+
"brace-expansion": "^5.0.8"
|
|
2027
2038
|
},
|
|
2028
2039
|
"engines": {
|
|
2029
2040
|
"node": "18 || 20 || >=22"
|
|
@@ -2163,22 +2174,6 @@
|
|
|
2163
2174
|
"wrappy": "1"
|
|
2164
2175
|
}
|
|
2165
2176
|
},
|
|
2166
|
-
"node_modules/onetime": {
|
|
2167
|
-
"version": "5.1.2",
|
|
2168
|
-
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
|
|
2169
|
-
"integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
|
|
2170
|
-
"extraneous": true,
|
|
2171
|
-
"license": "MIT",
|
|
2172
|
-
"dependencies": {
|
|
2173
|
-
"mimic-fn": "^2.1.0"
|
|
2174
|
-
},
|
|
2175
|
-
"engines": {
|
|
2176
|
-
"node": ">=6"
|
|
2177
|
-
},
|
|
2178
|
-
"funding": {
|
|
2179
|
-
"url": "https://github.com/sponsors/sindresorhus"
|
|
2180
|
-
}
|
|
2181
|
-
},
|
|
2182
2177
|
"node_modules/p-limit": {
|
|
2183
2178
|
"version": "7.3.1",
|
|
2184
2179
|
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-7.3.1.tgz",
|
|
@@ -2710,12 +2705,6 @@
|
|
|
2710
2705
|
"url": "https://github.com/sponsors/ljharb"
|
|
2711
2706
|
}
|
|
2712
2707
|
},
|
|
2713
|
-
"node_modules/signal-exit": {
|
|
2714
|
-
"version": "3.0.7",
|
|
2715
|
-
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
|
|
2716
|
-
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
|
|
2717
|
-
"license": "ISC"
|
|
2718
|
-
},
|
|
2719
2708
|
"node_modules/spdx-correct": {
|
|
2720
2709
|
"version": "3.2.0",
|
|
2721
2710
|
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz",
|
|
@@ -2726,7 +2715,13 @@
|
|
|
2726
2715
|
"spdx-license-ids": "^3.0.0"
|
|
2727
2716
|
}
|
|
2728
2717
|
},
|
|
2729
|
-
"node_modules/spdx-
|
|
2718
|
+
"node_modules/spdx-exceptions": {
|
|
2719
|
+
"version": "2.5.0",
|
|
2720
|
+
"resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
|
|
2721
|
+
"integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==",
|
|
2722
|
+
"license": "CC-BY-3.0"
|
|
2723
|
+
},
|
|
2724
|
+
"node_modules/spdx-expression-parse": {
|
|
2730
2725
|
"version": "3.0.1",
|
|
2731
2726
|
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
|
|
2732
2727
|
"integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
|
|
@@ -2736,12 +2731,6 @@
|
|
|
2736
2731
|
"spdx-license-ids": "^3.0.0"
|
|
2737
2732
|
}
|
|
2738
2733
|
},
|
|
2739
|
-
"node_modules/spdx-exceptions": {
|
|
2740
|
-
"version": "2.5.0",
|
|
2741
|
-
"resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
|
|
2742
|
-
"integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==",
|
|
2743
|
-
"license": "CC-BY-3.0"
|
|
2744
|
-
},
|
|
2745
2734
|
"node_modules/spdx-license-ids": {
|
|
2746
2735
|
"version": "3.0.23",
|
|
2747
2736
|
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.23.tgz",
|
|
@@ -2924,9 +2913,9 @@
|
|
|
2924
2913
|
}
|
|
2925
2914
|
},
|
|
2926
2915
|
"node_modules/teen_process": {
|
|
2927
|
-
"version": "4.2.
|
|
2928
|
-
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.2.
|
|
2929
|
-
"integrity": "sha512-
|
|
2916
|
+
"version": "4.2.1",
|
|
2917
|
+
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.2.1.tgz",
|
|
2918
|
+
"integrity": "sha512-jtLcBR01HF2z2FGhfvuMpbr+y8wnVQumrh947dLz5Iodv2iZGIJg79TVYK9oznXb5gkQznxdwgonxGQLhmWeWg==",
|
|
2930
2919
|
"license": "Apache-2.0",
|
|
2931
2920
|
"dependencies": {
|
|
2932
2921
|
"shell-quote": "^1.8.1"
|
|
@@ -3071,16 +3060,6 @@
|
|
|
3071
3060
|
"spdx-expression-parse": "^3.0.0"
|
|
3072
3061
|
}
|
|
3073
3062
|
},
|
|
3074
|
-
"node_modules/validate-npm-package-license/node_modules/spdx-expression-parse": {
|
|
3075
|
-
"version": "3.0.1",
|
|
3076
|
-
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
|
|
3077
|
-
"integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
|
|
3078
|
-
"license": "MIT",
|
|
3079
|
-
"dependencies": {
|
|
3080
|
-
"spdx-exceptions": "^2.1.0",
|
|
3081
|
-
"spdx-license-ids": "^3.0.0"
|
|
3082
|
-
}
|
|
3083
|
-
},
|
|
3084
3063
|
"node_modules/vary": {
|
|
3085
3064
|
"version": "1.1.2",
|
|
3086
3065
|
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
package/package.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-uiautomator2-driver",
|
|
3
|
+
"version": "8.2.2",
|
|
3
4
|
"description": "UiAutomator2 integration for Appium",
|
|
4
5
|
"keywords": [
|
|
6
|
+
"android",
|
|
5
7
|
"appium",
|
|
6
|
-
"uiautomator2",
|
|
7
8
|
"automated testing",
|
|
8
|
-
"
|
|
9
|
+
"uiautomator2"
|
|
9
10
|
],
|
|
10
|
-
"version": "8.2.0",
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/appium/appium-uiautomator2-driver/issues"
|
|
13
13
|
},
|
|
14
|
-
"author": "Appium Contributors",
|
|
15
14
|
"license": "Apache-2.0",
|
|
15
|
+
"author": "Appium Contributors",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "https://github.com/appium/appium-uiautomator2-driver.git"
|
|
19
19
|
},
|
|
20
|
-
"main": "./build/lib/index.js",
|
|
21
|
-
"types": "./build/lib/index.d.ts",
|
|
22
20
|
"bin": {},
|
|
23
21
|
"directories": {
|
|
24
22
|
"lib": "lib"
|
|
@@ -31,6 +29,16 @@
|
|
|
31
29
|
"LICENSE",
|
|
32
30
|
"npm-shrinkwrap.json"
|
|
33
31
|
],
|
|
32
|
+
"type": "module",
|
|
33
|
+
"main": "./build/lib/index.js",
|
|
34
|
+
"types": "./build/lib/index.d.ts",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./build/lib/index.d.ts",
|
|
38
|
+
"import": "./build/lib/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
34
42
|
"scripts": {
|
|
35
43
|
"build": "tsc -b",
|
|
36
44
|
"clean": "npm run build -- --clean",
|
|
@@ -41,21 +49,16 @@
|
|
|
41
49
|
"e2e-test:commands:keyboard": "node --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/commands/keyboard/*-e2e-specs.js\"",
|
|
42
50
|
"e2e-test:driver": "node --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/driver/*-e2e-specs.js\"",
|
|
43
51
|
"e2e-test": "node --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/**/*-e2e-specs.js\"",
|
|
44
|
-
"lint": "
|
|
52
|
+
"lint": "oxlint -c oxlint.config.mjs .",
|
|
45
53
|
"lint:commit": "commitlint",
|
|
46
|
-
"lint:fix": "
|
|
54
|
+
"lint:fix": "oxlint -c oxlint.config.mjs --fix .",
|
|
47
55
|
"prepare": "npm run rebuild",
|
|
48
56
|
"rebuild": "npm run clean; npm run build",
|
|
49
|
-
"format": "
|
|
50
|
-
"format:check": "
|
|
57
|
+
"format": "oxfmt -c oxfmt.config.mjs .",
|
|
58
|
+
"format:check": "oxfmt -c oxfmt.config.mjs --check .",
|
|
51
59
|
"reset": "node ./scripts/reset.mjs",
|
|
52
60
|
"test": "node --test --test-timeout=60000 \"build/test/unit/**/*-specs.js\""
|
|
53
61
|
},
|
|
54
|
-
"prettier": {
|
|
55
|
-
"bracketSpacing": false,
|
|
56
|
-
"printWidth": 100,
|
|
57
|
-
"singleQuote": true
|
|
58
|
-
},
|
|
59
62
|
"dependencies": {
|
|
60
63
|
"@appium/css-locator-to-native": "^1.0.1",
|
|
61
64
|
"appium-adb": "^16.0.0",
|
|
@@ -69,14 +72,11 @@
|
|
|
69
72
|
},
|
|
70
73
|
"devDependencies": {
|
|
71
74
|
"@appium/docutils": "^2.0.0-rc.1",
|
|
72
|
-
"@appium/
|
|
75
|
+
"@appium/oxc-config": "^1.1.0",
|
|
76
|
+
"@appium/semantic-release-config": "^1.1.0",
|
|
73
77
|
"@appium/support": "^7.0.0-rc.1",
|
|
74
|
-
"@appium/tsconfig": "^1.
|
|
78
|
+
"@appium/tsconfig": "^1.2.0",
|
|
75
79
|
"@appium/types": "^1.5.0",
|
|
76
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
77
|
-
"@semantic-release/git": "^10.0.1",
|
|
78
|
-
"@types/chai": "^5.2.3",
|
|
79
|
-
"@types/chai-as-promised": "^8.0.2",
|
|
80
80
|
"@types/node": "^26.0.0",
|
|
81
81
|
"@types/portscanner": "^2.1.1",
|
|
82
82
|
"@types/semver": "^7.5.0",
|
|
@@ -84,14 +84,8 @@
|
|
|
84
84
|
"@types/unzipper": "^0.10.11",
|
|
85
85
|
"@types/ws": "^8.5.4",
|
|
86
86
|
"@xmldom/xmldom": "^0.x",
|
|
87
|
-
"chai": "^6.0.0",
|
|
88
|
-
"chai-as-promised": "^8.0.0",
|
|
89
|
-
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
90
|
-
"prettier": "^3.0.3",
|
|
91
|
-
"semantic-release": "^25.0.2",
|
|
92
87
|
"sharp": "^0.x",
|
|
93
88
|
"sinon": "^22.0.0",
|
|
94
|
-
"typescript": "^6.0.2",
|
|
95
89
|
"unzipper": "^0.x",
|
|
96
90
|
"webdriverio": "^9.0.9",
|
|
97
91
|
"xpath": "^0.x"
|
|
@@ -122,13 +116,5 @@
|
|
|
122
116
|
"./build/lib/doctor/optional-checks.js"
|
|
123
117
|
]
|
|
124
118
|
}
|
|
125
|
-
},
|
|
126
|
-
"type": "module",
|
|
127
|
-
"exports": {
|
|
128
|
-
".": {
|
|
129
|
-
"types": "./build/lib/index.d.ts",
|
|
130
|
-
"import": "./build/lib/index.js"
|
|
131
|
-
},
|
|
132
|
-
"./package.json": "./package.json"
|
|
133
119
|
}
|
|
134
120
|
}
|
package/scripts/reset.mjs
CHANGED
|
@@ -3,17 +3,11 @@ import {logger} from 'appium/support.js';
|
|
|
3
3
|
|
|
4
4
|
const log = logger.getLogger('UIA2Reset');
|
|
5
5
|
|
|
6
|
-
const SERVER_PKGS = [
|
|
7
|
-
'io.appium.uiautomator2.server',
|
|
8
|
-
'io.appium.uiautomator2.server.test',
|
|
9
|
-
'io.appium.settings',
|
|
10
|
-
];
|
|
6
|
+
const SERVER_PKGS = ['io.appium.uiautomator2.server', 'io.appium.uiautomator2.server.test', 'io.appium.settings'];
|
|
11
7
|
|
|
12
8
|
async function runReset() {
|
|
13
9
|
const adb = await ADB.createADB();
|
|
14
|
-
const udids = (await adb.getConnectedDevices())
|
|
15
|
-
.filter(({state}) => state === 'device')
|
|
16
|
-
.map(({udid}) => udid);
|
|
10
|
+
const udids = (await adb.getConnectedDevices()).filter(({state}) => state === 'device').map(({udid}) => udid);
|
|
17
11
|
if (0 === udids.length) {
|
|
18
12
|
return;
|
|
19
13
|
}
|