appium-uiautomator2-driver 8.7.0 → 8.7.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.
Files changed (787) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +36 -2
  3. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts +12 -0
  4. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts.map +1 -0
  5. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js +33 -0
  6. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js.map +1 -0
  7. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.d.ts.map +1 -1
  8. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +49 -9
  9. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js.map +1 -1
  10. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js +1 -1
  11. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js.map +1 -1
  12. package/node_modules/@appium/base-driver/build/lib/basedriver/driver.d.ts.map +1 -1
  13. package/node_modules/@appium/base-driver/build/lib/basedriver/driver.js +2 -0
  14. package/node_modules/@appium/base-driver/build/lib/basedriver/driver.js.map +1 -1
  15. package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.d.ts.map +1 -1
  16. package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js +40 -3
  17. package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js.map +1 -1
  18. package/node_modules/@appium/base-driver/build/lib/express/middleware.d.ts +17 -6
  19. package/node_modules/@appium/base-driver/build/lib/express/middleware.d.ts.map +1 -1
  20. package/node_modules/@appium/base-driver/build/lib/express/middleware.js +11 -7
  21. package/node_modules/@appium/base-driver/build/lib/express/middleware.js.map +1 -1
  22. package/node_modules/@appium/base-driver/build/lib/express/server.d.ts +1 -0
  23. package/node_modules/@appium/base-driver/build/lib/express/server.d.ts.map +1 -1
  24. package/node_modules/@appium/base-driver/build/lib/express/server.js +4 -3
  25. package/node_modules/@appium/base-driver/build/lib/express/server.js.map +1 -1
  26. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts +1 -2
  27. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts.map +1 -1
  28. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js +8 -3
  29. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js.map +1 -1
  30. package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi-subscriptions.ts +36 -0
  31. package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi.ts +56 -9
  32. package/node_modules/@appium/base-driver/lib/basedriver/commands/timeout.ts +1 -1
  33. package/node_modules/@appium/base-driver/lib/basedriver/driver.ts +2 -0
  34. package/node_modules/@appium/base-driver/lib/basedriver/helpers.ts +41 -3
  35. package/node_modules/@appium/base-driver/lib/express/middleware.ts +32 -12
  36. package/node_modules/@appium/base-driver/lib/express/server.ts +7 -2
  37. package/node_modules/@appium/base-driver/lib/protocol/bidi-commands.ts +9 -3
  38. package/node_modules/@appium/base-driver/package.json +10 -10
  39. package/node_modules/@appium/base-driver/tsconfig.json +1 -1
  40. package/node_modules/@appium/logger/CHANGELOG.md +8 -0
  41. package/node_modules/@appium/logger/package.json +3 -3
  42. package/node_modules/@appium/support/build/lib/fs.d.ts.map +1 -1
  43. package/node_modules/@appium/support/build/lib/fs.js +7 -0
  44. package/node_modules/@appium/support/build/lib/fs.js.map +1 -1
  45. package/node_modules/@appium/support/build/lib/index.d.ts.map +1 -1
  46. package/node_modules/@appium/support/build/lib/net.d.ts.map +1 -1
  47. package/node_modules/@appium/support/build/lib/net.js +6 -2
  48. package/node_modules/@appium/support/build/lib/net.js.map +1 -1
  49. package/node_modules/@appium/support/build/lib/npm.d.ts.map +1 -1
  50. package/node_modules/@appium/support/build/lib/npm.js +2 -1
  51. package/node_modules/@appium/support/build/lib/npm.js.map +1 -1
  52. package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
  53. package/node_modules/@appium/support/build/lib/util.js +23 -5
  54. package/node_modules/@appium/support/build/lib/util.js.map +1 -1
  55. package/node_modules/@appium/support/build/lib/zip.d.ts +2 -1
  56. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  57. package/node_modules/@appium/support/build/lib/zip.js +195 -71
  58. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  59. package/node_modules/@appium/support/lib/fs.ts +8 -1
  60. package/node_modules/@appium/support/lib/net.ts +7 -2
  61. package/node_modules/@appium/support/lib/npm.ts +2 -1
  62. package/node_modules/@appium/support/lib/util.ts +22 -4
  63. package/node_modules/@appium/support/lib/zip.ts +234 -80
  64. package/node_modules/@appium/support/package.json +11 -11
  65. package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts +6 -4
  66. package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts.map +1 -1
  67. package/node_modules/@appium/types/lib/commands/basedriver.ts +4 -4
  68. package/node_modules/@appium/types/package.json +4 -4
  69. package/node_modules/appium-adb/CHANGELOG.md +37 -0
  70. package/node_modules/appium-adb/README.md +1 -1
  71. package/node_modules/appium-adb/build/lib/tools/aab-utils.js +34 -34
  72. package/node_modules/appium-adb/build/lib/tools/aab-utils.js.map +1 -1
  73. package/node_modules/appium-adb/build/lib/tools/android-manifest.js +1 -1
  74. package/node_modules/appium-adb/build/lib/tools/android-manifest.js.map +1 -1
  75. package/node_modules/appium-adb/build/lib/tools/apk-signing.d.ts.map +1 -1
  76. package/node_modules/appium-adb/build/lib/tools/apk-signing.js +21 -9
  77. package/node_modules/appium-adb/build/lib/tools/apk-signing.js.map +1 -1
  78. package/node_modules/appium-adb/build/lib/tools/apks-utils.d.ts.map +1 -1
  79. package/node_modules/appium-adb/build/lib/tools/apks-utils.js +6 -5
  80. package/node_modules/appium-adb/build/lib/tools/apks-utils.js.map +1 -1
  81. package/node_modules/appium-adb/build/lib/tools/app-commands.d.ts.map +1 -1
  82. package/node_modules/appium-adb/build/lib/tools/app-commands.js +63 -62
  83. package/node_modules/appium-adb/build/lib/tools/app-commands.js.map +1 -1
  84. package/node_modules/appium-adb/build/lib/tools/device-settings.js +1 -1
  85. package/node_modules/appium-adb/build/lib/tools/device-settings.js.map +1 -1
  86. package/node_modules/appium-adb/build/lib/tools/lockmgmt.d.ts.map +1 -1
  87. package/node_modules/appium-adb/build/lib/tools/lockmgmt.js +3 -9
  88. package/node_modules/appium-adb/build/lib/tools/lockmgmt.js.map +1 -1
  89. package/node_modules/appium-adb/build/lib/tools/system-calls.d.ts.map +1 -1
  90. package/node_modules/appium-adb/build/lib/tools/system-calls.js +7 -6
  91. package/node_modules/appium-adb/build/lib/tools/system-calls.js.map +1 -1
  92. package/node_modules/appium-adb/build/lib/tools/types.d.ts +4 -0
  93. package/node_modules/appium-adb/build/lib/tools/types.d.ts.map +1 -1
  94. package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts +1 -0
  95. package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts.map +1 -1
  96. package/node_modules/appium-adb/build/lib/utils/helpers/index.js +1 -0
  97. package/node_modules/appium-adb/build/lib/utils/helpers/index.js.map +1 -1
  98. package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts +19 -0
  99. package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts.map +1 -0
  100. package/node_modules/appium-adb/build/lib/utils/helpers/redact.js +57 -0
  101. package/node_modules/appium-adb/build/lib/utils/helpers/redact.js.map +1 -0
  102. package/node_modules/appium-adb/build/lib/utils/index.d.ts +2 -0
  103. package/node_modules/appium-adb/build/lib/utils/index.d.ts.map +1 -1
  104. package/node_modules/appium-adb/build/lib/utils/index.js +2 -0
  105. package/node_modules/appium-adb/build/lib/utils/index.js.map +1 -1
  106. package/node_modules/appium-adb/lib/tools/aab-utils.ts +35 -35
  107. package/node_modules/appium-adb/lib/tools/android-manifest.ts +1 -1
  108. package/node_modules/appium-adb/lib/tools/apk-signing.ts +26 -9
  109. package/node_modules/appium-adb/lib/tools/apks-utils.ts +13 -5
  110. package/node_modules/appium-adb/lib/tools/app-commands.ts +59 -68
  111. package/node_modules/appium-adb/lib/tools/device-settings.ts +1 -1
  112. package/node_modules/appium-adb/lib/tools/lockmgmt.ts +3 -8
  113. package/node_modules/appium-adb/lib/tools/system-calls.ts +15 -6
  114. package/node_modules/appium-adb/lib/tools/types.ts +4 -0
  115. package/node_modules/appium-adb/lib/utils/helpers/index.ts +1 -0
  116. package/node_modules/appium-adb/lib/utils/helpers/redact.ts +59 -0
  117. package/node_modules/appium-adb/lib/utils/index.ts +2 -0
  118. package/node_modules/appium-adb/package.json +10 -13
  119. package/node_modules/appium-android-driver/CHANGELOG.md +31 -0
  120. package/node_modules/appium-android-driver/build/lib/commands/context/exports.d.ts.map +1 -1
  121. package/node_modules/appium-android-driver/build/lib/commands/context/exports.js +10 -6
  122. package/node_modules/appium-android-driver/build/lib/commands/context/exports.js.map +1 -1
  123. package/node_modules/appium-android-driver/build/lib/commands/file-actions.d.ts.map +1 -1
  124. package/node_modules/appium-android-driver/build/lib/commands/file-actions.js +55 -35
  125. package/node_modules/appium-android-driver/build/lib/commands/file-actions.js.map +1 -1
  126. package/node_modules/appium-android-driver/build/lib/commands/log.js +2 -2
  127. package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
  128. package/node_modules/appium-android-driver/lib/commands/context/exports.ts +10 -6
  129. package/node_modules/appium-android-driver/lib/commands/file-actions.ts +58 -39
  130. package/node_modules/appium-android-driver/lib/commands/log.ts +2 -2
  131. package/node_modules/appium-android-driver/package.json +1 -1
  132. package/node_modules/appium-chromedriver/CHANGELOG.md +80 -0
  133. package/node_modules/appium-chromedriver/README.md +2 -4
  134. package/node_modules/appium-chromedriver/build/lib/commands/version.d.ts.map +1 -1
  135. package/node_modules/appium-chromedriver/build/lib/commands/version.js +9 -0
  136. package/node_modules/appium-chromedriver/build/lib/commands/version.js.map +1 -1
  137. package/node_modules/appium-chromedriver/config/mapping.json +9 -1
  138. package/node_modules/appium-chromedriver/lib/commands/version.ts +10 -0
  139. package/node_modules/appium-chromedriver/package.json +10 -13
  140. package/node_modules/appium-uiautomator2-server/CHANGELOG.md +19 -0
  141. package/node_modules/appium-uiautomator2-server/README.md +5 -2
  142. package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk +0 -0
  143. package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk.idsig +0 -0
  144. package/node_modules/appium-uiautomator2-server/apks/{appium-uiautomator2-server-v10.6.6.apk → appium-uiautomator2-server-v10.7.1.apk} +0 -0
  145. package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v10.7.1.apk.idsig +0 -0
  146. package/node_modules/appium-uiautomator2-server/package.json +12 -14
  147. package/node_modules/asyncbox/README.md +43 -0
  148. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +9 -0
  149. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
  150. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +35 -0
  151. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
  152. package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +9 -0
  153. package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
  154. package/node_modules/asyncbox/build/cjs/lib/asyncmap.js +23 -0
  155. package/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
  156. package/node_modules/asyncbox/build/cjs/lib/errors.d.ts +9 -0
  157. package/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
  158. package/node_modules/asyncbox/build/cjs/lib/errors.js +20 -0
  159. package/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
  160. package/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
  161. package/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
  162. package/node_modules/asyncbox/build/cjs/lib/index.js +24 -0
  163. package/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
  164. package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
  165. package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
  166. package/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
  167. package/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
  168. package/node_modules/asyncbox/build/cjs/lib/lock.d.ts +74 -0
  169. package/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
  170. package/node_modules/asyncbox/build/cjs/lib/lock.js +295 -0
  171. package/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
  172. package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +15 -0
  173. package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
  174. package/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
  175. package/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
  176. package/node_modules/asyncbox/build/cjs/lib/retry.d.ts +17 -0
  177. package/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
  178. package/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
  179. package/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
  180. package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +20 -0
  181. package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
  182. package/node_modules/asyncbox/build/cjs/lib/sleep.js +61 -0
  183. package/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
  184. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +18 -0
  185. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
  186. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +51 -0
  187. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
  188. package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +16 -0
  189. package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
  190. package/node_modules/asyncbox/build/cjs/lib/with-timeout.js +45 -0
  191. package/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
  192. package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
  193. package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
  194. package/node_modules/asyncbox/build/esm/lib/asyncfilter.js +32 -0
  195. package/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
  196. package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +9 -0
  197. package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
  198. package/node_modules/asyncbox/build/esm/lib/asyncmap.js +20 -0
  199. package/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
  200. package/node_modules/asyncbox/build/esm/lib/errors.d.ts +9 -0
  201. package/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
  202. package/node_modules/asyncbox/build/esm/lib/errors.js +15 -0
  203. package/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
  204. package/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
  205. package/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
  206. package/node_modules/asyncbox/build/esm/lib/index.js +10 -0
  207. package/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
  208. package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
  209. package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
  210. package/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
  211. package/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
  212. package/node_modules/asyncbox/build/esm/lib/lock.d.ts +74 -0
  213. package/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
  214. package/node_modules/asyncbox/build/esm/lib/lock.js +291 -0
  215. package/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
  216. package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
  217. package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
  218. package/node_modules/asyncbox/build/esm/lib/long-sleep.js +33 -0
  219. package/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
  220. package/node_modules/asyncbox/build/esm/lib/retry.d.ts +17 -0
  221. package/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
  222. package/node_modules/asyncbox/build/esm/lib/retry.js +53 -0
  223. package/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
  224. package/node_modules/asyncbox/build/esm/lib/sleep.d.ts +20 -0
  225. package/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
  226. package/node_modules/asyncbox/build/esm/lib/sleep.js +58 -0
  227. package/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
  228. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
  229. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
  230. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +48 -0
  231. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
  232. package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +16 -0
  233. package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
  234. package/node_modules/asyncbox/build/esm/lib/with-timeout.js +42 -0
  235. package/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
  236. package/node_modules/asyncbox/lib/asyncfilter.ts +38 -0
  237. package/node_modules/asyncbox/lib/asyncmap.ts +29 -0
  238. package/node_modules/asyncbox/lib/errors.ts +15 -0
  239. package/node_modules/asyncbox/lib/index.ts +21 -0
  240. package/node_modules/asyncbox/lib/limit-function.ts +18 -0
  241. package/node_modules/asyncbox/lib/lock.ts +360 -0
  242. package/node_modules/asyncbox/lib/long-sleep.ts +38 -0
  243. package/node_modules/asyncbox/lib/retry.ts +61 -0
  244. package/node_modules/asyncbox/lib/sleep.ts +79 -0
  245. package/node_modules/asyncbox/lib/wait-for-condition.ts +52 -0
  246. package/node_modules/asyncbox/lib/with-timeout.ts +43 -0
  247. package/node_modules/asyncbox/package.json +8 -8
  248. package/node_modules/bare-fs/binding.c +52 -23
  249. package/node_modules/bare-fs/index.d.ts +12 -10
  250. package/node_modules/bare-fs/index.js +43 -10
  251. package/node_modules/bare-fs/package.json +2 -1
  252. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  253. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  254. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  255. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  256. package/node_modules/bare-url/README.md +4 -0
  257. package/node_modules/bare-url/index.d.ts +3 -0
  258. package/node_modules/bare-url/index.js +42 -18
  259. package/node_modules/bare-url/lib/errors.js +4 -0
  260. package/node_modules/bare-url/package.json +1 -1
  261. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  262. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  263. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  264. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  265. package/node_modules/body-parser/README.md +17 -13
  266. package/node_modules/body-parser/lib/read.js +74 -57
  267. package/node_modules/body-parser/lib/types/json.js +11 -11
  268. package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
  269. package/node_modules/body-parser/lib/utils.js +0 -15
  270. package/node_modules/body-parser/package.json +7 -12
  271. package/node_modules/bplist-creator/README.md +26 -6
  272. package/node_modules/bplist-creator/dist/index.cjs +508 -0
  273. package/node_modules/bplist-creator/dist/index.cjs.map +7 -0
  274. package/node_modules/bplist-creator/dist/index.d.cts +12 -0
  275. package/node_modules/bplist-creator/dist/index.d.ts +12 -0
  276. package/node_modules/bplist-creator/dist/index.mjs +472 -0
  277. package/node_modules/bplist-creator/dist/index.mjs.map +7 -0
  278. package/node_modules/bplist-creator/package.json +43 -9
  279. package/node_modules/bplist-parser/README.md +37 -3
  280. package/node_modules/bplist-parser/dist/index.cjs +385 -0
  281. package/node_modules/bplist-parser/dist/index.cjs.map +7 -0
  282. package/node_modules/bplist-parser/dist/index.d.cts +13 -0
  283. package/node_modules/bplist-parser/dist/index.d.ts +13 -0
  284. package/node_modules/bplist-parser/{bplistParser.js → dist/index.mjs} +141 -171
  285. package/node_modules/bplist-parser/dist/index.mjs.map +7 -0
  286. package/node_modules/bplist-parser/package.json +39 -12
  287. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +4 -0
  288. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
  289. package/node_modules/brace-expansion/dist/commonjs/index.js +69 -25
  290. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  291. package/node_modules/brace-expansion/dist/esm/index.d.ts +4 -0
  292. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
  293. package/node_modules/brace-expansion/dist/esm/index.js +68 -24
  294. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  295. package/node_modules/brace-expansion/package.json +2 -1
  296. package/node_modules/follow-redirects/README.md +27 -1
  297. package/node_modules/follow-redirects/index.js +11 -6
  298. package/node_modules/follow-redirects/package.json +1 -1
  299. package/node_modules/io.appium.settings/CHANGELOG.md +72 -0
  300. package/node_modules/io.appium.settings/README.md +126 -0
  301. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  302. package/node_modules/io.appium.settings/build/lib/client.d.ts +4 -0
  303. package/node_modules/io.appium.settings/build/lib/client.d.ts.map +1 -1
  304. package/node_modules/io.appium.settings/build/lib/client.js +4 -0
  305. package/node_modules/io.appium.settings/build/lib/client.js.map +1 -1
  306. package/node_modules/io.appium.settings/build/lib/commands/clipboard.d.ts.map +1 -1
  307. package/node_modules/io.appium.settings/build/lib/commands/clipboard.js +1 -1
  308. package/node_modules/io.appium.settings/build/lib/commands/clipboard.js.map +1 -1
  309. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts +55 -0
  310. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts.map +1 -0
  311. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js +156 -0
  312. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js.map +1 -0
  313. package/node_modules/io.appium.settings/build/lib/commands/media-projection.d.ts.map +1 -1
  314. package/node_modules/io.appium.settings/build/lib/commands/media-projection.js.map +1 -1
  315. package/node_modules/io.appium.settings/build/lib/commands/media.js +1 -1
  316. package/node_modules/io.appium.settings/build/lib/commands/media.js.map +1 -1
  317. package/node_modules/io.appium.settings/build/lib/commands/network.js +1 -1
  318. package/node_modules/io.appium.settings/build/lib/commands/network.js.map +1 -1
  319. package/node_modules/io.appium.settings/build/lib/commands/types.d.ts +65 -0
  320. package/node_modules/io.appium.settings/build/lib/commands/types.d.ts.map +1 -1
  321. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts +56 -0
  322. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts.map +1 -0
  323. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js +166 -0
  324. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js.map +1 -0
  325. package/node_modules/io.appium.settings/build/lib/constants.d.ts +7 -0
  326. package/node_modules/io.appium.settings/build/lib/constants.d.ts.map +1 -1
  327. package/node_modules/io.appium.settings/build/lib/constants.js +7 -0
  328. package/node_modules/io.appium.settings/build/lib/constants.js.map +1 -1
  329. package/node_modules/io.appium.settings/build/lib/index.js +1 -1
  330. package/node_modules/io.appium.settings/build/lib/index.js.map +1 -1
  331. package/node_modules/io.appium.settings/build/lib/{utils.d.ts → utils/apk-path.d.ts} +1 -1
  332. package/node_modules/io.appium.settings/build/lib/utils/apk-path.d.ts.map +1 -0
  333. package/node_modules/io.appium.settings/build/lib/{utils.js → utils/apk-path.js} +1 -1
  334. package/node_modules/io.appium.settings/build/lib/utils/apk-path.js.map +1 -0
  335. package/node_modules/io.appium.settings/build/lib/utils/index.d.ts +5 -0
  336. package/node_modules/io.appium.settings/build/lib/utils/index.d.ts.map +1 -0
  337. package/node_modules/io.appium.settings/build/lib/utils/index.js +4 -0
  338. package/node_modules/io.appium.settings/build/lib/utils/index.js.map +1 -0
  339. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts +47 -0
  340. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts.map +1 -0
  341. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js +67 -0
  342. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js.map +1 -0
  343. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts +142 -0
  344. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts.map +1 -0
  345. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js +416 -0
  346. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js.map +1 -0
  347. package/node_modules/io.appium.settings/lib/client.ts +5 -0
  348. package/node_modules/io.appium.settings/lib/commands/clipboard.ts +1 -0
  349. package/node_modules/io.appium.settings/lib/commands/jpeg-stream.ts +175 -0
  350. package/node_modules/io.appium.settings/lib/commands/media-projection.ts +1 -5
  351. package/node_modules/io.appium.settings/lib/commands/media.ts +1 -1
  352. package/node_modules/io.appium.settings/lib/commands/network.ts +1 -1
  353. package/node_modules/io.appium.settings/lib/commands/types.ts +70 -0
  354. package/node_modules/io.appium.settings/lib/commands/video-stream.ts +185 -0
  355. package/node_modules/io.appium.settings/lib/constants.ts +10 -0
  356. package/node_modules/io.appium.settings/lib/index.ts +1 -1
  357. package/node_modules/io.appium.settings/lib/utils/index.ts +4 -0
  358. package/node_modules/io.appium.settings/lib/utils/streaming-protocol.ts +93 -0
  359. package/node_modules/io.appium.settings/lib/utils/streaming-transport.ts +450 -0
  360. package/node_modules/io.appium.settings/package.json +17 -20
  361. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  362. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
  363. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
  364. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  365. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
  366. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
  367. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  368. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
  369. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
  370. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
  371. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  372. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
  373. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  374. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
  375. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
  376. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  377. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
  378. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
  379. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  380. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
  381. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
  382. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
  383. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  384. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
  385. package/node_modules/lru-cache/package.json +27 -1
  386. package/node_modules/morgan/README.md +49 -10
  387. package/node_modules/morgan/index.js +24 -6
  388. package/node_modules/morgan/package.json +6 -6
  389. package/node_modules/on-finished/index.js +14 -2
  390. package/node_modules/on-finished/package.json +11 -7
  391. package/node_modules/p-limit/index.d.ts +2 -0
  392. package/node_modules/p-limit/index.js +17 -1
  393. package/node_modules/p-limit/package.json +1 -1
  394. package/node_modules/p-limit/readme.md +2 -0
  395. package/node_modules/proxy-addr/HISTORY.md +60 -54
  396. package/node_modules/proxy-addr/README.md +1 -1
  397. package/node_modules/proxy-addr/index.js +32 -0
  398. package/node_modules/proxy-addr/package.json +8 -4
  399. package/node_modules/qs/.editorconfig +1 -1
  400. package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
  401. package/node_modules/qs/CHANGELOG.md +61 -14
  402. package/node_modules/qs/README.md +57 -4
  403. package/node_modules/qs/dist/qs.js +19 -19
  404. package/node_modules/qs/eslint.config.mjs +61 -50
  405. package/node_modules/qs/lib/formats.js +7 -2
  406. package/node_modules/qs/lib/parse.js +105 -8
  407. package/node_modules/qs/lib/stringify.js +9 -7
  408. package/node_modules/qs/lib/utils.js +145 -13
  409. package/node_modules/qs/package.json +8 -8
  410. package/node_modules/qs/test/parse.js +440 -2
  411. package/node_modules/qs/test/stringify.js +485 -33
  412. package/node_modules/qs/test/utils.js +245 -3
  413. package/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
  414. package/node_modules/readable-stream/lib/internal/streams/destroy.js +1 -1
  415. package/node_modules/readable-stream/lib/internal/streams/duplexify.js +1 -1
  416. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -1
  417. package/node_modules/readable-stream/lib/internal/streams/from.js +1 -1
  418. package/node_modules/readable-stream/lib/internal/streams/legacy.js +6 -1
  419. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +1 -1
  420. package/node_modules/readable-stream/lib/internal/streams/readable.js +1 -1
  421. package/node_modules/readable-stream/lib/internal/streams/writable.js +1 -1
  422. package/node_modules/readable-stream/package.json +3 -2
  423. package/node_modules/sharp/dist/index.d.cts +2 -2
  424. package/node_modules/sharp/dist/index.d.mts +3 -3
  425. package/node_modules/sharp/dist/is.cjs +8 -2
  426. package/node_modules/sharp/dist/is.mjs +8 -2
  427. package/node_modules/sharp/dist/operation.cjs +2 -2
  428. package/node_modules/sharp/dist/operation.mjs +2 -2
  429. package/node_modules/sharp/dist/output.cjs +1 -0
  430. package/node_modules/sharp/dist/output.mjs +1 -0
  431. package/node_modules/sharp/dist/resize.cjs +14 -14
  432. package/node_modules/sharp/dist/resize.mjs +14 -14
  433. package/node_modules/sharp/dist/sharp.cjs +3 -3
  434. package/node_modules/sharp/dist/sharp.mjs +3 -3
  435. package/node_modules/sharp/lib/index.d.ts +2 -2
  436. package/node_modules/sharp/package.json +35 -35
  437. package/node_modules/sharp/src/binding.gyp +1 -1
  438. package/node_modules/sharp/src/common.cc +4 -4
  439. package/node_modules/sharp/src/common.h +2 -2
  440. package/node_modules/sharp/src/pipeline.cc +31 -6
  441. package/node_modules/sharp/src/utilities.cc +1 -1
  442. package/node_modules/shell-quote/README.md +37 -4
  443. package/node_modules/shell-quote/package.json +10 -6
  444. package/node_modules/shell-quote/parse.d.ts +1 -1
  445. package/node_modules/shell-quote/parse.js +63 -11
  446. package/node_modules/shell-quote/quote.d.ts +2 -1
  447. package/node_modules/shell-quote/quote.js +23 -3
  448. package/node_modules/spdx-license-ids/index.json +13 -0
  449. package/node_modules/spdx-license-ids/package.json +1 -1
  450. package/node_modules/stream-buffers/.codeclimate.yml +12 -0
  451. package/node_modules/stream-buffers/.eslintignore +1 -0
  452. package/node_modules/stream-buffers/.eslintrc +25 -0
  453. package/node_modules/stream-buffers/.github/workflows/codeql-analysis.yml +71 -0
  454. package/node_modules/stream-buffers/.github/workflows/node.js.yml +31 -0
  455. package/node_modules/stream-buffers/.mailmap +1 -0
  456. package/node_modules/stream-buffers/.nvmrc +1 -0
  457. package/node_modules/stream-buffers/README.md +65 -65
  458. package/node_modules/stream-buffers/lib/constants.js +8 -6
  459. package/node_modules/stream-buffers/lib/readable_streambuffer.js +114 -136
  460. package/node_modules/stream-buffers/lib/streambuffer.js +5 -3
  461. package/node_modules/stream-buffers/lib/writable_streambuffer.js +72 -97
  462. package/node_modules/stream-buffers/package.json +7 -5
  463. package/node_modules/tar-stream/package.json +7 -7
  464. package/node_modules/type-fest/index.d.ts +7 -7
  465. package/node_modules/type-fest/package.json +2 -1
  466. package/node_modules/type-fest/readme.md +7 -16
  467. package/node_modules/type-fest/source/all-extend.d.ts +9 -7
  468. package/node_modules/type-fest/source/array-reverse.d.ts +13 -12
  469. package/node_modules/type-fest/source/array-tail.d.ts +3 -3
  470. package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
  471. package/node_modules/type-fest/source/get.d.ts +1 -1
  472. package/node_modules/type-fest/source/int-closed-range.d.ts +4 -1
  473. package/node_modules/type-fest/source/int-range.d.ts +56 -9
  474. package/node_modules/type-fest/source/internal/array.d.ts +14 -13
  475. package/node_modules/type-fest/source/internal/numeric.d.ts +0 -38
  476. package/node_modules/type-fest/source/internal/object.d.ts +30 -1
  477. package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
  478. package/node_modules/type-fest/source/is-literal.d.ts +43 -269
  479. package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
  480. package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
  481. package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
  482. package/node_modules/type-fest/source/is-tuple.d.ts +3 -3
  483. package/node_modules/type-fest/source/jsonify.d.ts +1 -5
  484. package/node_modules/type-fest/source/merge-deep.d.ts +3 -3
  485. package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
  486. package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
  487. package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
  488. package/node_modules/type-fest/source/set-required.d.ts +10 -9
  489. package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +6 -4
  490. package/node_modules/type-fest/source/some-extend.d.ts +9 -7
  491. package/node_modules/type-fest/source/split-on-rest-element.d.ts +14 -13
  492. package/node_modules/type-fest/source/split.d.ts +22 -11
  493. package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
  494. package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
  495. package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
  496. package/node_modules/type-fest/source/typed-array.d.ts +6 -0
  497. package/node_modules/type-fest/source/union-max.d.ts +56 -0
  498. package/node_modules/type-fest/source/writable.d.ts +2 -2
  499. package/node_modules/uuid/package.json +17 -17
  500. package/node_modules/ws/lib/websocket.js +17 -3
  501. package/node_modules/ws/package.json +1 -1
  502. package/node_modules/xpath/LICENSE +22 -22
  503. package/node_modules/xpath/package.json +43 -43
  504. package/node_modules/xpath/xpath.d.ts +51 -51
  505. package/node_modules/xpath/xpath.js +17 -2
  506. package/package.json +7 -7
  507. package/node_modules/@appium/base-driver/node_modules/asyncbox/LICENSE +0 -203
  508. package/node_modules/@appium/base-driver/node_modules/asyncbox/README.md +0 -215
  509. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  510. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  511. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
  512. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  513. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  514. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  515. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  516. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  517. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/package.json +0 -3
  518. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  519. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  520. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
  521. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  522. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  523. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  524. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  525. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  526. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/package.json +0 -3
  527. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncbox.ts +0 -365
  528. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/types.ts +0 -88
  529. package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +0 -74
  530. package/node_modules/@appium/base-driver/node_modules/axios/CHANGELOG.md +0 -1872
  531. package/node_modules/@appium/base-driver/node_modules/axios/LICENSE +0 -7
  532. package/node_modules/@appium/base-driver/node_modules/axios/MIGRATION_GUIDE.md +0 -877
  533. package/node_modules/@appium/base-driver/node_modules/axios/README.md +0 -2623
  534. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.js +0 -5509
  535. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js +0 -5
  536. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js.map +0 -1
  537. package/node_modules/@appium/base-driver/node_modules/axios/dist/browser/axios.cjs +0 -5469
  538. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.js +0 -5490
  539. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js +0 -3
  540. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  541. package/node_modules/@appium/base-driver/node_modules/axios/dist/node/axios.cjs +0 -6356
  542. package/node_modules/@appium/base-driver/node_modules/axios/index.d.cts +0 -762
  543. package/node_modules/@appium/base-driver/node_modules/axios/index.d.ts +0 -783
  544. package/node_modules/@appium/base-driver/node_modules/axios/index.js +0 -45
  545. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/README.md +0 -36
  546. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/adapters.js +0 -132
  547. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/fetch.js +0 -643
  548. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/http.js +0 -1406
  549. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/xhr.js +0 -228
  550. package/node_modules/@appium/base-driver/node_modules/axios/lib/axios.js +0 -89
  551. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  552. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  553. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/isCancel.js +0 -5
  554. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/Axios.js +0 -301
  555. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosError.js +0 -219
  556. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
  557. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  558. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/README.md +0 -8
  559. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/buildFullPath.js +0 -88
  560. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  561. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/mergeConfig.js +0 -174
  562. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
  563. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/settle.js +0 -27
  564. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/transformData.js +0 -28
  565. package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/index.js +0 -177
  566. package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/transitional.js +0 -10
  567. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/README.md +0 -3
  568. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/classes/FormData.js +0 -2
  569. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/data.js +0 -1
  570. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  571. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  572. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  573. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
  574. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/README.md +0 -7
  575. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  576. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/bind.js +0 -14
  577. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/buildURL.js +0 -69
  578. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/callbackify.js +0 -18
  579. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/combineURLs.js +0 -23
  580. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/composeSignals.js +0 -68
  581. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/cookies.js +0 -64
  582. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  583. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
  584. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
  585. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  586. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  587. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  588. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  589. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  590. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/null.js +0 -2
  591. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
  592. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  593. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  594. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/readBlob.js +0 -15
  595. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
  596. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  597. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
  598. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/speedometer.js +0 -55
  599. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/spread.js +0 -28
  600. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/throttle.js +0 -44
  601. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toFormData.js +0 -286
  602. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  603. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/trackStream.js +0 -89
  604. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/validator.js +0 -112
  605. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  606. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  607. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  608. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/index.js +0 -13
  609. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/common/utils.js +0 -52
  610. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/index.js +0 -7
  611. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
  612. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  613. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  614. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/index.js +0 -37
  615. package/node_modules/@appium/base-driver/node_modules/axios/lib/utils.js +0 -1029
  616. package/node_modules/@appium/base-driver/node_modules/axios/package.json +0 -203
  617. package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +0 -203
  618. package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -215
  619. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  620. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  621. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
  622. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  623. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  624. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  625. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  626. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  627. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
  628. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  629. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  630. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
  631. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  632. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  633. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  634. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  635. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  636. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
  637. package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +0 -365
  638. package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
  639. package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
  640. package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +0 -1872
  641. package/node_modules/@appium/support/node_modules/axios/LICENSE +0 -7
  642. package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +0 -877
  643. package/node_modules/@appium/support/node_modules/axios/README.md +0 -2623
  644. package/node_modules/@appium/support/node_modules/axios/dist/axios.js +0 -5509
  645. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +0 -5
  646. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +0 -1
  647. package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +0 -5469
  648. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +0 -5490
  649. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +0 -3
  650. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  651. package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +0 -6356
  652. package/node_modules/@appium/support/node_modules/axios/index.d.cts +0 -762
  653. package/node_modules/@appium/support/node_modules/axios/index.d.ts +0 -783
  654. package/node_modules/@appium/support/node_modules/axios/index.js +0 -45
  655. package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +0 -36
  656. package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +0 -132
  657. package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +0 -643
  658. package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +0 -1406
  659. package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +0 -228
  660. package/node_modules/@appium/support/node_modules/axios/lib/axios.js +0 -89
  661. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  662. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  663. package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +0 -5
  664. package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +0 -301
  665. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +0 -219
  666. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
  667. package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  668. package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +0 -8
  669. package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +0 -88
  670. package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  671. package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +0 -174
  672. package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
  673. package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +0 -27
  674. package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +0 -28
  675. package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +0 -177
  676. package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +0 -10
  677. package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +0 -3
  678. package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +0 -2
  679. package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +0 -1
  680. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  681. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  682. package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  683. package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
  684. package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +0 -7
  685. package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  686. package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +0 -14
  687. package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +0 -69
  688. package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +0 -18
  689. package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +0 -23
  690. package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +0 -68
  691. package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +0 -64
  692. package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  693. package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
  694. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
  695. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  696. package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  697. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  698. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  699. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  700. package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +0 -2
  701. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
  702. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  703. package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  704. package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +0 -15
  705. package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
  706. package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  707. package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
  708. package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +0 -55
  709. package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +0 -28
  710. package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +0 -44
  711. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +0 -286
  712. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  713. package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +0 -89
  714. package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +0 -112
  715. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  716. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  717. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  718. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +0 -13
  719. package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +0 -52
  720. package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +0 -7
  721. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
  722. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  723. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  724. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +0 -37
  725. package/node_modules/@appium/support/node_modules/axios/lib/utils.js +0 -1029
  726. package/node_modules/@appium/support/node_modules/axios/package.json +0 -203
  727. package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v10.6.6.apk.idsig +0 -0
  728. package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  729. package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  730. package/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -311
  731. package/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  732. package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  733. package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  734. package/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -298
  735. package/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  736. package/node_modules/asyncbox/lib/asyncbox.ts +0 -382
  737. package/node_modules/big-integer/BigInteger.d.ts +0 -2393
  738. package/node_modules/big-integer/BigInteger.js +0 -1453
  739. package/node_modules/big-integer/BigInteger.min.js +0 -1
  740. package/node_modules/big-integer/LICENSE +0 -24
  741. package/node_modules/big-integer/README.md +0 -589
  742. package/node_modules/big-integer/bower.json +0 -29
  743. package/node_modules/big-integer/package.json +0 -48
  744. package/node_modules/big-integer/tsconfig.json +0 -24
  745. package/node_modules/bplist-creator/bplistCreator.d.ts +0 -8
  746. package/node_modules/bplist-creator/bplistCreator.js +0 -460
  747. package/node_modules/bplist-creator/test/airplay.bplist +0 -0
  748. package/node_modules/bplist-creator/test/binaryData.bplist +0 -0
  749. package/node_modules/bplist-creator/test/creatorTest.js +0 -211
  750. package/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
  751. package/node_modules/bplist-creator/test/integers.bplist +0 -0
  752. package/node_modules/bplist-creator/test/sample1.bplist +0 -0
  753. package/node_modules/bplist-creator/test/sample2.bplist +0 -0
  754. package/node_modules/bplist-creator/test/uid.bplist +0 -0
  755. package/node_modules/bplist-creator/test/utf16.bplist +0 -0
  756. package/node_modules/bplist-parser/.editorconfig +0 -12
  757. package/node_modules/bplist-parser/.eslintignore +0 -1
  758. package/node_modules/bplist-parser/.eslintrc.js +0 -296
  759. package/node_modules/bplist-parser/bplistParser.d.ts +0 -8
  760. package/node_modules/io.appium.settings/build/lib/utils.d.ts.map +0 -1
  761. package/node_modules/io.appium.settings/build/lib/utils.js.map +0 -1
  762. package/node_modules/on-finished/HISTORY.md +0 -98
  763. package/node_modules/shell-quote/.nycrc +0 -14
  764. package/node_modules/shell-quote/eslint.config.mjs +0 -29
  765. package/node_modules/shell-quote/security.md +0 -11
  766. package/node_modules/shell-quote/test/comment.js +0 -16
  767. package/node_modules/shell-quote/test/env.js +0 -52
  768. package/node_modules/shell-quote/test/env_fn.js +0 -21
  769. package/node_modules/shell-quote/test/op.js +0 -102
  770. package/node_modules/shell-quote/test/parse.js +0 -149
  771. package/node_modules/shell-quote/test/quote.js +0 -145
  772. package/node_modules/shell-quote/test/set.js +0 -31
  773. package/node_modules/stream-buffers/.travis.yml +0 -28
  774. package/node_modules/stream-buffers/coverage/coverage.json +0 -1
  775. package/node_modules/stream-buffers/coverage/lcov-report/base.css +0 -182
  776. package/node_modules/stream-buffers/coverage/lcov-report/index.html +0 -73
  777. package/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +0 -63
  778. package/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +0 -112
  779. package/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +0 -453
  780. package/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +0 -54
  781. package/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +0 -336
  782. package/node_modules/stream-buffers/coverage/lcov-report/prettify.css +0 -1
  783. package/node_modules/stream-buffers/coverage/lcov-report/prettify.js +0 -1
  784. package/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  785. package/node_modules/stream-buffers/coverage/lcov-report/sorter.js +0 -156
  786. package/node_modules/stream-buffers/coverage/lcov.info +0 -305
  787. /package/node_modules/io.appium.settings/lib/{utils.ts → utils/apk-path.ts} +0 -0
