appium-espresso-driver 9.3.6 → 9.3.7

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 (615) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  3. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
  4. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
  5. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
  7. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
  8. package/espresso-server/gradle/libs.versions.toml +1 -1
  9. package/espresso-server/gradle.properties +1 -1
  10. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
  11. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +6 -3
  12. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js.map +1 -1
  13. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js +1 -1
  14. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.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/lib/basedriver/commands/bidi.ts +6 -3
  19. package/node_modules/@appium/base-driver/lib/basedriver/commands/timeout.ts +1 -1
  20. package/node_modules/@appium/base-driver/lib/basedriver/helpers.ts +41 -3
  21. package/node_modules/@appium/base-driver/package.json +9 -9
  22. package/node_modules/@appium/base-driver/tsconfig.json +1 -1
  23. package/node_modules/@appium/logger/CHANGELOG.md +8 -0
  24. package/node_modules/@appium/logger/package.json +3 -3
  25. package/node_modules/@appium/support/build/lib/fs.d.ts.map +1 -1
  26. package/node_modules/@appium/support/build/lib/fs.js +7 -0
  27. package/node_modules/@appium/support/build/lib/fs.js.map +1 -1
  28. package/node_modules/@appium/support/build/lib/index.d.ts.map +1 -1
  29. package/node_modules/@appium/support/build/lib/net.d.ts.map +1 -1
  30. package/node_modules/@appium/support/build/lib/net.js +6 -2
  31. package/node_modules/@appium/support/build/lib/net.js.map +1 -1
  32. package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
  33. package/node_modules/@appium/support/build/lib/util.js +10 -4
  34. package/node_modules/@appium/support/build/lib/util.js.map +1 -1
  35. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  36. package/node_modules/@appium/support/build/lib/zip.js +2 -7
  37. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  38. package/node_modules/@appium/support/lib/fs.ts +8 -1
  39. package/node_modules/@appium/support/lib/net.ts +7 -2
  40. package/node_modules/@appium/support/lib/util.ts +9 -3
  41. package/node_modules/@appium/support/lib/zip.ts +3 -9
  42. package/node_modules/@appium/support/package.json +9 -9
  43. package/node_modules/@appium/types/package.json +4 -4
  44. package/node_modules/@img/sharp-libvips-linux-x64/README.md +1 -1
  45. package/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +2 -2
  46. package/node_modules/@img/sharp-libvips-linux-x64/lib/{libvips-cpp.so.8.18.6 → libvips-cpp.so.8.18.7} +0 -0
  47. package/node_modules/@img/sharp-libvips-linux-x64/package.json +2 -2
  48. package/node_modules/@img/sharp-libvips-linux-x64/versions.json +11 -11
  49. package/node_modules/@img/sharp-linux-x64/index.cjs +1 -1
  50. package/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.5.node +0 -0
  51. package/node_modules/@img/sharp-linux-x64/package.json +2 -2
  52. package/node_modules/appium-adb/CHANGELOG.md +37 -0
  53. package/node_modules/appium-adb/README.md +1 -1
  54. package/node_modules/appium-adb/build/lib/tools/aab-utils.js +34 -34
  55. package/node_modules/appium-adb/build/lib/tools/aab-utils.js.map +1 -1
  56. package/node_modules/appium-adb/build/lib/tools/android-manifest.js +1 -1
  57. package/node_modules/appium-adb/build/lib/tools/android-manifest.js.map +1 -1
  58. package/node_modules/appium-adb/build/lib/tools/apk-signing.d.ts.map +1 -1
  59. package/node_modules/appium-adb/build/lib/tools/apk-signing.js +21 -9
  60. package/node_modules/appium-adb/build/lib/tools/apk-signing.js.map +1 -1
  61. package/node_modules/appium-adb/build/lib/tools/apks-utils.d.ts.map +1 -1
  62. package/node_modules/appium-adb/build/lib/tools/apks-utils.js +6 -5
  63. package/node_modules/appium-adb/build/lib/tools/apks-utils.js.map +1 -1
  64. package/node_modules/appium-adb/build/lib/tools/app-commands.d.ts.map +1 -1
  65. package/node_modules/appium-adb/build/lib/tools/app-commands.js +63 -62
  66. package/node_modules/appium-adb/build/lib/tools/app-commands.js.map +1 -1
  67. package/node_modules/appium-adb/build/lib/tools/device-settings.js +1 -1
  68. package/node_modules/appium-adb/build/lib/tools/device-settings.js.map +1 -1
  69. package/node_modules/appium-adb/build/lib/tools/lockmgmt.d.ts.map +1 -1
  70. package/node_modules/appium-adb/build/lib/tools/lockmgmt.js +3 -9
  71. package/node_modules/appium-adb/build/lib/tools/lockmgmt.js.map +1 -1
  72. package/node_modules/appium-adb/build/lib/tools/system-calls.d.ts.map +1 -1
  73. package/node_modules/appium-adb/build/lib/tools/system-calls.js +7 -6
  74. package/node_modules/appium-adb/build/lib/tools/system-calls.js.map +1 -1
  75. package/node_modules/appium-adb/build/lib/tools/types.d.ts +4 -0
  76. package/node_modules/appium-adb/build/lib/tools/types.d.ts.map +1 -1
  77. package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts +1 -0
  78. package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts.map +1 -1
  79. package/node_modules/appium-adb/build/lib/utils/helpers/index.js +1 -0
  80. package/node_modules/appium-adb/build/lib/utils/helpers/index.js.map +1 -1
  81. package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts +19 -0
  82. package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts.map +1 -0
  83. package/node_modules/appium-adb/build/lib/utils/helpers/redact.js +57 -0
  84. package/node_modules/appium-adb/build/lib/utils/helpers/redact.js.map +1 -0
  85. package/node_modules/appium-adb/build/lib/utils/index.d.ts +2 -0
  86. package/node_modules/appium-adb/build/lib/utils/index.d.ts.map +1 -1
  87. package/node_modules/appium-adb/build/lib/utils/index.js +2 -0
  88. package/node_modules/appium-adb/build/lib/utils/index.js.map +1 -1
  89. package/node_modules/appium-adb/lib/tools/aab-utils.ts +35 -35
  90. package/node_modules/appium-adb/lib/tools/android-manifest.ts +1 -1
  91. package/node_modules/appium-adb/lib/tools/apk-signing.ts +26 -9
  92. package/node_modules/appium-adb/lib/tools/apks-utils.ts +13 -5
  93. package/node_modules/appium-adb/lib/tools/app-commands.ts +59 -68
  94. package/node_modules/appium-adb/lib/tools/device-settings.ts +1 -1
  95. package/node_modules/appium-adb/lib/tools/lockmgmt.ts +3 -8
  96. package/node_modules/appium-adb/lib/tools/system-calls.ts +15 -6
  97. package/node_modules/appium-adb/lib/tools/types.ts +4 -0
  98. package/node_modules/appium-adb/lib/utils/helpers/index.ts +1 -0
  99. package/node_modules/appium-adb/lib/utils/helpers/redact.ts +59 -0
  100. package/node_modules/appium-adb/lib/utils/index.ts +2 -0
  101. package/node_modules/appium-adb/package.json +10 -13
  102. package/node_modules/appium-android-driver/CHANGELOG.md +25 -0
  103. package/node_modules/appium-android-driver/build/lib/commands/context/exports.js +1 -1
  104. package/node_modules/appium-android-driver/build/lib/commands/context/exports.js.map +1 -1
  105. package/node_modules/appium-android-driver/build/lib/commands/file-actions.d.ts.map +1 -1
  106. package/node_modules/appium-android-driver/build/lib/commands/file-actions.js +55 -35
  107. package/node_modules/appium-android-driver/build/lib/commands/file-actions.js.map +1 -1
  108. package/node_modules/appium-android-driver/build/lib/commands/log.js +2 -2
  109. package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
  110. package/node_modules/appium-android-driver/lib/commands/context/exports.ts +1 -1
  111. package/node_modules/appium-android-driver/lib/commands/file-actions.ts +58 -39
  112. package/node_modules/appium-android-driver/lib/commands/log.ts +2 -2
  113. package/node_modules/appium-android-driver/package.json +1 -1
  114. package/node_modules/appium-chromedriver/CHANGELOG.md +54 -0
  115. package/node_modules/appium-chromedriver/README.md +2 -4
  116. package/node_modules/appium-chromedriver/config/mapping.json +6 -1
  117. package/node_modules/appium-chromedriver/package.json +10 -13
  118. package/node_modules/bare-fs/binding.c +52 -23
  119. package/node_modules/bare-fs/index.d.ts +12 -10
  120. package/node_modules/bare-fs/index.js +43 -10
  121. package/node_modules/bare-fs/package.json +2 -1
  122. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  123. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  124. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  125. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  126. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  127. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  128. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  129. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  130. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  131. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  132. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  133. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  134. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  135. package/node_modules/bare-url/README.md +4 -0
  136. package/node_modules/bare-url/index.d.ts +3 -0
  137. package/node_modules/bare-url/index.js +42 -18
  138. package/node_modules/bare-url/lib/errors.js +4 -0
  139. package/node_modules/bare-url/package.json +1 -1
  140. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  141. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  142. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  143. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  144. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  145. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  146. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  147. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  148. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  149. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  150. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  151. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  152. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  153. package/node_modules/bplist-creator/README.md +26 -6
  154. package/node_modules/bplist-creator/dist/index.cjs +508 -0
  155. package/node_modules/bplist-creator/dist/index.cjs.map +7 -0
  156. package/node_modules/bplist-creator/dist/index.d.cts +12 -0
  157. package/node_modules/bplist-creator/dist/index.d.ts +12 -0
  158. package/node_modules/bplist-creator/dist/index.mjs +472 -0
  159. package/node_modules/bplist-creator/dist/index.mjs.map +7 -0
  160. package/node_modules/bplist-creator/package.json +43 -9
  161. package/node_modules/bplist-parser/README.md +37 -3
  162. package/node_modules/bplist-parser/dist/index.cjs +385 -0
  163. package/node_modules/bplist-parser/dist/index.cjs.map +7 -0
  164. package/node_modules/bplist-parser/dist/index.d.cts +13 -0
  165. package/node_modules/bplist-parser/dist/index.d.ts +13 -0
  166. package/node_modules/bplist-parser/{bplistParser.js → dist/index.mjs} +141 -171
  167. package/node_modules/bplist-parser/dist/index.mjs.map +7 -0
  168. package/node_modules/bplist-parser/package.json +39 -12
  169. package/node_modules/follow-redirects/index.js +10 -1
  170. package/node_modules/follow-redirects/package.json +1 -1
  171. package/node_modules/io.appium.settings/CHANGELOG.md +65 -0
  172. package/node_modules/io.appium.settings/README.md +126 -0
  173. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  174. package/node_modules/io.appium.settings/build/lib/client.d.ts +4 -0
  175. package/node_modules/io.appium.settings/build/lib/client.d.ts.map +1 -1
  176. package/node_modules/io.appium.settings/build/lib/client.js +4 -0
  177. package/node_modules/io.appium.settings/build/lib/client.js.map +1 -1
  178. package/node_modules/io.appium.settings/build/lib/commands/clipboard.d.ts.map +1 -1
  179. package/node_modules/io.appium.settings/build/lib/commands/clipboard.js +1 -1
  180. package/node_modules/io.appium.settings/build/lib/commands/clipboard.js.map +1 -1
  181. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts +55 -0
  182. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts.map +1 -0
  183. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js +156 -0
  184. package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js.map +1 -0
  185. package/node_modules/io.appium.settings/build/lib/commands/media-projection.d.ts.map +1 -1
  186. package/node_modules/io.appium.settings/build/lib/commands/media-projection.js.map +1 -1
  187. package/node_modules/io.appium.settings/build/lib/commands/media.js +1 -1
  188. package/node_modules/io.appium.settings/build/lib/commands/media.js.map +1 -1
  189. package/node_modules/io.appium.settings/build/lib/commands/network.js +1 -1
  190. package/node_modules/io.appium.settings/build/lib/commands/network.js.map +1 -1
  191. package/node_modules/io.appium.settings/build/lib/commands/types.d.ts +65 -0
  192. package/node_modules/io.appium.settings/build/lib/commands/types.d.ts.map +1 -1
  193. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts +56 -0
  194. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts.map +1 -0
  195. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js +166 -0
  196. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js.map +1 -0
  197. package/node_modules/io.appium.settings/build/lib/constants.d.ts +7 -0
  198. package/node_modules/io.appium.settings/build/lib/constants.d.ts.map +1 -1
  199. package/node_modules/io.appium.settings/build/lib/constants.js +7 -0
  200. package/node_modules/io.appium.settings/build/lib/constants.js.map +1 -1
  201. package/node_modules/io.appium.settings/build/lib/index.js +1 -1
  202. package/node_modules/io.appium.settings/build/lib/index.js.map +1 -1
  203. package/node_modules/io.appium.settings/build/lib/{utils.d.ts → utils/apk-path.d.ts} +1 -1
  204. package/node_modules/io.appium.settings/build/lib/utils/apk-path.d.ts.map +1 -0
  205. package/node_modules/io.appium.settings/build/lib/{utils.js → utils/apk-path.js} +1 -1
  206. package/node_modules/io.appium.settings/build/lib/utils/apk-path.js.map +1 -0
  207. package/node_modules/io.appium.settings/build/lib/utils/index.d.ts +5 -0
  208. package/node_modules/io.appium.settings/build/lib/utils/index.d.ts.map +1 -0
  209. package/node_modules/io.appium.settings/build/lib/utils/index.js +4 -0
  210. package/node_modules/io.appium.settings/build/lib/utils/index.js.map +1 -0
  211. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts +47 -0
  212. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts.map +1 -0
  213. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js +67 -0
  214. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js.map +1 -0
  215. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts +142 -0
  216. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts.map +1 -0
  217. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js +416 -0
  218. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js.map +1 -0
  219. package/node_modules/io.appium.settings/lib/client.ts +5 -0
  220. package/node_modules/io.appium.settings/lib/commands/clipboard.ts +1 -0
  221. package/node_modules/io.appium.settings/lib/commands/jpeg-stream.ts +175 -0
  222. package/node_modules/io.appium.settings/lib/commands/media-projection.ts +1 -5
  223. package/node_modules/io.appium.settings/lib/commands/media.ts +1 -1
  224. package/node_modules/io.appium.settings/lib/commands/network.ts +1 -1
  225. package/node_modules/io.appium.settings/lib/commands/types.ts +70 -0
  226. package/node_modules/io.appium.settings/lib/commands/video-stream.ts +185 -0
  227. package/node_modules/io.appium.settings/lib/constants.ts +10 -0
  228. package/node_modules/io.appium.settings/lib/index.ts +1 -1
  229. package/node_modules/io.appium.settings/lib/utils/index.ts +4 -0
  230. package/node_modules/io.appium.settings/lib/utils/streaming-protocol.ts +93 -0
  231. package/node_modules/io.appium.settings/lib/utils/streaming-transport.ts +450 -0
  232. package/node_modules/io.appium.settings/package.json +17 -20
  233. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  234. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
  235. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
  236. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  237. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
  238. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
  239. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  240. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
  241. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
  242. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
  243. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  244. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
  245. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  246. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
  247. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
  248. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  249. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
  250. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
  251. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  252. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
  253. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
  254. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
  255. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  256. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
  257. package/node_modules/lru-cache/package.json +27 -1
  258. package/node_modules/morgan/README.md +49 -10
  259. package/node_modules/morgan/index.js +24 -6
  260. package/node_modules/morgan/package.json +6 -6
  261. package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
  262. package/node_modules/qs/CHANGELOG.md +38 -14
  263. package/node_modules/qs/README.md +31 -3
  264. package/node_modules/qs/dist/qs.js +20 -20
  265. package/node_modules/qs/lib/parse.js +94 -4
  266. package/node_modules/qs/lib/stringify.js +4 -4
  267. package/node_modules/qs/lib/utils.js +130 -6
  268. package/node_modules/qs/package.json +4 -4
  269. package/node_modules/qs/test/parse.js +174 -0
  270. package/node_modules/qs/test/stringify.js +263 -33
  271. package/node_modules/qs/test/utils.js +184 -0
  272. package/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
  273. package/node_modules/readable-stream/lib/internal/streams/destroy.js +1 -1
  274. package/node_modules/readable-stream/lib/internal/streams/duplexify.js +1 -1
  275. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -1
  276. package/node_modules/readable-stream/lib/internal/streams/from.js +1 -1
  277. package/node_modules/readable-stream/lib/internal/streams/legacy.js +6 -1
  278. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +1 -1
  279. package/node_modules/readable-stream/lib/internal/streams/readable.js +1 -1
  280. package/node_modules/readable-stream/lib/internal/streams/writable.js +1 -1
  281. package/node_modules/readable-stream/package.json +3 -2
  282. package/node_modules/sharp/dist/index.d.cts +2 -2
  283. package/node_modules/sharp/dist/index.d.mts +3 -3
  284. package/node_modules/sharp/dist/is.cjs +8 -2
  285. package/node_modules/sharp/dist/is.mjs +8 -2
  286. package/node_modules/sharp/dist/operation.cjs +2 -2
  287. package/node_modules/sharp/dist/operation.mjs +2 -2
  288. package/node_modules/sharp/dist/output.cjs +1 -0
  289. package/node_modules/sharp/dist/output.mjs +1 -0
  290. package/node_modules/sharp/dist/resize.cjs +14 -14
  291. package/node_modules/sharp/dist/resize.mjs +14 -14
  292. package/node_modules/sharp/dist/sharp.cjs +3 -3
  293. package/node_modules/sharp/dist/sharp.mjs +3 -3
  294. package/node_modules/sharp/lib/index.d.ts +2 -2
  295. package/node_modules/sharp/package.json +35 -35
  296. package/node_modules/sharp/src/binding.gyp +1 -1
  297. package/node_modules/sharp/src/common.cc +4 -4
  298. package/node_modules/sharp/src/common.h +2 -2
  299. package/node_modules/sharp/src/pipeline.cc +31 -6
  300. package/node_modules/sharp/src/utilities.cc +1 -1
  301. package/node_modules/stream-buffers/.codeclimate.yml +12 -0
  302. package/node_modules/stream-buffers/.eslintignore +1 -0
  303. package/node_modules/stream-buffers/.eslintrc +25 -0
  304. package/node_modules/stream-buffers/.github/workflows/codeql-analysis.yml +71 -0
  305. package/node_modules/stream-buffers/.github/workflows/node.js.yml +31 -0
  306. package/node_modules/stream-buffers/.mailmap +1 -0
  307. package/node_modules/stream-buffers/.nvmrc +1 -0
  308. package/node_modules/stream-buffers/README.md +65 -65
  309. package/node_modules/stream-buffers/lib/constants.js +8 -6
  310. package/node_modules/stream-buffers/lib/readable_streambuffer.js +114 -136
  311. package/node_modules/stream-buffers/lib/streambuffer.js +5 -3
  312. package/node_modules/stream-buffers/lib/writable_streambuffer.js +72 -97
  313. package/node_modules/stream-buffers/package.json +7 -5
  314. package/node_modules/tar-stream/package.json +7 -7
  315. package/node_modules/type-fest/index.d.ts +7 -7
  316. package/node_modules/type-fest/package.json +2 -1
  317. package/node_modules/type-fest/readme.md +7 -16
  318. package/node_modules/type-fest/source/all-extend.d.ts +9 -7
  319. package/node_modules/type-fest/source/array-reverse.d.ts +13 -12
  320. package/node_modules/type-fest/source/array-tail.d.ts +3 -3
  321. package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
  322. package/node_modules/type-fest/source/get.d.ts +1 -1
  323. package/node_modules/type-fest/source/int-closed-range.d.ts +4 -1
  324. package/node_modules/type-fest/source/int-range.d.ts +56 -9
  325. package/node_modules/type-fest/source/internal/array.d.ts +14 -13
  326. package/node_modules/type-fest/source/internal/numeric.d.ts +0 -38
  327. package/node_modules/type-fest/source/internal/object.d.ts +30 -1
  328. package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
  329. package/node_modules/type-fest/source/is-literal.d.ts +43 -269
  330. package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
  331. package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
  332. package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
  333. package/node_modules/type-fest/source/is-tuple.d.ts +3 -3
  334. package/node_modules/type-fest/source/jsonify.d.ts +1 -5
  335. package/node_modules/type-fest/source/merge-deep.d.ts +3 -3
  336. package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
  337. package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
  338. package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
  339. package/node_modules/type-fest/source/set-required.d.ts +10 -9
  340. package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +6 -4
  341. package/node_modules/type-fest/source/some-extend.d.ts +9 -7
  342. package/node_modules/type-fest/source/split-on-rest-element.d.ts +14 -13
  343. package/node_modules/type-fest/source/split.d.ts +22 -11
  344. package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
  345. package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
  346. package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
  347. package/node_modules/type-fest/source/typed-array.d.ts +6 -0
  348. package/node_modules/type-fest/source/union-max.d.ts +56 -0
  349. package/node_modules/type-fest/source/writable.d.ts +2 -2
  350. package/node_modules/xpath/LICENSE +22 -22
  351. package/node_modules/xpath/package.json +43 -43
  352. package/node_modules/xpath/xpath.d.ts +51 -51
  353. package/node_modules/xpath/xpath.js +17 -2
  354. package/package.json +4 -4
  355. package/node_modules/@appium/base-driver/node_modules/asyncbox/LICENSE +0 -203
  356. package/node_modules/@appium/base-driver/node_modules/asyncbox/README.md +0 -215
  357. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  358. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  359. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
  360. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  361. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  362. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  363. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  364. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  365. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/package.json +0 -3
  366. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  367. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  368. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
  369. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  370. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  371. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  372. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  373. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  374. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/package.json +0 -3
  375. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncbox.ts +0 -365
  376. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/types.ts +0 -88
  377. package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +0 -74
  378. package/node_modules/@appium/base-driver/node_modules/axios/CHANGELOG.md +0 -1872
  379. package/node_modules/@appium/base-driver/node_modules/axios/LICENSE +0 -7
  380. package/node_modules/@appium/base-driver/node_modules/axios/MIGRATION_GUIDE.md +0 -877
  381. package/node_modules/@appium/base-driver/node_modules/axios/README.md +0 -2623
  382. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.js +0 -5509
  383. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js +0 -5
  384. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js.map +0 -1
  385. package/node_modules/@appium/base-driver/node_modules/axios/dist/browser/axios.cjs +0 -5469
  386. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.js +0 -5490
  387. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js +0 -3
  388. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  389. package/node_modules/@appium/base-driver/node_modules/axios/dist/node/axios.cjs +0 -6356
  390. package/node_modules/@appium/base-driver/node_modules/axios/index.d.cts +0 -762
  391. package/node_modules/@appium/base-driver/node_modules/axios/index.d.ts +0 -783
  392. package/node_modules/@appium/base-driver/node_modules/axios/index.js +0 -45
  393. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/README.md +0 -36
  394. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/adapters.js +0 -132
  395. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/fetch.js +0 -643
  396. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/http.js +0 -1406
  397. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/xhr.js +0 -228
  398. package/node_modules/@appium/base-driver/node_modules/axios/lib/axios.js +0 -89
  399. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  400. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  401. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/isCancel.js +0 -5
  402. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/Axios.js +0 -301
  403. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosError.js +0 -219
  404. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
  405. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  406. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/README.md +0 -8
  407. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/buildFullPath.js +0 -88
  408. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  409. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/mergeConfig.js +0 -174
  410. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
  411. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/settle.js +0 -27
  412. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/transformData.js +0 -28
  413. package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/index.js +0 -177
  414. package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/transitional.js +0 -10
  415. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/README.md +0 -3
  416. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/classes/FormData.js +0 -2
  417. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/data.js +0 -1
  418. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  419. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  420. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  421. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
  422. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/README.md +0 -7
  423. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  424. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/bind.js +0 -14
  425. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/buildURL.js +0 -69
  426. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/callbackify.js +0 -18
  427. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/combineURLs.js +0 -23
  428. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/composeSignals.js +0 -68
  429. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/cookies.js +0 -64
  430. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  431. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
  432. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
  433. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  434. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  435. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  436. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  437. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  438. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/null.js +0 -2
  439. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
  440. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  441. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  442. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/readBlob.js +0 -15
  443. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
  444. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  445. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
  446. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/speedometer.js +0 -55
  447. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/spread.js +0 -28
  448. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/throttle.js +0 -44
  449. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toFormData.js +0 -286
  450. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  451. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/trackStream.js +0 -89
  452. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/validator.js +0 -112
  453. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  454. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  455. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  456. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/index.js +0 -13
  457. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/common/utils.js +0 -52
  458. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/index.js +0 -7
  459. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
  460. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  461. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  462. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/index.js +0 -37
  463. package/node_modules/@appium/base-driver/node_modules/axios/lib/utils.js +0 -1029
  464. package/node_modules/@appium/base-driver/node_modules/axios/package.json +0 -203
  465. package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +0 -203
  466. package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -215
  467. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  468. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  469. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
  470. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  471. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  472. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  473. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  474. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  475. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
  476. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  477. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  478. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
  479. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  480. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  481. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  482. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  483. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  484. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
  485. package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +0 -365
  486. package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
  487. package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
  488. package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +0 -1872
  489. package/node_modules/@appium/support/node_modules/axios/LICENSE +0 -7
  490. package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +0 -877
  491. package/node_modules/@appium/support/node_modules/axios/README.md +0 -2623
  492. package/node_modules/@appium/support/node_modules/axios/dist/axios.js +0 -5509
  493. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +0 -5
  494. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +0 -1
  495. package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +0 -5469
  496. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +0 -5490
  497. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +0 -3
  498. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  499. package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +0 -6356
  500. package/node_modules/@appium/support/node_modules/axios/index.d.cts +0 -762
  501. package/node_modules/@appium/support/node_modules/axios/index.d.ts +0 -783
  502. package/node_modules/@appium/support/node_modules/axios/index.js +0 -45
  503. package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +0 -36
  504. package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +0 -132
  505. package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +0 -643
  506. package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +0 -1406
  507. package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +0 -228
  508. package/node_modules/@appium/support/node_modules/axios/lib/axios.js +0 -89
  509. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  510. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  511. package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +0 -5
  512. package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +0 -301
  513. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +0 -219
  514. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
  515. package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  516. package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +0 -8
  517. package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +0 -88
  518. package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +0 -89
  519. package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +0 -174
  520. package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
  521. package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +0 -27
  522. package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +0 -28
  523. package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +0 -177
  524. package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +0 -10
  525. package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +0 -3
  526. package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +0 -2
  527. package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +0 -1
  528. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  529. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
  530. package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  531. package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
  532. package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +0 -7
  533. package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  534. package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +0 -14
  535. package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +0 -69
  536. package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +0 -18
  537. package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +0 -23
  538. package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +0 -68
  539. package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +0 -64
  540. package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  541. package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
  542. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
  543. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
  544. package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
  545. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  546. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  547. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  548. package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +0 -2
  549. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
  550. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  551. package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
  552. package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +0 -15
  553. package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
  554. package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
  555. package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
  556. package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +0 -55
  557. package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +0 -28
  558. package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +0 -44
  559. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +0 -286
  560. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  561. package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +0 -89
  562. package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +0 -112
  563. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  564. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  565. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  566. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +0 -13
  567. package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +0 -52
  568. package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +0 -7
  569. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
  570. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  571. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  572. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +0 -37
  573. package/node_modules/@appium/support/node_modules/axios/lib/utils.js +0 -1029
  574. package/node_modules/@appium/support/node_modules/axios/package.json +0 -203
  575. package/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.4.node +0 -0
  576. package/node_modules/big-integer/BigInteger.d.ts +0 -2393
  577. package/node_modules/big-integer/BigInteger.js +0 -1453
  578. package/node_modules/big-integer/BigInteger.min.js +0 -1
  579. package/node_modules/big-integer/LICENSE +0 -24
  580. package/node_modules/big-integer/README.md +0 -589
  581. package/node_modules/big-integer/bower.json +0 -29
  582. package/node_modules/big-integer/package.json +0 -48
  583. package/node_modules/big-integer/tsconfig.json +0 -24
  584. package/node_modules/bplist-creator/bplistCreator.d.ts +0 -8
  585. package/node_modules/bplist-creator/bplistCreator.js +0 -460
  586. package/node_modules/bplist-creator/test/airplay.bplist +0 -0
  587. package/node_modules/bplist-creator/test/binaryData.bplist +0 -0
  588. package/node_modules/bplist-creator/test/creatorTest.js +0 -211
  589. package/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
  590. package/node_modules/bplist-creator/test/integers.bplist +0 -0
  591. package/node_modules/bplist-creator/test/sample1.bplist +0 -0
  592. package/node_modules/bplist-creator/test/sample2.bplist +0 -0
  593. package/node_modules/bplist-creator/test/uid.bplist +0 -0
  594. package/node_modules/bplist-creator/test/utf16.bplist +0 -0
  595. package/node_modules/bplist-parser/.editorconfig +0 -12
  596. package/node_modules/bplist-parser/.eslintignore +0 -1
  597. package/node_modules/bplist-parser/.eslintrc.js +0 -296
  598. package/node_modules/bplist-parser/bplistParser.d.ts +0 -8
  599. package/node_modules/io.appium.settings/build/lib/utils.d.ts.map +0 -1
  600. package/node_modules/io.appium.settings/build/lib/utils.js.map +0 -1
  601. package/node_modules/stream-buffers/.travis.yml +0 -28
  602. package/node_modules/stream-buffers/coverage/coverage.json +0 -1
  603. package/node_modules/stream-buffers/coverage/lcov-report/base.css +0 -182
  604. package/node_modules/stream-buffers/coverage/lcov-report/index.html +0 -73
  605. package/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +0 -63
  606. package/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +0 -112
  607. package/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +0 -453
  608. package/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +0 -54
  609. package/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +0 -336
  610. package/node_modules/stream-buffers/coverage/lcov-report/prettify.css +0 -1
  611. package/node_modules/stream-buffers/coverage/lcov-report/prettify.js +0 -1
  612. package/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  613. package/node_modules/stream-buffers/coverage/lcov-report/sorter.js +0 -156
  614. package/node_modules/stream-buffers/coverage/lcov.info +0 -305
  615. /package/node_modules/io.appium.settings/lib/{utils.ts → utils/apk-path.ts} +0 -0
