appium-uiautomator2-driver 2.31.4 → 2.32.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 (43) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +13 -0
  3. package/build/lib/commands/actions.js +10 -10
  4. package/build/lib/commands/actions.js.map +1 -1
  5. package/build/lib/commands/alert.js +3 -3
  6. package/build/lib/commands/alert.js.map +1 -1
  7. package/build/lib/commands/app-strings.d.ts.map +1 -1
  8. package/build/lib/commands/app-strings.js +3 -4
  9. package/build/lib/commands/app-strings.js.map +1 -1
  10. package/build/lib/commands/element.js +19 -19
  11. package/build/lib/commands/element.js.map +1 -1
  12. package/build/lib/commands/general.d.ts.map +1 -1
  13. package/build/lib/commands/general.js +17 -19
  14. package/build/lib/commands/general.js.map +1 -1
  15. package/build/lib/commands/gestures.js +11 -11
  16. package/build/lib/commands/gestures.js.map +1 -1
  17. package/build/lib/commands/touch.js +3 -3
  18. package/build/lib/commands/touch.js.map +1 -1
  19. package/build/lib/driver.d.ts +9 -4
  20. package/build/lib/driver.d.ts.map +1 -1
  21. package/build/lib/driver.js +36 -66
  22. package/build/lib/driver.js.map +1 -1
  23. package/build/lib/execute-method-map.d.ts +7 -0
  24. package/build/lib/execute-method-map.d.ts.map +1 -1
  25. package/build/lib/execute-method-map.js +7 -0
  26. package/build/lib/execute-method-map.js.map +1 -1
  27. package/build/lib/types.d.ts +7 -9
  28. package/build/lib/types.d.ts.map +1 -1
  29. package/build/lib/uiautomator2.d.ts +3 -3
  30. package/build/lib/uiautomator2.d.ts.map +1 -1
  31. package/build/tsconfig.tsbuildinfo +1 -1
  32. package/lib/commands/actions.js +10 -10
  33. package/lib/commands/alert.js +3 -3
  34. package/lib/commands/app-strings.js +3 -4
  35. package/lib/commands/element.js +19 -19
  36. package/lib/commands/general.js +17 -18
  37. package/lib/commands/gestures.js +11 -11
  38. package/lib/commands/touch.js +3 -3
  39. package/lib/driver.ts +44 -76
  40. package/lib/execute-method-map.ts +8 -0
  41. package/lib/types.ts +7 -11
  42. package/npm-shrinkwrap.json +173 -157
  43. package/package.json +8 -8
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "appium-uiautomator2-driver",
3
- "version": "2.31.4",
3
+ "version": "2.32.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-uiautomator2-driver",
9
- "version": "2.31.4",
9
+ "version": "2.32.1",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
- "appium-adb": "^9.14.12",
13
- "appium-android-driver": "^7.0.1",
12
+ "appium-adb": "^10.0.0",
13
+ "appium-android-driver": "^7.1.3",
14
14
  "appium-chromedriver": "^5.6.5",
15
15
  "appium-uiautomator2-server": "^5.12.2",
16
16
  "asyncbox": "^2.3.1",
@@ -21,7 +21,7 @@
21
21
  "portscanner": "^2.2.0",
22
22
  "source-map-support": "^0.x",
23
23
  "teen_process": "^2.0.0",
24
- "type-fest": "^3.12.0"
24
+ "type-fest": "^4.4.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@appium/docutils": "^0.4.4",
@@ -64,16 +64,16 @@
64
64
  "eslint-plugin-promise": "^6.1.1",
65
65
  "fancy-log": "^2.0.0",
66
66
  "husky": "^8.0.3",
67
- "lint-staged": "^14.0.0",
67
+ "lint-staged": "^15.0.1",
68
68
  "mocha": "^10.0.0",
69
- "prettier": "^2.8.8",
69
+ "prettier": "^3.0.3",
70
70
  "rimraf": "^5.0.0",
71
- "semantic-release": "^21.1.0",
71
+ "semantic-release": "^22.0.5",
72
72
  "sharp": "^0.x",
73
73
  "sinon": "^16.1.0",
74
74
  "sinon-chai": "^3.7.0",
75
75
  "ts-node": "^10.9.1",
76
- "typescript": "~5.0",
76
+ "typescript": "~5.2",
77
77
  "unzipper": "^0.x",
78
78
  "webdriverio": "^8.0.5",
79
79
  "xpath": "^0.x"
@@ -138,6 +138,16 @@
138
138
  "proxy-from-env": "^1.1.0"