@@ -37,6 +37,7 @@ export interface ConfigureServerOpts {
37
37
  export interface ConfigureHttpOpts {
38
38
  httpServer: HttpServer;
39
39
  reject: (error?: unknown) => void;
40
+ allowCors?: boolean;
40
41
  keepAliveTimeout: number;
41
42
  gracefulShutdownTimeout?: number;
42
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../lib/express/server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,IAAI,UAAU,EAAC,MAAM,WAAW,CAAC;AAMpD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,EACV,YAAY,EACZ,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAC,OAAO,EAAkB,MAAM,EAAC,MAAM,SAAS,CAAC;AA2B7D,uDAAuD;AACvD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CAC5C;AAED,yCAAyC;AACzC,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,4BAA4B,KAAK,IAAI,CAAC;AAEnG,qCAAqC;AACrC,MAAM,WAAW,UAAU;IACzB,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAC9B,QAAQ,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,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAC3C,iBAAiB,CAAC,EAAE,YAAY,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,+FAA+F;IAC/F,WAAW,EAAE,MAAM,CAAC;CACrB;AAQD,4CAA4C;AAC5C,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAsB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,CAuEpE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAmD/D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAe1D"}
@@ -38,6 +38,7 @@ async function server(opts) {
38
38
  const appiumServer = configureHttp({
39
39
  httpServer,
40
40
  reject,
41
+ allowCors,
41
42
  keepAliveTimeout,
42
43
  gracefulShutdownTimeout: cliArgs.shutdownTimeout,
43
44
  });
@@ -99,7 +100,7 @@ function configureServer(opts) {
99
100
  // When shouldUpgradeCallback is available, upgrades are handled directly on the HTTP server
100
101
  // to avoid Express middleware timeout issues with long-lived connections
101
102
  if (useLegacyUpgradeHandler) {
102
- app.use((0, middleware_1.handleUpgrade)(webSocketsMapping));
103
+ app.use((0, middleware_1.handleUpgrade)(webSocketsMapping, allowCors));
103
104
  }
104
105
  if (allowCors) {
105
106
  app.use(middleware_1.allowCrossDomain);
@@ -178,7 +179,7 @@ async function createServer(app, cliArgs) {
178
179
  * @param opts - Configuration options
179
180
  * @returns The same server instance typed as AppiumServer
180
181
  */
181
- function configureHttp({ httpServer, reject, keepAliveTimeout, gracefulShutdownTimeout, }) {
182
+ function configureHttp({ httpServer, reject, allowCors, keepAliveTimeout, gracefulShutdownTimeout, }) {
182
183
  const appiumServer = httpServer;
183
184
  appiumServer.webSocketsMapping = {};
184
185
  appiumServer.frontRouter = express_1.default.Router();
@@ -196,7 +197,7 @@ function configureHttp({ httpServer, reject, keepAliveTimeout, gracefulShutdownT
196
197
  // shouldUpgradeCallback only returns a boolean to indicate if the upgrade should proceed
197
198
  appiumServer.shouldUpgradeCallback = (req) => String(req.headers?.upgrade ?? '').toLowerCase() === 'websocket';
198
199
  appiumServer.on('upgrade', (req, socket, head) => {
199
- if (!(0, middleware_1.tryHandleWebSocketUpgrade)(req, socket, head, appiumServer.webSocketsMapping)) {
200
+ if (!(0, middleware_1.tryHandleWebSocketUpgrade)({ req, socket, head, webSocketsMapping: appiumServer.webSocketsMapping, allowCors })) {
200
201
  socket.destroy();
201
202
  }
202
203
  });
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../../../lib/express/server.ts"],"names":[],"mappings":";;;;;AA2GA,wBAsEC;AAOD,0CAmDC;AAQD,8CAeC;AAlQD,0DAA6B;AAE7B,6CAA0C;AAE1C,wFAAwF;AACxF,4EAA4E;AAC5E,6CAA2C;AAS3C,8DAAqC;AACrC,sDAA8B;AAE9B,sEAA6C;AAE7C,4CAA+C;AAC/C,2CAA2D;AAC3D,uDAAqE;AACrE,qCAA6B;AAC7B,6CAUsB;AACtB,2CAKqB;AAErB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AAW,CAAC,CAAC;YACpD,MAAM,CAAC,GAAG,CAAC,CAAC;QACd,CAAC,CAAC;QACF,MAAM,WAAW,GAAG,GAAG,EAAE;YACvB,UAAU,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC5C,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC;QACF,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAClC,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QAC1C,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IACH,UAAU,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC/C,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC;QACrC,UAAU,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;IACD,wDAAwD;IACxD,UAAU,CAAC,cAAc,GAAG,gBAAgB,GAAG,CAAC,GAAG,IAAI,CAAC;IACxD,MAAM,YAAY,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,MAAkB;IAClD,6DAA6D;IAC7D,oEAAoE;IACpE,IAAI,CAAC;QACH,OAAO,OAAQ,MAAuD,CAAC,qBAAqB,KAAK,WAAW,CAAC;IAC/G,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -10,8 +10,7 @@ export declare const BIDI_COMMANDS: {
10
10
  readonly unsubscribe: {
11
11
  readonly command: "bidiUnsubscribe";
12
12
  readonly params: {
13
- readonly required: readonly ["events"];
14
- readonly optional: readonly ["contexts"];
13
+ readonly optional: readonly ["events", "contexts", "subscriptions"];
15
14
  };
16
15
  };
17
16
  readonly status: {
@@ -1 +1 @@
1
- {"version":3,"file":"bidi-commands.d.ts","sourceRoot":"","sources":["../../../lib/protocol/bidi-commands.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBQ,CAAC"}
1
+ {"version":3,"file":"bidi-commands.d.ts","sourceRoot":"","sources":["../../../lib/protocol/bidi-commands.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBQ,CAAC"}
@@ -1,19 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BIDI_COMMANDS = void 0;
4
- const SUBSCRIPTION_REQUEST_PARAMS = {
4
+ const SUBSCRIBE_PARAMS = {
5
5
  required: ['events'],
6
6
  optional: ['contexts'],
7
7
  };
8
+ // `subscriptions` and `events` are alternative spec forms; `contexts` is a non-standard
9
+ // addition to `events`. `subscriptions` excludes the others, which bidiUnsubscribe validates.
10
+ const UNSUBSCRIBE_PARAMS = {
11
+ optional: ['events', 'contexts', 'subscriptions'],
12
+ };
8
13
  exports.BIDI_COMMANDS = {
9
14
  session: {
10
15
  subscribe: {
11
16
  command: 'bidiSubscribe',
12
- params: SUBSCRIPTION_REQUEST_PARAMS,
17
+ params: SUBSCRIBE_PARAMS,
13
18
  },
14
19
  unsubscribe: {
15
20
  command: 'bidiUnsubscribe',
16
- params: SUBSCRIPTION_REQUEST_PARAMS,
21
+ params: UNSUBSCRIBE_PARAMS,
17
22
  },
18
23
  status: {
19
24
  command: 'bidiStatus',
@@ -1 +1 @@
1
- {"version":3,"file":"bidi-commands.js","sourceRoot":"","sources":["../../../lib/protocol/bidi-commands.ts"],"names":[],"mappings":";;;AAEA,MAAM,2BAA2B,GAAG;IAClC,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACd,CAAC;AAEE,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE;QACP,SAAS,EAAE;YACT,OAAO,EAAE,eAAe;YACxB,MAAM,EAAE,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1
+ import {util} from '@appium/support';
2
+
3
+ type BidiSubscriptionDriver = {bidiEventSubs: Record<string, string[]>};
4
+
5
+ // subscription id -> event name -> contexts; kept per id so removing one keeps overlapping ones
6
+ type Subscriptions = Map<string, Map<string, string[]>>;
7
+
8
+ const subscriptionsByDriver = new WeakMap<object, Subscriptions>();
9
+
10
+ /** Get (or lazily create) the subscription registry of the given driver */
11
+ export function getSubscriptions(driver: object): Subscriptions {
12
+ let subscriptions = subscriptionsByDriver.get(driver);
13
+ if (!subscriptions) {
14
+ subscriptions = new Map();
15
+ subscriptionsByDriver.set(driver, subscriptions);
16
+ }
17
+ return subscriptions;
18
+ }
19
+
20
+ /** Recompute `bidiEventSubs` as the union of all registered subscriptions */
21
+ export function refreshEventSubscriptions(driver: BidiSubscriptionDriver): void {
22
+ const events = new Map<string, string[]>();
23
+ for (const subscription of getSubscriptions(driver).values()) {
24
+ for (const [event, contexts] of subscription) {
25
+ events.set(event, util.uniq([...(events.get(event) ?? []), ...contexts]));
26
+ }
27
+ }
28
+ // Object.fromEntries defines own properties, so names like '__proto__' stay safe
29
+ driver.bidiEventSubs = Object.fromEntries(events);
30
+ }
31
+
32
+ /** Forget all subscriptions, e.g. when the session ends */
33
+ export function clearBidiSubscriptions(driver: BidiSubscriptionDriver): void {
34
+ subscriptionsByDriver.delete(driver);
35
+ driver.bidiEventSubs = {};
36
+ }
@@ -1,7 +1,9 @@
1
1
  import {util} from '@appium/support';
2
2
  import type {Constraints, DriverStatus, IBidiCommands} from '@appium/types';
3
3
 
4
+ import {errors} from '../../protocol/errors';
4
5
  import type {BaseDriver} from '../driver';
6
+ import {getSubscriptions, refreshEventSubscriptions} from './bidi-subscriptions';
5
7
  import {mixin} from './mixin';
6
8
 
7
9
  declare module '../driver' {
@@ -9,22 +11,67 @@ declare module '../driver' {
9
11
  interface BaseDriver<C extends Constraints> extends IBidiCommands {}
10
12
  }
11
13
 
14
+ function assertStringList(value: unknown, name: string): asserts value is string[] {
15
+ if (!Array.isArray(value) || !value.length || value.some((item) => typeof item !== 'string' || !item.length)) {
16
+ throw new errors.InvalidArgumentError(`${name} must be a non-empty array of non-empty strings`);
17
+ }
18
+ }
19
+
20
+ function assertContexts(value: unknown): asserts value is string[] {
21
+ if (!Array.isArray(value) || value.some((context) => typeof context !== 'string')) {
22
+ throw new errors.InvalidArgumentError('contexts must be an array of strings');
23
+ }
24
+ }
25
+
12
26
  const BidiCommands: IBidiCommands = {
13
27
  async bidiSubscribe<C extends Constraints>(this: BaseDriver<C>, events: string[], contexts: string[] = ['']) {
14
- for (const event of events) {
15
- this.bidiEventSubs[event] = contexts;
16
- }
28
+ assertStringList(events, 'events');
29
+ assertContexts(contexts);
30
+ const subscription = util.uuidV4();
31
+ getSubscriptions(this).set(subscription, new Map(events.map((event) => [event, [...contexts]])));
32
+ refreshEventSubscriptions(this);
33
+ return {subscription};
17
34
  },
18
35
 
19
- async bidiUnsubscribe<C extends Constraints>(this: BaseDriver<C>, events: string[], contexts: string[] = ['']) {
20
- for (const event of events) {
21
- if (this.bidiEventSubs[event]) {
22
- this.bidiEventSubs[event] = this.bidiEventSubs[event].filter((c) => !contexts.includes(c));
36
+ async bidiUnsubscribe<C extends Constraints>(
37
+ this: BaseDriver<C>,
38
+ events?: string[],
39
+ contexts?: string[],
40
+ subscriptions?: string[],
41
+ ) {
42
+ const registered = getSubscriptions(this);
43
+ if (subscriptions === undefined) {
44
+ const contextsToRemove = contexts ?? [''];
45
+ assertStringList(events, 'events');
46
+ assertContexts(contextsToRemove);
47
+ for (const subscription of registered.values()) {
48
+ for (const event of events) {
49
+ const remaining = subscription.get(event)?.filter((c) => !contextsToRemove.includes(c));
50
+ if (remaining?.length) {
51
+ subscription.set(event, remaining);
52
+ } else {
53
+ subscription.delete(event);
54
+ }
55
+ }
23
56
  }
24
- if (this.bidiEventSubs[event].length === 0) {
25
- delete this.bidiEventSubs[event];
57
+ refreshEventSubscriptions(this);
58
+ return;
59
+ }
60
+
61
+ assertStringList(subscriptions, 'subscriptions');
62
+ if (events !== undefined || contexts !== undefined) {
63
+ throw new errors.InvalidArgumentError('subscriptions cannot be combined with events or contexts');
64
+ }
65
+ // validate everything before removing anything
66
+ for (const id of subscriptions) {
67
+ if (!registered.has(id)) {
68
+ throw new errors.InvalidArgumentError(`Unknown subscription id: ${id}`);
26
69
  }
27
70
  }
71
+ for (const id of subscriptions) {
72
+ registered.delete(id);
73
+ }
74
+ refreshEventSubscriptions(this);
28
75
  },
29
76
 
30
77
  async bidiStatus<C extends Constraints>(this: BaseDriver<C>): Promise<DriverStatus> {
@@ -127,7 +127,7 @@ const TimeoutCommands: ITimeoutCommands = {
127
127
  parseTimeoutArgument<C extends Constraints>(this: BaseDriver<C>, ms: number | string) {
128
128
  const duration = parseInt(String(ms), 10);
129
129
  if (Number.isNaN(duration) || duration < MIN_TIMEOUT) {
130
- throw new errors.UnknownError(`Invalid timeout value '${ms}'`);
130
+ throw new errors.InvalidArgumentError(`Invalid timeout value '${ms}'`);
131
131
  }
132
132
  return duration;
133
133
  },
@@ -26,6 +26,7 @@ import {calcSignature} from '../helpers/session';
26
26
  import {DELETE_SESSION_COMMAND, determineProtocol, errors} from '../protocol';
27
27
  import {mergePlainObjects} from '../utils';
28
28
  import {processCapabilities, validateCaps} from './capabilities';
29
+ import {clearBidiSubscriptions} from './commands/bidi-subscriptions';
29
30
  import {DriverCore} from './core';
30
31
  import * as helpers from './helpers';
31
32
 
@@ -392,6 +393,7 @@ export class BaseDriver<
392
393
  }
393
394
  }
394
395
  this.sessionId = null;
396
+ clearBidiSubscriptions(this);
395
397
  }
396
398
 
397
399
  logExtraCaps(caps: Capabilities<C>) {
@@ -38,6 +38,13 @@ const APPLICATIONS_CACHE_GUARD = new AsyncLock();
38
38
  const SANITIZE_REPLACEMENT = '-';
39
39
  const DEFAULT_BASENAME = 'appium-app';
40
40
  const APP_DOWNLOAD_TIMEOUT_MS = 120 * 1000;
41
+ // RFC 5987: filename*=UTF-8''percent-encoded-name (language tag is optional)
42
+ const FILENAME_STAR_PATTERN = /(?:^|;)\s*filename\*\s*=\s*([^';\s]+)'[^']*'([^;]+)/i;
43
+ const QUOTED_FILENAME_PATTERN = /(?:^|;)\s*filename\s*=\s*"((?:\\.|[^"\\])*)"/i;
44
+ // unquoted token; stops at ';' so later parameters are not swallowed
45
+ const UNQUOTED_FILENAME_PATTERN = /(?:^|;)\s*filename\s*=\s*([^;\s]+)/i;
46
+ const SURROUNDING_QUOTES_PATTERN = /^["']|["']$/g;
47
+ const ESCAPED_CHAR_PATTERN = /\\(.)/g;
41
48
 
42
49
  process.on('exit', () => {
43
50
  if (APPLICATIONS_CACHE.size === 0) {
@@ -485,6 +492,37 @@ async function fetchApp(srcStream: Readable, dstPath: string): Promise<string> {
485
492
  return dstPath;
486
493
  }
487
494
 
495
+ /**
496
+ * Picks a download filename from a Content-Disposition header.
497
+ * Prefers RFC 5987 `filename*` over `filename`, and accepts both quoted and unquoted `filename`.
498
+ * @internal
499
+ */
500
+ export function filenameFromContentDisposition(header: string): string | undefined {
501
+ const encoded = FILENAME_STAR_PATTERN.exec(header);
502
+ if (encoded?.[2]) {
503
+ try {
504
+ const value = decodeURIComponent(encoded[2].trim().replace(SURROUNDING_QUOTES_PATTERN, ''));
505
+ if (value) {
506
+ return value;
507
+ }
508
+ } catch {
509
+ // invalid percent-encoding; fall through to filename=
510
+ }
511
+ }
512
+
513
+ // an empty quoted value is still the filename parameter, so it must not fall through to the
514
+ // token branch below, which would otherwise capture the quote characters themselves
515
+ const quoted = QUOTED_FILENAME_PATTERN.exec(header);
516
+ if (quoted) {
517
+ return quoted[1].replace(ESCAPED_CHAR_PATTERN, '$1') || undefined;
518
+ }
519
+
520
+ const unquoted = UNQUOTED_FILENAME_PATTERN.exec(header);
521
+ if (unquoted?.[1]) {
522
+ return unquoted[1];
523
+ }
524
+ }
525
+
488
526
  function determineFilename(
489
527
  headers: AxiosResponseHeaders | RawAxiosRequestHeaders,
490
528
  pathname: string,
@@ -496,9 +534,9 @@ function determineFilename(
496
534
  const extname = path.extname(basename);
497
535
  if (headers['content-disposition'] && /^attachment/i.test(String(headers['content-disposition']))) {
498
536
  logger.debug(`Content-Disposition: ${headers['content-disposition']}`);
499
- const match = /filename="([^"]+)/i.exec(String(headers['content-disposition']));
500
- if (match) {
501
- return fs.sanitizeName(match[1], {replacement: SANITIZE_REPLACEMENT});
537
+ const fromHeader = filenameFromContentDisposition(String(headers['content-disposition']));
538
+ if (fromHeader) {
539
+ return fs.sanitizeName(fromHeader, {replacement: SANITIZE_REPLACEMENT});
502
540
  }
503
541
  }
504
542
 
@@ -91,25 +91,44 @@ export function defaultToJSONContentType(req: Request, _res: Response, next: Nex
91
91
  next();
92
92
  }
93
93
 
94
+ /** Options for {@linkcode tryHandleWebSocketUpgrade} */
95
+ export interface WebSocketUpgradeOpts {
96
+ /** Incoming HTTP request */
97
+ req: IncomingMessage;
98
+ /** Network socket */
99
+ socket: Duplex;
100
+ /** First packet of the upgraded stream */
101
+ head: Buffer;
102
+ /** Path-to-WebSocket-server mapping */
103
+ webSocketsMapping: StringRecord<WSServer>;
104
+ /** Whether upgrades carrying an `Origin` header are accepted */
105
+ allowCors?: boolean;
106
+ }
107
+
94
108
  /**
95
109
  * Attempts to handle a WebSocket upgrade by matching the request path against registered handlers.
96
110
  *
97
- * @param req - Incoming HTTP request
98
- * @param socket - Network socket
99
- * @param head - First packet of the upgraded stream
100
- * @param webSocketsMapping - Path-to-WebSocket-server mapping
111
+ * @param opts - Upgrade options
101
112
  * @returns `true` if the upgrade was handled; `false` otherwise
102
113
  */
103
- export function tryHandleWebSocketUpgrade(
104
- req: IncomingMessage,
105
- socket: Duplex,
106
- head: Buffer,
107
- webSocketsMapping: StringRecord<WSServer>,
108
- ): boolean {
114
+ export function tryHandleWebSocketUpgrade({
115
+ req,
116
+ socket,
117
+ head,
118
+ webSocketsMapping,
119
+ allowCors = false,
120
+ }: WebSocketUpgradeOpts): boolean {
109
121
  if (String(req.headers?.upgrade ?? '').toLowerCase() !== 'websocket') {
110
122
  return false;
111
123
  }
112
124
 
125
+ // WebSocket handshakes are not subject to the Same-Origin Policy; browsers always send Origin
126
+ if (!allowCors && req.headers.origin !== undefined) {
127
+ log.warn(`Rejecting the WebSocket upgrade from the browser origin '${req.headers.origin}'`);
128
+ socket.end('HTTP/1.1 403 Forbidden\r\nConnection: close\r\nContent-Length: 0\r\n\r\n');
129
+ return true;
130
+ }
131
+
113
132
  let currentPathname: string;
114
133
  try {
115
134
  currentPathname = new URL(req.url ?? '', 'http://localhost').pathname;
@@ -133,11 +152,12 @@ export function tryHandleWebSocketUpgrade(
133
152
  * Delegates WebSocket upgrades to the mapping and falls through to `next()` otherwise.
134
153
  *
135
154
  * @param webSocketsMapping - Path-to-WebSocket-server mapping
155
+ * @param allowCors - Whether upgrades carrying an `Origin` header are accepted
136
156
  * @returns Express request handler
137
157
  */
138
- export function handleUpgrade(webSocketsMapping: StringRecord<WSServer>): RequestHandler {
158
+ export function handleUpgrade(webSocketsMapping: StringRecord<WSServer>, allowCors = false): RequestHandler {
139
159
  function handleUpgradeMiddleware(req: Request, res: Response, next: NextFunction): void {
140
- if (tryHandleWebSocketUpgrade(req, req.socket, Buffer.from(''), webSocketsMapping)) {
160
+ if (tryHandleWebSocketUpgrade({req, socket: req.socket, head: Buffer.from(''), webSocketsMapping, allowCors})) {
141
161
  return;
142
162
  }
143
163
  next();
@@ -88,6 +88,7 @@ export interface ConfigureServerInternalOpts extends ConfigureServerOpts {
88
88
  export interface ConfigureHttpOpts {
89
89
  httpServer: HttpServer;
90
90
  reject: (error?: unknown) => void;
91
+ allowCors?: boolean;
91
92
  keepAliveTimeout: number;
92
93
  gracefulShutdownTimeout?: number;
93
94
  }
@@ -131,6 +132,7 @@ export async function server(opts: ServerOpts): Promise<AppiumServer> {
131
132
  const appiumServer = configureHttp({
132
133
  httpServer,
133
134
  reject,
135
+ allowCors,
134
136
  keepAliveTimeout,
135
137
  gracefulShutdownTimeout: cliArgs.shutdownTimeout,
136
138
  });
@@ -207,7 +209,7 @@ export function configureServer(opts: ConfigureServerOpts): void {
207
209
  // When shouldUpgradeCallback is available, upgrades are handled directly on the HTTP server
208
210
  // to avoid Express middleware timeout issues with long-lived connections
209
211
  if (useLegacyUpgradeHandler) {
210
- app.use(handleUpgrade(webSocketsMapping));
212
+ app.use(handleUpgrade(webSocketsMapping, allowCors));
211
213
  }
212
214
  if (allowCors) {
213
215
  app.use(allowCrossDomain);
@@ -309,6 +311,7 @@ async function createServer(app: Express, cliArgs?: Partial<ServerArgs>): Promis
309
311
  function configureHttp({
310
312
  httpServer,
311
313
  reject,
314
+ allowCors,
312
315
  keepAliveTimeout,
313
316
  gracefulShutdownTimeout,
314
317
  }: ConfigureHttpOpts): AppiumServer {
@@ -332,7 +335,9 @@ function configureHttp({
332
335
  appiumServer as unknown as {shouldUpgradeCallback?: (req: http.IncomingMessage) => boolean}
333
336
  ).shouldUpgradeCallback = (req) => String(req.headers?.upgrade ?? '').toLowerCase() === 'websocket';
334
337
  appiumServer.on('upgrade', (req, socket, head) => {
335
- if (!tryHandleWebSocketUpgrade(req, socket, head, appiumServer.webSocketsMapping)) {
338
+ if (
339
+ !tryHandleWebSocketUpgrade({req, socket, head, webSocketsMapping: appiumServer.webSocketsMapping, allowCors})
340
+ ) {
336
341
  socket.destroy();
337
342
  }
338
343
  });
@@ -1,19 +1,25 @@
1
1
  import type {BidiModuleMap} from '@appium/types';
2
2
 
3
- const SUBSCRIPTION_REQUEST_PARAMS = {
3
+ const SUBSCRIBE_PARAMS = {
4
4
  required: ['events'],
5
5
  optional: ['contexts'],
6
6
  } as const;
7
7
 
8
+ // `subscriptions` and `events` are alternative spec forms; `contexts` is a non-standard
9
+ // addition to `events`. `subscriptions` excludes the others, which bidiUnsubscribe validates.
10
+ const UNSUBSCRIBE_PARAMS = {
11
+ optional: ['events', 'contexts', 'subscriptions'],
12
+ } as const;
13
+
8
14
  export const BIDI_COMMANDS = {
9
15
  session: {
10
16
  subscribe: {
11
17
  command: 'bidiSubscribe',
12
- params: SUBSCRIPTION_REQUEST_PARAMS,
18
+ params: SUBSCRIBE_PARAMS,
13
19
  },
14
20
  unsubscribe: {
15
21
  command: 'bidiUnsubscribe',
16
- params: SUBSCRIPTION_REQUEST_PARAMS,
22
+ params: UNSUBSCRIBE_PARAMS,
17
23
  },
18
24
  status: {
19
25
  command: 'bidiStatus',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appium/base-driver",
3
- "version": "10.8.0",
4
- "gitHead": "b67de03966155ff052076c11c1c8f20cc2ba9134",
3
+ "version": "10.8.2",
4
+ "gitHead": "2c2820242ffdbc450025d4963cff7b17a7e5a7d3",
5
5
  "description": "Base driver class for Appium drivers",
6
6
  "keywords": [
7
7
  "android",
@@ -46,21 +46,21 @@
46
46
  "test:types": "tsd"
47
47
  },
48
48
  "dependencies": {
49
- "@appium/support": "7.2.7",
50
- "@appium/types": "1.7.0",
49
+ "@appium/support": "7.2.9",
50
+ "@appium/types": "1.7.2",
51
51
  "async-lock": "1.4.1",
52
- "asyncbox": "6.4.2",
53
- "axios": "1.19.0",
54
- "body-parser": "2.3.0",
52
+ "asyncbox": "6.5.0",
53
+ "axios": "1.20.0",
54
+ "body-parser": "2.4.0",
55
55
  "express": "5.2.1",
56
56
  "fastest-levenshtein": "1.0.16",
57
57
  "http-status-codes": "2.3.0",
58
- "lru-cache": "11.5.2",
58
+ "lru-cache": "11.5.3",
59
59
  "method-override": "3.0.0",
60
- "morgan": "1.11.0",
60
+ "morgan": "1.12.1",
61
61
  "path-to-regexp": "8.4.2",
62
62
  "serve-favicon": "2.5.1",
63
- "type-fest": "5.8.0"
63
+ "type-fest": "5.10.0"
64
64
  },
65
65
  "optionalDependencies": {
66
66
  "spdy": "4.0.2"
@@ -12,7 +12,7 @@
12
12
  "checkJs": true,
13
13
  "types": ["node"]
14
14
  },
15
- "include": ["lib", "test"],
15
+ "include": ["lib", "test/unit", "test/e2e", "test/helpers.ts"],
16
16
  "exclude": ["build"],
17
17
  "references": [
18
18
  {
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.12](https://github.com/appium/appium/compare/@appium/logger@2.0.11...@appium/logger@2.0.12) (2026-09-24)
7
+
8
+ **Note:** Version bump only for package @appium/logger
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.0.11](https://github.com/appium/appium/compare/@appium/logger@2.0.10...@appium/logger@2.0.11) (2026-08-24)
7
15
 
8
16
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appium/logger",
3
- "version": "2.0.11",
4
- "gitHead": "b67de03966155ff052076c11c1c8f20cc2ba9134",
3
+ "version": "2.0.12",
4
+ "gitHead": "eb5ce47b17c6e3da79e57e0c2b3e4afa649878e4",
5
5
  "description": "A Universal Logger For The Appium Ecosystem",
6
6
  "keywords": [
7
7
  "android",
@@ -44,7 +44,7 @@
44
44
  "test:unit": "node --test --enable-source-maps --test-timeout=5000 \"./build/test/unit/**/*.spec.js\""
45
45
  },
46
46
  "dependencies": {
47
- "lru-cache": "11.5.2"
47
+ "lru-cache": "11.5.3"
48
48
  },
49
49
  "engines": {
50
50
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../lib/fs.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,SAAS,EACT,KAAK,WAAW,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,IAAI,EACJ,KAAK,QAAQ,EACb,QAAQ,IAAI,UAAU,EACtB,IAAI,EACJ,KAAK,gBAAgB,EAItB,MAAM,SAAS,CAAC;AAIjB,OAAO,CAAC,MAAM,UAAU,CAAC;AAEzB,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,MAAM,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAA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;;;OAGG;cACO,MAAM,SAAS,IAAI,CAAC,OAAO,GAAG,MAAM;IAI9C,sCAAsC;gBACpB,QAAQ,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIxD;;;;;;OAMG;iBAEgB,MAAM,aAAa,OAAO,YAAY,eAAe,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA6EjG;;;;;OAKG;6BACsB,MAAM,SAAQ,gBAAgB,GAAG;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAC,GAAQ,qBAAqB;IAWrG;;;;;;OAMG;kBACW,MAAM,GAAG,MAAM;;;;;;;;;IAmB7B;;;OAGG;;;;;;;;;;;;;;IAgBH,gDAAgD;;IAEhD,gDAAgD;;IAEhD,gDAAgD;;IAEhD,gDAAgD;;CAEjD,CAAC;AAEF,eAAe,EAAE,CAAC"}
@@ -162,6 +162,13 @@ exports.fs = {
162
162
  }
163
163
  throw err;
164
164
  }
165
+ // moving a path onto itself deletes it, and a destination inside the source never returns
166
+ if (await (0, util_1.isSameDestination)(from, to)) {
167
+ return;
168
+ }
169
+ if (fromStat.isDirectory() && (0, util_1.isSubPath)(node_path_1.default.resolve(to), node_path_1.default.resolve(from))) {
170
+ throw new Error(`Cannot move '${from}' to '${to}' because the destination is inside the source`);
171
+ }
165
172
  if (fromStat.isFile()) {
166
173
  const dstRootWasCreated = await ensureDestination(node_path_1.default.dirname(to));
167
174
  await renameFile(from, to, dstRootWasCreated);