@@ -0,0 +1,142 @@
1
+ import type { ADB } from 'appium-adb';
2
+ import type { LocalPortOpts } from '../commands/types.js';
3
+ import { type StreamFrame } from './streaming-protocol.js';
4
+ /**
5
+ * Describes a decode-dependency chain within the queued items (e.g. H.264/HEVC video
6
+ * frames, where a delta frame is undecodable without every frame back to its last
7
+ * keyframe). Items outside the chain (e.g. an interleaved audio track) are unaffected.
8
+ */
9
+ export interface DependencyChain<T> {
10
+ /** True for items that participate in the chain at all (e.g. non-CONFIG video frames). */
11
+ isChainMember: (item: T) => boolean;
12
+ /** True for a chain member that doesn't depend on earlier ones (e.g. a keyframe). */
13
+ isSyncPoint: (item: T) => boolean;
14
+ }
15
+ /**
16
+ * A bounded async-iterable queue that drops the oldest buffered item once its
17
+ * capacity is exceeded, so a slow consumer never causes unbounded memory growth.
18
+ * An optional `isProtected` predicate can shield items (e.g. video CONFIG frames)
19
+ * from eviction as long as any non-protected item remains to drop instead. An
20
+ * optional `dependencyChain` additionally makes eviction dependency-aware: dropping
21
+ * any chain member cascades to every following chain member up to (not including)
22
+ * the next sync point, and further chain-member pushes are discarded until a fresh
23
+ * sync point arrives - since anything in between is undecodable, buffering it only
24
+ * to have the consumer choke on it later isn't useful.
25
+ */
26
+ export declare class BoundedFrameQueue<T> {
27
+ private readonly capacity;
28
+ private readonly isProtected?;
29
+ private readonly dependencyChain?;
30
+ private readonly items;
31
+ private readonly waiters;
32
+ private readonly errorWaiters;
33
+ private ended;
34
+ private endError;
35
+ private awaitingSyncPoint;
36
+ constructor(capacity?: number, isProtected?: ((item: T) => boolean) | undefined, dependencyChain?: DependencyChain<T> | undefined);
37
+ /**
38
+ * Enqueues an item. If a consumer is already awaiting the next item, it is
39
+ * delivered directly; otherwise it is buffered, dropping the oldest droppable
40
+ * (non-protected) buffered item first if `capacity` would be exceeded. If a
41
+ * `dependencyChain` was given and a prior eviction broke it without a later sync
42
+ * point already buffered, chain-member items are silently discarded here until a
43
+ * fresh sync point item is pushed.
44
+ *
45
+ * @param item - The item to enqueue
46
+ */
47
+ push(item: T): void;
48
+ /**
49
+ * Marks the dependency chain (if configured) as broken by something outside this
50
+ * queue's own eviction - e.g. a producer detecting a sequence gap in items it never
51
+ * even offered here. The next chain-member item pushed is discarded unless it is
52
+ * itself a sync point, exactly as if a local eviction had cascaded off the end of
53
+ * the buffer. A no-op if no `dependencyChain` was configured.
54
+ */
55
+ notifyGap(): void;
56
+ /**
57
+ * Evicts one item to bring the queue back under capacity: the oldest non-protected
58
+ * item, or (if every buffered item is protected, which should not happen in
59
+ * practice) the true oldest one regardless. If the evicted item was a
60
+ * `dependencyChain` member, cascades to drop every following chain member up to
61
+ * the next sync point, setting {@link awaitingSyncPoint} if none is found.
62
+ */
63
+ private evictOnce;
64
+ /**
65
+ * Starting at `index`, removes chain-member items up to (not including) the next
66
+ * sync point, skipping over non-chain-member items (e.g. an interleaved audio
67
+ * track) in place without disturbing them.
68
+ *
69
+ * @returns True if a sync point was found (and kept), false if the scan reached
70
+ * the end of the buffer first
71
+ */
72
+ private dropDependentsFrom;
73
+ /**
74
+ * Ends the queue. Any already-buffered items are still delivered first; once
75
+ * drained, the async iterator completes, rejecting with `error` if one is given.
76
+ * A no-op if the queue has already ended.
77
+ *
78
+ * @param error - Optional error to surface to the consumer once buffered items are drained
79
+ */
80
+ end(error?: Error): void;
81
+ private next;
82
+ /**
83
+ * Async-iterates the queue, yielding items as they are pushed until {@link end} is called.
84
+ */
85
+ [Symbol.asyncIterator](): AsyncGenerator<T>;
86
+ }
87
+ /**
88
+ * Validates local-port selection options for a live stream session.
89
+ *
90
+ * @param opts - Options containing an optional localPort and/or localPortRange
91
+ * @throws {TypeError} If both localPort and localPortRange are provided, or either is malformed
92
+ */
93
+ export declare function validateLocalPortOpts(opts: LocalPortOpts): void;
94
+ /**
95
+ * Resolves the local TCP port to use for the `adb forward` bridge: the exact
96
+ * `localPort` if given, the first free port in `localPortRange` if given, or an
97
+ * OS-assigned ephemeral port otherwise.
98
+ *
99
+ * @param opts - Port selection options; see {@link validateLocalPortOpts}
100
+ * @returns The bound, free local TCP port
101
+ * @throws {Error} If the requested port is busy, or no free port exists in the requested range
102
+ */
103
+ export declare function resolveLocalPort(opts: LocalPortOpts): Promise<number>;
104
+ /**
105
+ * Bridges the on-device local abstract socket to the host over `adb forward`,
106
+ * parses the streaming wire protocol, and exposes the result as a bounded
107
+ * async-iterable frame queue.
108
+ */
109
+ export declare class StreamTransport {
110
+ private readonly adb;
111
+ private readonly localPort;
112
+ private readonly socket;
113
+ private readonly queue;
114
+ private readonly parserState;
115
+ private closed;
116
+ private lastVideoSequence;
117
+ private constructor();
118
+ /**
119
+ * Resolves a local port, forwards it to the on-device local abstract socket via
120
+ * `adb forward`, and connects to it (retrying until the on-device session accepts).
121
+ * On failure, any port forward that was already set up is best-effort removed.
122
+ *
123
+ * @param adb - ADB instance for device communication
124
+ * @param socketName - Name of the on-device local abstract socket to forward
125
+ * @param portOpts - Optional local port selection options
126
+ * @returns A connected StreamTransport instance
127
+ * @throws {Error} If the local port cannot be resolved, or the connection fails
128
+ */
129
+ static connect(adb: ADB, socketName: string, portOpts?: LocalPortOpts): Promise<StreamTransport>;
130
+ private wire;
131
+ /**
132
+ * Returns an async generator yielding parsed frames as they arrive on the socket,
133
+ * until the connection closes or errors.
134
+ */
135
+ frames(): AsyncGenerator<StreamFrame>;
136
+ /**
137
+ * Destroys the client socket and best-effort removes the `adb forward` port
138
+ * mapping. Safe to call more than once.
139
+ */
140
+ close(): Promise<void>;
141
+ }
142
+ //# sourceMappingURL=streaming-transport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming-transport.d.ts","sourceRoot":"","sources":["../../../lib/utils/streaming-transport.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAA8C,KAAK,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAUtG;;;;GAIG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,0FAA0F;IAC1F,aAAa,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACpC,qFAAqF;IACrF,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;CACnC;AAED;;;;;;;;;;GAUG;AACH,qBAAa,iBAAiB,CAAC,CAAC;IAS5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;IAVnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkD;IAC1E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmC;IAChE,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,iBAAiB,CAAS;gBAGf,QAAQ,GAAE,MAA+B,EACzC,WAAW,CAAC,GAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,aAAA,EAClC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,YAAA;IAGvD;;;;;;;;;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ParserState, parseFrames, StreamTrack } from './streaming-protocol.js';
4
+ const DEFAULT_QUEUE_CAPACITY = 60;
5
+ const CONNECT_TIMEOUT_MS = 5000;
6
+ const CONNECT_RETRY_INTERVAL_MS = 200;
7
+ // adb forward's host-side TCP listener accepts a connection immediately, independent of
8
+ // whether the on-device local socket is bound yet; if it isn't, adb tears the connection
9
+ // down right away with no data. Wait this long past 'connect' before trusting the socket.
10
+ const CONNECT_VERIFY_GRACE_MS = 150;
11
+ /**
12
+ * A bounded async-iterable queue that drops the oldest buffered item once its
13
+ * capacity is exceeded, so a slow consumer never causes unbounded memory growth.
14
+ * An optional `isProtected` predicate can shield items (e.g. video CONFIG frames)
15
+ * from eviction as long as any non-protected item remains to drop instead. An
16
+ * optional `dependencyChain` additionally makes eviction dependency-aware: dropping
17
+ * any chain member cascades to every following chain member up to (not including)
18
+ * the next sync point, and further chain-member pushes are discarded until a fresh
19
+ * sync point arrives - since anything in between is undecodable, buffering it only
20
+ * to have the consumer choke on it later isn't useful.
21
+ */
22
+ export class BoundedFrameQueue {
23
+ capacity;
24
+ isProtected;
25
+ dependencyChain;
26
+ items = [];
27
+ waiters = [];
28
+ errorWaiters = [];
29
+ ended = false;
30
+ endError;
31
+ awaitingSyncPoint = false;
32
+ constructor(capacity = DEFAULT_QUEUE_CAPACITY, isProtected, dependencyChain) {
33
+ this.capacity = capacity;
34
+ this.isProtected = isProtected;
35
+ this.dependencyChain = dependencyChain;
36
+ }
37
+ /**
38
+ * Enqueues an item. If a consumer is already awaiting the next item, it is
39
+ * delivered directly; otherwise it is buffered, dropping the oldest droppable
40
+ * (non-protected) buffered item first if `capacity` would be exceeded. If a
41
+ * `dependencyChain` was given and a prior eviction broke it without a later sync
42
+ * point already buffered, chain-member items are silently discarded here until a
43
+ * fresh sync point item is pushed.
44
+ *
45
+ * @param item - The item to enqueue
46
+ */
47
+ push(item) {
48
+ if (this.ended) {
49
+ return;
50
+ }
51
+ const chain = this.dependencyChain;
52
+ if (this.awaitingSyncPoint && chain?.isChainMember(item)) {
53
+ if (!chain.isSyncPoint(item)) {
54
+ return;
55
+ }
56
+ this.awaitingSyncPoint = false;
57
+ }
58
+ const waiter = this.waiters.shift();
59
+ if (waiter) {
60
+ this.errorWaiters.shift();
61
+ waiter({ value: item, done: false });
62
+ return;
63
+ }
64
+ this.items.push(item);
65
+ while (this.items.length > this.capacity) {
66
+ this.evictOnce();
67
+ }
68
+ }
69
+ /**
70
+ * Marks the dependency chain (if configured) as broken by something outside this
71
+ * queue's own eviction - e.g. a producer detecting a sequence gap in items it never
72
+ * even offered here. The next chain-member item pushed is discarded unless it is
73
+ * itself a sync point, exactly as if a local eviction had cascaded off the end of
74
+ * the buffer. A no-op if no `dependencyChain` was configured.
75
+ */
76
+ notifyGap() {
77
+ if (this.dependencyChain) {
78
+ this.awaitingSyncPoint = true;
79
+ }
80
+ }
81
+ /**
82
+ * Evicts one item to bring the queue back under capacity: the oldest non-protected
83
+ * item, or (if every buffered item is protected, which should not happen in
84
+ * practice) the true oldest one regardless. If the evicted item was a
85
+ * `dependencyChain` member, cascades to drop every following chain member up to
86
+ * the next sync point, setting {@link awaitingSyncPoint} if none is found.
87
+ */
88
+ evictOnce() {
89
+ const isProtected = this.isProtected;
90
+ const index = isProtected ? this.items.findIndex((item) => !isProtected(item)) : 0;
91
+ if (index === -1) {
92
+ this.items.shift();
93
+ return;
94
+ }
95
+ const [evicted] = this.items.splice(index, 1);
96
+ const chain = this.dependencyChain;
97
+ if (chain?.isChainMember(evicted) && !this.dropDependentsFrom(index, chain)) {
98
+ this.awaitingSyncPoint = true;
99
+ }
100
+ }
101
+ /**
102
+ * Starting at `index`, removes chain-member items up to (not including) the next
103
+ * sync point, skipping over non-chain-member items (e.g. an interleaved audio
104
+ * track) in place without disturbing them.
105
+ *
106
+ * @returns True if a sync point was found (and kept), false if the scan reached
107
+ * the end of the buffer first
108
+ */
109
+ dropDependentsFrom(index, chain) {
110
+ while (index < this.items.length) {
111
+ const item = this.items[index];
112
+ if (!chain.isChainMember(item)) {
113
+ index++;
114
+ continue;
115
+ }
116
+ if (chain.isSyncPoint(item)) {
117
+ return true;
118
+ }
119
+ this.items.splice(index, 1);
120
+ }
121
+ return false;
122
+ }
123
+ /**
124
+ * Ends the queue. Any already-buffered items are still delivered first; once
125
+ * drained, the async iterator completes, rejecting with `error` if one is given.
126
+ * A no-op if the queue has already ended.
127
+ *
128
+ * @param error - Optional error to surface to the consumer once buffered items are drained
129
+ */
130
+ end(error) {
131
+ if (this.ended) {
132
+ return;
133
+ }
134
+ this.ended = true;
135
+ this.endError = error;
136
+ for (;;) {
137
+ const waiter = this.waiters.shift();
138
+ const errorWaiter = this.errorWaiters.shift();
139
+ if (!waiter || !errorWaiter) {
140
+ return;
141
+ }
142
+ if (error) {
143
+ errorWaiter(error);
144
+ }
145
+ else {
146
+ waiter({ value: undefined, done: true });
147
+ }
148
+ }
149
+ }
150
+ next() {
151
+ if (this.items.length > 0) {
152
+ return Promise.resolve({ value: this.items.shift(), done: false });
153
+ }
154
+ if (this.ended) {
155
+ return this.endError ? Promise.reject(this.endError) : Promise.resolve({ value: undefined, done: true });
156
+ }
157
+ return new Promise((resolve, reject) => {
158
+ this.waiters.push(resolve);
159
+ this.errorWaiters.push(reject);
160
+ });
161
+ }
162
+ /**
163
+ * Async-iterates the queue, yielding items as they are pushed until {@link end} is called.
164
+ */
165
+ async *[Symbol.asyncIterator]() {
166
+ for (;;) {
167
+ const result = await this.next();
168
+ if (result.done) {
169
+ return;
170
+ }
171
+ yield result.value;
172
+ }
173
+ }
174
+ }
175
+ /**
176
+ * Validates local-port selection options for a live stream session.
177
+ *
178
+ * @param opts - Options containing an optional localPort and/or localPortRange
179
+ * @throws {TypeError} If both localPort and localPortRange are provided, or either is malformed
180
+ */
181
+ export function validateLocalPortOpts(opts) {
182
+ const { localPort, localPortRange } = opts;
183
+ if (localPort !== undefined && localPortRange !== undefined) {
184
+ throw new TypeError('Only one of localPort or localPortRange may be provided');
185
+ }
186
+ if (localPort !== undefined && (!Number.isInteger(localPort) || localPort < 1 || localPort > 65535)) {
187
+ throw new TypeError(`localPort must be an integer between 1 and 65535, got ${localPort}`);
188
+ }
189
+ if (localPortRange !== undefined) {
190
+ const [min, max] = localPortRange;
191
+ if (!Number.isInteger(min) || !Number.isInteger(max) || min < 1 || max > 65535 || min > max) {
192
+ throw new TypeError(`localPortRange must be a [min, max] tuple with 1 <= min <= max <= 65535, got [${min}, ${max}]`);
193
+ }
194
+ }
195
+ }
196
+ /**
197
+ * Tries to bind a local TCP server to `port` (0 lets the OS pick an ephemeral one),
198
+ * immediately closes it, and returns the bound port - or `null` if `port` is already
199
+ * in use (EADDRINUSE/EACCES), so the caller can try another candidate.
200
+ */
201
+ async function tryBindPort(port) {
202
+ return new Promise((resolve, reject) => {
203
+ const server = net.createServer();
204
+ server.unref();
205
+ server.once('error', (err) => {
206
+ if (err.code === 'EADDRINUSE' || err.code === 'EACCES') {
207
+ resolve(null);
208
+ }
209
+ else {
210
+ reject(err);
211
+ }
212
+ });
213
+ server.listen(port, '127.0.0.1', () => {
214
+ const address = server.address();
215
+ const boundPort = address && typeof address === 'object' ? address.port : null;
216
+ server.close(() => {
217
+ if (boundPort) {
218
+ resolve(boundPort);
219
+ }
220
+ else {
221
+ reject(new Error('Unable to determine a free local port'));
222
+ }
223
+ });
224
+ });
225
+ });
226
+ }
227
+ /**
228
+ * Resolves the local TCP port to use for the `adb forward` bridge: the exact
229
+ * `localPort` if given, the first free port in `localPortRange` if given, or an
230
+ * OS-assigned ephemeral port otherwise.
231
+ *
232
+ * @param opts - Port selection options; see {@link validateLocalPortOpts}
233
+ * @returns The bound, free local TCP port
234
+ * @throws {Error} If the requested port is busy, or no free port exists in the requested range
235
+ */
236
+ export async function resolveLocalPort(opts) {
237
+ const { localPort, localPortRange } = opts;
238
+ if (localPort !== undefined) {
239
+ const bound = await tryBindPort(localPort);
240
+ if (bound === null) {
241
+ throw new Error(`Local port ${localPort} is already in use`);
242
+ }
243
+ return bound;
244
+ }
245
+ if (localPortRange) {
246
+ const [min, max] = localPortRange;
247
+ for (let port = min; port <= max; port++) {
248
+ const bound = await tryBindPort(port);
249
+ if (bound !== null) {
250
+ return bound;
251
+ }
252
+ }
253
+ throw new Error(`No free local port found in range ${min}-${max}`);
254
+ }
255
+ // No preference given - let the OS assign an ephemeral port.
256
+ const bound = await tryBindPort(0);
257
+ if (bound === null) {
258
+ throw new Error('Unable to determine a free local port');
259
+ }
260
+ return bound;
261
+ }
262
+ async function connectOnce(port) {
263
+ return new Promise((resolve, reject) => {
264
+ const socket = net.connect(port, '127.0.0.1');
265
+ let settled = false;
266
+ let verifyTimer;
267
+ const cleanup = () => {
268
+ socket.removeListener('error', onError);
269
+ socket.removeListener('close', onClose);
270
+ clearTimeout(verifyTimer);
271
+ };
272
+ const onError = (err) => {
273
+ if (settled) {
274
+ return;
275
+ }
276
+ settled = true;
277
+ cleanup();
278
+ socket.destroy();
279
+ reject(err);
280
+ };
281
+ const onClose = () => {
282
+ if (settled) {
283
+ return;
284
+ }
285
+ settled = true;
286
+ cleanup();
287
+ reject(new Error('Connection was closed before the on-device stream became ready'));
288
+ };
289
+ socket.once('error', onError);
290
+ socket.once('close', onClose);
291
+ socket.once('connect', () => {
292
+ verifyTimer = setTimeout(() => {
293
+ if (settled) {
294
+ return;
295
+ }
296
+ settled = true;
297
+ cleanup();
298
+ resolve(socket);
299
+ }, CONNECT_VERIFY_GRACE_MS);
300
+ });
301
+ });
302
+ }
303
+ async function connectWithRetry(port, timeoutMs, intervalMs) {
304
+ const times = Math.max(1, Math.ceil(timeoutMs / intervalMs));
305
+ let socket;
306
+ try {
307
+ socket = await retryInterval(times, intervalMs, connectOnce, port);
308
+ }
309
+ catch (e) {
310
+ throw new Error(`Could not connect to the local streaming socket on port ${port} after ${times} attempts. ` +
311
+ `Last error: ${e instanceof Error ? e.message : e}`, { cause: e });
312
+ }
313
+ if (!socket) {
314
+ throw new Error(`Could not connect to the local streaming socket on port ${port}`);
315
+ }
316
+ return socket;
317
+ }
318
+ /**
319
+ * Bridges the on-device local abstract socket to the host over `adb forward`,
320
+ * parses the streaming wire protocol, and exposes the result as a bounded
321
+ * async-iterable frame queue.
322
+ */
323
+ export class StreamTransport {
324
+ adb;
325
+ localPort;
326
+ socket;
327
+ // Config frames (e.g. video SPS/PPS) carry decoder state a consumer needs to make sense
328
+ // of everything that follows, so protect them from the bounded queue's drop-oldest policy.
329
+ // Non-config video frames form a decode-dependency chain (a delta frame is undecodable
330
+ // without every frame back to its last keyframe), so eviction there must cascade up to
331
+ // the next keyframe rather than leaving orphaned, undecodable frames behind - audio
332
+ // frames have no such dependency and are left alone by this either way.
333
+ queue = new BoundedFrameQueue(DEFAULT_QUEUE_CAPACITY, (frame) => frame.isConfig, {
334
+ isChainMember: (frame) => frame.track === StreamTrack.Video && !frame.isConfig,
335
+ isSyncPoint: (frame) => frame.isKeyFrame,
336
+ });
337
+ parserState = createParserState();
338
+ closed = false;
339
+ // Tracks the video track's shared sequence counter (CONFIG and data frames both draw
340
+ // from it) so a gap - meaning the on-device FrameQueue dropped a frame under
341
+ // backpressure before we ever saw it - can be detected on receipt, not just when our
342
+ // own queue evicts something locally.
343
+ lastVideoSequence;
344
+ constructor(adb, localPort, socket) {
345
+ this.adb = adb;
346
+ this.localPort = localPort;
347
+ this.socket = socket;
348
+ }
349
+ /**
350
+ * Resolves a local port, forwards it to the on-device local abstract socket via
351
+ * `adb forward`, and connects to it (retrying until the on-device session accepts).
352
+ * On failure, any port forward that was already set up is best-effort removed.
353
+ *
354
+ * @param adb - ADB instance for device communication
355
+ * @param socketName - Name of the on-device local abstract socket to forward
356
+ * @param portOpts - Optional local port selection options
357
+ * @returns A connected StreamTransport instance
358
+ * @throws {Error} If the local port cannot be resolved, or the connection fails
359
+ */
360
+ static async connect(adb, socketName, portOpts = {}) {
361
+ const localPort = await resolveLocalPort(portOpts);
362
+ await adb.forwardAbstractPort(localPort, socketName);
363
+ let socket;
364
+ try {
365
+ socket = await connectWithRetry(localPort, CONNECT_TIMEOUT_MS, CONNECT_RETRY_INTERVAL_MS);
366
+ }
367
+ catch (e) {
368
+ await adb.removePortForward(localPort).catch(() => { });
369
+ throw e;
370
+ }
371
+ const transport = new StreamTransport(adb, localPort, socket);
372
+ transport.wire();
373
+ return transport;
374
+ }
375
+ wire() {
376
+ this.socket.on('data', (chunk) => {
377
+ try {
378
+ for (const frame of parseFrames(this.parserState, chunk)) {
379
+ if (frame.track === StreamTrack.Video) {
380
+ if (this.lastVideoSequence !== undefined && frame.sequence !== this.lastVideoSequence + 1n) {
381
+ this.queue.notifyGap();
382
+ }
383
+ this.lastVideoSequence = frame.sequence;
384
+ }
385
+ this.queue.push(frame);
386
+ }
387
+ }
388
+ catch (e) {
389
+ this.queue.end(e instanceof Error ? e : new Error(String(e)));
390
+ this.socket.destroy();
391
+ }
392
+ });
393
+ this.socket.on('close', () => this.queue.end());
394
+ this.socket.on('error', (err) => this.queue.end(err));
395
+ }
396
+ /**
397
+ * Returns an async generator yielding parsed frames as they arrive on the socket,
398
+ * until the connection closes or errors.
399
+ */
400
+ frames() {
401
+ return this.queue[Symbol.asyncIterator]();
402
+ }
403
+ /**
404
+ * Destroys the client socket and best-effort removes the `adb forward` port
405
+ * mapping. Safe to call more than once.
406
+ */
407
+ async close() {
408
+ if (this.closed) {
409
+ return;
410
+ }
411
+ this.closed = true;
412
+ this.socket.destroy();
413
+ await this.adb.removePortForward(this.localPort).catch(() => { });
414
+ }
415
+ }
416
+ //# sourceMappingURL=streaming-transport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming-transport.js","sourceRoot":"","sources":["../../../lib/utils/streaming-transport.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAG3B,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAGvC,OAAO,EAAC,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAmB,MAAM,yBAAyB,CAAC;AAEtG,MAAM,sBAAsB,GAAG,EAA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;QACtB,MAAM,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IACnE,CAAC;CACF"}
@@ -6,6 +6,7 @@ import {setAnimationState} from './commands/animation.js';
6
6
  import {setBluetoothState, unpairAllBluetoothDevices} from './commands/bluetooth.js';