139
139
  }
140
140
  },
141
+ "node_modules/@appium/base-driver/node_modules/type-fest": {
142
+ "version": "3.13.1",
143
+ "license": "(MIT OR CC0-1.0)",
144
+ "engines": {
145
+ "node": ">=14.16"
146
+ },
147
+ "funding": {
148
+ "url": "https://github.com/sponsors/sindresorhus"
149
+ }
150
+ },
141
151
  "node_modules/@appium/base-plugin": {
142
152
  "version": "2.2.20",
143
153
  "extraneous": true,
@@ -192,6 +202,61 @@
192
202
  "npm": ">=8"
193
203
  }
194
204
  },
205
+ "node_modules/@appium/docutils/node_modules/@appium/typedoc-plugin-appium": {
206
+ "version": "0.6.6",
207
+ "dev": true,
208
+ "license": "Apache-2.0",
209
+ "dependencies": {
210
+ "handlebars": "4.7.8",
211
+ "lodash": "4.17.21",
212
+ "pluralize": "8.0.0",
213
+ "type-fest": "3.13.1"
214
+ },
215
+ "engines": {
216
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0",
217
+ "npm": ">=8"
218
+ },
219
+ "peerDependencies": {
220
+ "appium": "^2.0.0-beta.48",
221
+ "typedoc": "~0.23.14",
222
+ "typedoc-plugin-markdown": "3.14.0",
223
+ "typedoc-plugin-resolve-crossmodule-references": "~0.3.3",
224
+ "typescript": "^4.7.0 || ^5.0.0"
225
+ }
226
+ },
227
+ "node_modules/@appium/docutils/node_modules/brace-expansion": {
228
+ "version": "2.0.1",
229
+ "dev": true,
230
+ "license": "MIT",
231
+ "dependencies": {
232
+ "balanced-match": "^1.0.0"
233
+ }
234
+ },
235
+ "node_modules/@appium/docutils/node_modules/marked": {
236
+ "version": "4.3.0",
237
+ "dev": true,
238
+ "license": "MIT",
239
+ "bin": {
240
+ "marked": "bin/marked.js"
241
+ },
242
+ "engines": {
243
+ "node": ">= 12"
244
+ }
245
+ },
246
+ "node_modules/@appium/docutils/node_modules/minimatch": {
247
+ "version": "7.4.6",
248
+ "dev": true,
249
+ "license": "ISC",
250
+ "dependencies": {
251
+ "brace-expansion": "^2.0.1"
252
+ },
253
+ "engines": {
254
+ "node": ">=10"
255
+ },
256
+ "funding": {
257
+ "url": "https://github.com/sponsors/isaacs"
258
+ }
259
+ },
195
260
  "node_modules/@appium/docutils/node_modules/teen_process": {
196
261
  "version": "2.0.4",
197
262
  "dev": true,
@@ -207,6 +272,74 @@
207
272
  "npm": ">=8"
208
273
  }
209
274
  },
275
+ "node_modules/@appium/docutils/node_modules/type-fest": {
276
+ "version": "3.13.1",
277
+ "dev": true,
278
+ "license": "(MIT OR CC0-1.0)",
279
+ "engines": {
280
+ "node": ">=14.16"
281
+ },
282
+ "funding": {
283
+ "url": "https://github.com/sponsors/sindresorhus"
284
+ }
285
+ },
286
+ "node_modules/@appium/docutils/node_modules/typedoc": {
287
+ "version": "0.23.28",
288
+ "dev": true,
289
+ "license": "Apache-2.0",
290
+ "dependencies": {
291
+ "lunr": "^2.3.9",
292
+ "marked": "^4.2.12",
293
+ "minimatch": "^7.1.3",
294
+ "shiki": "^0.14.1"
295
+ },
296
+ "bin": {
297
+ "typedoc": "bin/typedoc"
298
+ },
299
+ "engines": {
300
+ "node": ">= 14.14"
301
+ },
302
+ "peerDependencies": {
303
+ "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x"
304
+ }
305
+ },
306
+ "node_modules/@appium/docutils/node_modules/typedoc-plugin-markdown": {
307
+ "version": "3.14.0",
308
+ "dev": true,
309
+ "license": "MIT",
310
+ "dependencies": {
311
+ "handlebars": "^4.7.7"
312
+ },
313
+ "peerDependencies": {
314
+ "typedoc": ">=0.23.0"
315
+ }
316
+ },
317
+ "node_modules/@appium/docutils/node_modules/typedoc-plugin-resolve-crossmodule-references": {
318
+ "version": "0.3.3",
319
+ "dev": true,
320
+ "license": "Apache-2.0",
321
+ "workspaces": [
322
+ "test/packages/*"
323
+ ],
324
+ "engines": {
325
+ "node": ">=14"
326
+ },
327
+ "peerDependencies": {
328
+ "typedoc": ">=0.22 <=0.23"
329
+ }
330
+ },
331
+ "node_modules/@appium/docutils/node_modules/typescript": {
332
+ "version": "5.0.4",
333
+ "dev": true,
334
+ "license": "Apache-2.0",
335
+ "bin": {
336
+ "tsc": "bin/tsc",
337
+ "tsserver": "bin/tsserver"
338
+ },
339
+ "engines": {
340
+ "node": ">=12.20"
341
+ }
342
+ },
210
343
  "node_modules/@appium/schema": {
211
344
  "version": "0.3.1",
212
345
  "license": "Apache-2.0",
@@ -342,37 +475,25 @@
342
475
  "npm": ">=8"
343
476
  }
344
477
  },
345
- "node_modules/@appium/tsconfig": {
346
- "version": "0.3.1",
347
- "license": "Apache-2.0",
348
- "dependencies": {
349
- "@tsconfig/node14": "1.0.3"
350
- },
478
+ "node_modules/@appium/support/node_modules/type-fest": {
479
+ "version": "3.13.1",
480
+ "license": "(MIT OR CC0-1.0)",
351
481
  "engines": {
352
- "node": "^14.17.0 || ^16.13.0 || >=18.0.0",
353
- "npm": ">=8"
482
+ "node": ">=14.16"
483
+ },
484
+ "funding": {
485
+ "url": "https://github.com/sponsors/sindresorhus"
354
486
  }
355
487
  },
356
- "node_modules/@appium/typedoc-plugin-appium": {
357
- "version": "0.6.6",
358
- "dev": true,
488
+ "node_modules/@appium/tsconfig": {
489
+ "version": "0.3.1",
359
490
  "license": "Apache-2.0",
360
491
  "dependencies": {
361
- "handlebars": "4.7.8",
362
- "lodash": "4.17.21",
363
- "pluralize": "8.0.0",
364
- "type-fest": "3.13.1"
492
+ "@tsconfig/node14": "1.0.3"
365
493
  },
366
494
  "engines": {
367
495
  "node": "^14.17.0 || ^16.13.0 || >=18.0.0",
368
496
  "npm": ">=8"
369
- },
370
- "peerDependencies": {
371
- "appium": "^2.0.0-beta.48",
372
- "typedoc": "~0.23.14",
373
- "typedoc-plugin-markdown": "3.14.0",
374
- "typedoc-plugin-resolve-crossmodule-references": "~0.3.3",
375
- "typescript": "^4.7.0 || ^5.0.0"
376
497
  }
377
498
  },
378
499
  "node_modules/@appium/types": {
@@ -398,6 +519,16 @@
398
519
  "@types/node": "*"
399
520
  }
400
521
  },
522
+ "node_modules/@appium/types/node_modules/type-fest": {
523
+ "version": "3.13.1",
524
+ "license": "(MIT OR CC0-1.0)",
525
+ "engines": {
526
+ "node": ">=14.16"
527
+ },
528
+ "funding": {
529
+ "url": "https://github.com/sponsors/sindresorhus"
530
+ }
531
+ },
401
532
  "node_modules/@babel/code-frame": {
402
533
  "version": "7.22.13",
403
534
  "license": "MIT",
@@ -1016,7 +1147,7 @@
1016
1147
  }
1017
1148
  },
1018
1149
  "node_modules/appium-adb": {
1019
- "version": "9.14.12",
1150
+ "version": "10.0.0",
1020
1151
  "license": "Apache-2.0",
1021
1152
  "dependencies": {
1022
1153
  "@appium/support": "^4.0.0",
@@ -1044,10 +1175,10 @@
1044
1175
  }
1045
1176
  },