7
7
  import {getClipboard} from './commands/clipboard.js';
8
8
  import {setGeoLocation, getGeoLocation, refreshGeoLocationCache} from './commands/geolocation.js';
9
+ import {makeJpegStreamSession} from './commands/jpeg-stream.js';
9
10
  import {setDeviceLocale, listSupportedLocales} from './commands/locale.js';
10
11
  import {makeMediaProjectionRecorder, adjustMediaProjectionServicePermissions} from './commands/media-projection.js';
11
12
  import {scanMedia} from './commands/media.js';
@@ -13,6 +14,7 @@ import {setDataState, setWifiState} from './commands/network.js';
13
14
  import {getNotifications, adjustNotificationsPermissions} from './commands/notifications.js';
14
15
  import {getSmsList} from './commands/sms.js';
15
16
  import {performEditorAction, typeUnicode} from './commands/typing.js';
17
+ import {makeVideoStreamSession} from './commands/video-stream.js';
16
18
  import {SETTINGS_HELPER_ID, SETTINGS_HELPER_MAIN_ACTIVITY} from './constants.js';
17
19
  import {log, LOG_PREFIX} from './logger.js';
18
20
 
@@ -62,6 +64,9 @@ export class SettingsApp {
62
64
  makeMediaProjectionRecorder = makeMediaProjectionRecorder;
63
65
  adjustMediaProjectionServicePermissions = adjustMediaProjectionServicePermissions;
64
66
 
67
+ makeJpegStreamSession = makeJpegStreamSession;
68
+ makeVideoStreamSession = makeVideoStreamSession;
69
+
65
70
  constructor(opts: SettingsAppOpts) {
66
71
  this.adb = opts.adb;
67
72
  this.log = log;
@@ -33,6 +33,7 @@ export async function getClipboard(this: SettingsApp): Promise<string> {
33
33
  `Cannot retrieve the current clipboard content from the device. ` +
34
34
  `Make sure the Appium Settings application is up to date. ` +
35
35
  `Original error: ${err.message}`,
36
+ {cause: err},
36
37
  );
37
38
  }
38
39