1046
1177
  "node_modules/appium-android-driver": {
1047
- "version": "7.0.3",
1178
+ "version": "7.1.3",
1048
1179
  "license": "Apache-2.0",
1049
1180
  "dependencies": {
1050
- "appium-adb": "^9.12.0",
1181
+ "appium-adb": "^10.0.0",
1051
1182
  "appium-chromedriver": "^5.5.1",
1052
1183
  "asyncbox": "^2.8.0",
1053
1184
  "axios": "^1.x",
@@ -1057,8 +1188,7 @@
1057
1188
  "lru-cache": "^10.0.1",
1058
1189
  "moment": "^2.24.0",
1059
1190
  "moment-timezone": "^0.5.26",
1060
- "portfinder": "^1.0.6",
1061
- "portscanner": "2.2.0",
1191
+ "portscanner": "^2.2.0",
1062
1192
  "semver": "^7.0.0",
1063
1193
  "source-map-support": "^0.x",
1064
1194
  "teen_process": "^2.0.0",
@@ -1080,25 +1210,15 @@
1080
1210
  "node": "14 || >=16.14"
1081
1211
  }
1082
1212
  },
1083
- "node_modules/appium-android-driver/node_modules/type-fest": {
1084
- "version": "4.4.0",
1085
- "license": "(MIT OR CC0-1.0)",
1086
- "engines": {
1087
- "node": ">=16"
1088
- },
1089
- "funding": {
1090
- "url": "https://github.com/sponsors/sindresorhus"
1091
- }
1092
- },
1093
1213
  "node_modules/appium-chromedriver": {
1094
- "version": "5.6.13",
1214
+ "version": "5.6.14",
1095
1215
  "hasInstallScript": true,
1096
1216
  "license": "Apache-2.0",
1097
1217
  "dependencies": {
1098
1218
  "@appium/base-driver": "^9.1.0",
1099
1219
  "@appium/support": "^4.0.0",
1100
1220
  "@xmldom/xmldom": "^0.x",
1101
- "appium-adb": "^9.14.1",
1221
+ "appium-adb": "^10.0.0",
1102
1222
  "asyncbox": "^2.0.2",
1103
1223
  "axios": "^1.x",
1104
1224
  "bluebird": "^3.5.1",
@@ -3039,7 +3159,7 @@
3039
3159
  "license": "MIT"
3040
3160
  },
3041
3161
  "node_modules/node-abi": {
3042
- "version": "3.50.0",
3162
+ "version": "3.51.0",
3043
3163
  "license": "MIT",
3044
3164
  "optional": true,
3045
3165
  "dependencies": {
@@ -3333,32 +3453,6 @@
3333
3453
  "node": ">=4"
3334
3454
  }
3335
3455
  },
3336
- "node_modules/portfinder": {
3337
- "version": "1.0.32",
3338
- "license": "MIT",
3339
- "dependencies": {
3340
- "async": "^2.6.4",
3341
- "debug": "^3.2.7",
3342
- "mkdirp": "^0.5.6"
3343
- },
3344
- "engines": {
3345
- "node": ">= 0.12.0"
3346
- }
3347
- },
3348
- "node_modules/portfinder/node_modules/async": {
3349
- "version": "2.6.4",
3350
- "license": "MIT",
3351
- "dependencies": {
3352
- "lodash": "^4.17.14"
3353
- }
3354
- },
3355
- "node_modules/portfinder/node_modules/debug": {
3356
- "version": "3.2.7",
3357
- "license": "MIT",
3358
- "dependencies": {
3359
- "ms": "^2.1.1"
3360
- }
3361
- },
3362
3456
  "node_modules/portscanner": {
3363
3457
  "version": "2.2.0",
3364
3458
  "license": "MIT",
@@ -4185,10 +4279,10 @@
4185
4279
  }
4186
4280
  },
4187
4281
  "node_modules/type-fest": {
4188
- "version": "3.13.1",
4282
+ "version": "4.4.0",
4189
4283
  "license": "(MIT OR CC0-1.0)",
4190
4284
  "engines": {
4191
- "node": ">=14.16"
4285
+ "node": ">=16"
4192
4286
  },
4193
4287
  "funding": {
4194
4288
  "url": "https://github.com/sponsors/sindresorhus"
@@ -4205,86 +4299,8 @@
4205
4299
  "node": ">= 0.6"
4206
4300
  }
4207
4301
  },
4208
- "node_modules/typedoc": {
4209
- "version": "0.23.28",
4210
- "dev": true,
4211
- "license": "Apache-2.0",
4212
- "dependencies": {
4213
- "lunr": "^2.3.9",
4214
- "marked": "^4.2.12",
4215
- "minimatch": "^7.1.3",
4216
- "shiki": "^0.14.1"
4217
- },
4218
- "bin": {
4219
- "typedoc": "bin/typedoc"
4220
- },
4221
- "engines": {
4222
- "node": ">= 14.14"
4223
- },
4224
- "peerDependencies": {
4225
- "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x"
4226
- }
4227
- },
4228
- "node_modules/typedoc-plugin-markdown": {
4229
- "version": "3.14.0",
4230
- "dev": true,
4231
- "license": "MIT",
4232
- "dependencies": {
4233
- "handlebars": "^4.7.7"
4234
- },
4235
- "peerDependencies": {
4236
- "typedoc": ">=0.23.0"
4237
- }
4238
- },
4239
- "node_modules/typedoc-plugin-resolve-crossmodule-references": {
4240
- "version": "0.3.3",
4241
- "dev": true,
4242
- "license": "Apache-2.0",
4243
- "workspaces": [
4244
- "test/packages/*"
4245
- ],
4246
- "engines": {
4247
- "node": ">=14"
4248
- },
4249
- "peerDependencies": {
4250
- "typedoc": ">=0.22 <=0.23"
4251
- }
4252
- },
4253
- "node_modules/typedoc/node_modules/brace-expansion": {
4254
- "version": "2.0.1",
4255
- "dev": true,
4256
- "license": "MIT",
4257
- "dependencies": {
4258
- "balanced-match": "^1.0.0"
4259
- }
4260
- },
4261
- "node_modules/typedoc/node_modules/marked": {
4262
- "version": "4.3.0",
4263
- "dev": true,
4264
- "license": "MIT",
4265
- "bin": {
4266
- "marked": "bin/marked.js"
4267
- },
4268
- "engines": {
4269
- "node": ">= 12"
4270
- }
4271
- },
4272
- "node_modules/typedoc/node_modules/minimatch": {
4273
- "version": "7.4.6",
4274
- "dev": true,
4275
- "license": "ISC",
4276
- "dependencies": {
4277
- "brace-expansion": "^2.0.1"
4278
- },
4279
- "engines": {
4280
- "node": ">=10"
4281
- },
4282
- "funding": {
4283
- "url": "https://github.com/sponsors/isaacs"
4284
- }
4285
- },
4286
4302
  "node_modules/typescript": {
4287
- "version": "5.0.4",
4303
+ "version": "5.2.2",
4288
4304
  "dev": true,
4289
4305
  "license": "Apache-2.0",
4290
4306
  "bin": {
@@ -4292,7 +4308,7 @@
4292
4308
  "tsserver": "bin/tsserver"
4293
4309
  },
4294
4310
  "engines": {
4295
- "node": ">=12.20"
4311
+ "node": ">=14.17"
4296
4312
  }
4297
4313
  },
4298
4314
  "node_modules/uglify-js": {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "2.31.4",
10
+ "version": "2.32.1",
11
11
  "bugs": {
12
12
  "url": "https://github.com/appium/appium-uiautomator2-driver/issues"
13
13
  },
@@ -62,8 +62,8 @@
62
62
  "singleQuote": true
63
63
  },
64
64
  "dependencies": {
65
- "appium-adb": "^9.14.12",
66
- "appium-android-driver": "^7.0.1",
65
+ "appium-adb": "^10.0.0",
66
+ "appium-android-driver": "^7.1.3",
67
67
  "appium-chromedriver": "^5.6.5",
68
68
  "appium-uiautomator2-server": "^5.12.2",
69
69
  "asyncbox": "^2.3.1",
@@ -74,7 +74,7 @@
74
74
  "portscanner": "^2.2.0",
75
75
  "source-map-support": "^0.x",
76
76
  "teen_process": "^2.0.0",
77
- "type-fest": "^3.12.0"
77
+ "type-fest": "^4.4.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@appium/docutils": "^0.4.4",
@@ -117,16 +117,16 @@
117
117
  "eslint-plugin-promise": "^6.1.1",
118
118
  "fancy-log": "^2.0.0",
119
119
  "husky": "^8.0.3",
120
- "lint-staged": "^14.0.0",
120
+ "lint-staged": "^15.0.1",
121
121
  "mocha": "^10.0.0",
122
- "prettier": "^2.8.8",
122
+ "prettier": "^3.0.3",
123
123
  "rimraf": "^5.0.0",
124
- "semantic-release": "^21.1.0",
124
+ "semantic-release": "^22.0.5",
125
125
  "sharp": "^0.x",
126
126
  "sinon": "^16.1.0",
127
127
  "sinon-chai": "^3.7.0",
128
128
  "ts-node": "^10.9.1",
129
- "typescript": "~5.0",
129
+ "typescript": "~5.2",
130
130
  "unzipper": "^0.x",
131
131
  "webdriverio": "^8.0.5",
132
132
  "xpath": "^0.x"