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
@@ -35,6 +35,71 @@ export interface StartMediaProjectionRecordingOpts {
35
35
  * invalid file name will fail to start the recording. */
36
36
  filename?: string;
37
37
  }
38
+ /**
39
+ * Options for choosing the local TCP port used to bridge a live stream's
40
+ * on-device socket to the host via `adb forward`. At most one of these may be
41
+ * provided; if neither is given, an OS-assigned ephemeral port is used.
42
+ */
43
+ export interface LocalPortOpts {
44
+ /** Use this exact local TCP port. Throws if it's already in use. */
45
+ localPort?: number;
46
+ /** Pick the first free local TCP port from this inclusive [min, max] range. */
47
+ localPortRange?: [number, number];
48
+ }
49
+ /**
50
+ * Options for starting a live JPEG frame streaming session.
51
+ */
52
+ export interface StartJpegStreamOpts extends LocalPortOpts {
53
+ /** Frames per second requested; actual rate may be lower on constrained devices. Default 60. */
54
+ fps?: number;
55
+ /** JPEG quality, 1-100. Default 80. */
56
+ quality?: number;
57
+ /** Percentage (1-100) to scale the captured frame to before JPEG encoding. Default 100. */
58
+ scale?: number;
59
+ }
60
+ /**
61
+ * Options for starting a live H.264/HEVC video streaming session.
62
+ */
63
+ export interface StartVideoStreamOpts extends LocalPortOpts {
64
+ /** Default 'h264'. */
65
+ codec?: 'h264' | 'hevc';
66
+ /** Default 30. */
67
+ fps?: number;
68
+ /** Default 4000000 (4 Mbps). */
69
+ bitrate?: number;
70
+ /** Same "WxH" syntax/allowed values as StartMediaProjectionRecordingOpts.resolution. */
71
+ resolution?: string;
72
+ /** Interleave an AAC audio track captured via AudioPlaybackCaptureConfiguration. Default false. */
73
+ audio?: boolean;
74
+ }
75
+ /**
76
+ * A single JPEG-encoded frame of the device screen.
77
+ */
78
+ export interface JpegFrame {
79
+ /** The raw JPEG-encoded image bytes. */
80
+ data: Buffer;
81
+ /** Monotonically increasing frame sequence number. */
82
+ sequence: number;
83
+ /** Frame timestamp, in microseconds since the stream session started. */
84
+ timestampMicros: number;
85
+ }
86
+ /**
87
+ * A single encoded access unit from a live video stream: either a video NAL
88
+ * unit (Annex-B, H.264/HEVC) or an AAC audio unit (ADTS-framed).
89
+ */
90
+ export interface AccessUnit {
91
+ track: 'video' | 'audio';
92
+ /** The raw access unit bytes. */
93
+ data: Buffer;
94
+ /** Monotonically increasing sequence number, per track. */
95
+ sequence: number;
96
+ /** Presentation timestamp, in microseconds since the stream session started. */
97
+ timestampMicros: number;
98
+ /** Whether this is a video keyframe (always false for audio units). */
99
+ isKeyFrame: boolean;
100
+ /** Whether this unit carries codec configuration data (e.g. SPS/PPS) rather than actual samples. */
101
+ isConfig: boolean;
102
+ }
38
103
  /**
39
104
  * Supported locale information.
40
105
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/commands/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,2GAA2G;IAC3G,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,+GAA+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AAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,56 @@
1
+ import type { ADB } from 'appium-adb';
2
+ import type { SettingsApp } from '../client.js';
3
+ import type { AccessUnit, StartVideoStreamOpts } from './types.js';
4
+ /**
5
+ * Creates a new instance of the live H.264/HEVC video streaming session.
6
+ * The stream only works since Android API 29+
7
+ *
8
+ * @returns The streaming session instance
9
+ */
10
+ export declare function makeVideoStreamSession(this: SettingsApp): VideoStreamSession;
11
+ /**
12
+ * Live H.264/HEVC video streaming session for the device screen, with an
13
+ * optional interleaved AAC audio track.
14
+ */
15
+ export declare class VideoStreamSession {
16
+ private readonly adb;
17
+ private transport;
18
+ /**
19
+ * Creates a new VideoStreamSession instance.
20
+ *
21
+ * @param adb - ADB instance for device communication
22
+ */
23
+ constructor(adb: ADB);
24
+ /**
25
+ * Checks if the video stream is currently running.
26
+ */
27
+ isRunning(): Promise<boolean>;
28
+ /**
29
+ * Starts the live video stream.
30
+ * If a stream is already running, this method returns false without starting a new one.
31
+ *
32
+ * @param opts Streaming options including codec, fps, bitrate, resolution, audio, and the local port to use
33
+ * @returns True if the stream was started successfully, false if already running
34
+ * @throws {Error} If the stream fails to start within the timeout period
35
+ */
36
+ start(opts?: StartVideoStreamOpts): Promise<boolean>;
37
+ /**
38
+ * Yields access units (video NAL units and, if enabled, AAC audio units) as
39
+ * they arrive from the device. `start()` must be called before iterating.
40
+ *
41
+ * A CONFIG unit is normally seen only once, at the start of the stream, but a
42
+ * device rotation makes the on-device encoder restart mid-stream: a second (or
43
+ * later) CONFIG unit means the video's dimensions changed and the decoder must be
44
+ * reconfigured with these new SPS/PPS bytes, not treated as an error. `sequence`
45
+ * keeps increasing across such a restart, it is never reset.
46
+ */
47
+ accessUnits(): AsyncGenerator<AccessUnit>;
48
+ /**
49
+ * Stops the currently running video stream.
50
+ *
51
+ * @returns True if the stream was stopped successfully, false if it was not running
52
+ * @throws {Error} If the stream fails to stop within the timeout period
53
+ */
54
+ stop(): Promise<boolean>;
55
+ }
56
+ //# sourceMappingURL=video-stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-stream.d.ts","sourceRoot":"","sources":["../../../lib/commands/video-stream.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAS9C,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,YAAY,CAAC;AAKjE;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,GAAG,kBAAkB,CAE5E;AAgBD;;;GAGG;AACH,qBAAa,kBAAkB;IAQjB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAPhC,OAAO,CAAC,SAAS,CAAgC;IAEjD;;;;OAIG;gBAC0B,GAAG,EAAE,GAAG;IAErC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAKnC;;;;;;;OAOG;IACG,KAAK,CAAC,IAAI,GAAE,oBAAyB,GAAG,OAAO,CAAC,OAAO,CAAC;IAsD9D;;;;;;;;;OASG;IACI,WAAW,IAAI,cAAc,CAAC,UAAU,CAAC;IAgBhD;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;CAyB/B"}
@@ -0,0 +1,166 @@
1
+ import { randomUUID } from 'node:crypto';
2
+ import { waitForCondition } from 'asyncbox';
3
+ import { SETTINGS_HELPER_ID, STREAMING_ACTIVITY_NAME, VIDEO_STREAM_ACTION_START, VIDEO_STREAM_ACTION_STOP, VIDEO_STREAM_SERVICE_NAME, } from '../constants.js';
4
+ import { StreamTrack, StreamTransport, validateLocalPortOpts } from '../utils/index.js';
5
+ const STREAM_STARTUP_TIMEOUT_MS = 10 * 1000;
6
+ const STREAM_STOP_TIMEOUT_MS = 3 * 1000;
7
+ /**
8
+ * Creates a new instance of the live H.264/HEVC video streaming session.
9
+ * The stream only works since Android API 29+
10
+ *
11
+ * @returns The streaming session instance
12
+ */
13
+ export function makeVideoStreamSession() {
14
+ return new VideoStreamSession(this.adb);
15
+ }
16
+ function validateVideoStreamOpts(opts) {
17
+ const { codec, fps, bitrate } = opts;
18
+ if (codec !== undefined && codec !== 'h264' && codec !== 'hevc') {
19
+ throw new TypeError(`codec must be either 'h264' or 'hevc', got ${codec}`);
20
+ }
21
+ if (fps !== undefined && (!Number.isInteger(fps) || fps <= 0)) {
22
+ throw new TypeError(`fps must be a positive integer, got ${fps}`);
23
+ }
24
+ if (bitrate !== undefined && (!Number.isInteger(bitrate) || bitrate <= 0)) {
25
+ throw new TypeError(`bitrate must be a positive integer, got ${bitrate}`);
26
+ }
27
+ validateLocalPortOpts(opts);
28
+ }
29
+ /**
30
+ * Live H.264/HEVC video streaming session for the device screen, with an
31
+ * optional interleaved AAC audio track.
32
+ */
33
+ export class VideoStreamSession {
34
+ adb;
35
+ transport = null;
36
+ /**
37
+ * Creates a new VideoStreamSession instance.
38
+ *
39
+ * @param adb - ADB instance for device communication
40
+ */
41
+ constructor(adb) {
42
+ this.adb = adb;
43
+ }
44
+ /**
45
+ * Checks if the video stream is currently running.
46
+ */
47
+ async isRunning() {
48
+ const stdout = await this.adb.shell(['dumpsys', 'activity', 'services', VIDEO_STREAM_SERVICE_NAME]);
49
+ return stdout.includes(VIDEO_STREAM_SERVICE_NAME);
50
+ }
51
+ /**
52
+ * Starts the live video stream.
53
+ * If a stream is already running, this method returns false without starting a new one.
54
+ *
55
+ * @param opts Streaming options including codec, fps, bitrate, resolution, audio, and the local port to use
56
+ * @returns True if the stream was started successfully, false if already running
57
+ * @throws {Error} If the stream fails to start within the timeout period
58
+ */
59
+ async start(opts = {}) {
60
+ validateVideoStreamOpts(opts);
61
+ if (await this.isRunning()) {
62
+ return false;
63
+ }
64
+ const { codec, fps, bitrate, resolution, audio, localPort, localPortRange } = opts;
65
+ // Socket names are validated on-device against ^[a-zA-Z0-9._-]{1,200}$, so this
66
+ // must not contain a "/" - unlike VIDEO_STREAM_SERVICE_NAME.
67
+ const socketName = `${SETTINGS_HELPER_ID}.videostream.${randomUUID()}`;
68
+ const args = [
69
+ 'am',
70
+ 'start',
71
+ '-n',
72
+ STREAMING_ACTIVITY_NAME,
73
+ '-a',
74
+ VIDEO_STREAM_ACTION_START,
75
+ '--es',
76
+ 'socket_name',
77
+ socketName,
78
+ ];
79
+ if (codec) {
80
+ args.push('--es', 'codec', codec);
81
+ }
82
+ if (fps) {
83
+ args.push('--es', 'fps', `${fps}`);
84
+ }
85
+ if (bitrate) {
86
+ args.push('--es', 'bitrate', `${bitrate}`);
87
+ }
88
+ if (resolution) {
89
+ args.push('--es', 'resolution', resolution);
90
+ }
91
+ if (audio !== undefined) {
92
+ args.push('--es', 'audio', audio ? 'true' : 'false');
93
+ }
94
+ await this.adb.shell(args);
95
+ try {
96
+ await waitForCondition(async () => await this.isRunning(), {
97
+ waitMs: STREAM_STARTUP_TIMEOUT_MS,
98
+ intervalMs: 300,
99
+ });
100
+ }
101
+ catch {
102
+ throw new Error(`The video stream is not running after ${STREAM_STARTUP_TIMEOUT_MS}ms. ` +
103
+ `Please check the logcat output for more details.`);
104
+ }
105
+ this.transport = await StreamTransport.connect(this.adb, socketName, { localPort, localPortRange });
106
+ return true;
107
+ }
108
+ /**
109
+ * Yields access units (video NAL units and, if enabled, AAC audio units) as
110
+ * they arrive from the device. `start()` must be called before iterating.
111
+ *
112
+ * A CONFIG unit is normally seen only once, at the start of the stream, but a
113
+ * device rotation makes the on-device encoder restart mid-stream: a second (or
114
+ * later) CONFIG unit means the video's dimensions changed and the decoder must be
115
+ * reconfigured with these new SPS/PPS bytes, not treated as an error. `sequence`
116
+ * keeps increasing across such a restart, it is never reset.
117
+ */
118
+ async *accessUnits() {
119
+ if (!this.transport) {
120
+ throw new Error('The video stream has not been started. Call start() first.');
121
+ }
122
+ for await (const frame of this.transport.frames()) {
123
+ yield {
124
+ track: frame.track === StreamTrack.Audio ? 'audio' : 'video',
125
+ data: frame.data,
126
+ sequence: Number(frame.sequence),
127
+ timestampMicros: Number(frame.timestampMicros),
128
+ isKeyFrame: frame.isKeyFrame,
129
+ isConfig: frame.isConfig,
130
+ };
131
+ }
132
+ }
133
+ /**
134
+ * Stops the currently running video stream.
135
+ *
136
+ * @returns True if the stream was stopped successfully, false if it was not running
137
+ * @throws {Error} If the stream fails to stop within the timeout period
138
+ */
139
+ async stop() {
140
+ try {
141
+ if (!(await this.isRunning())) {
142
+ // The on-device service may have already stopped itself (e.g. the client
143
+ // disconnected), leaving a local transport/adb-forward that still needs closing.
144
+ return false;
145
+ }
146
+ await this.adb.shell(['am', 'start', '-n', STREAMING_ACTIVITY_NAME, '-a', VIDEO_STREAM_ACTION_STOP]);
147
+ try {
148
+ await waitForCondition(async () => !(await this.isRunning()), {
149
+ waitMs: STREAM_STOP_TIMEOUT_MS,
150
+ intervalMs: 300,
151
+ });
152
+ }
153
+ catch {
154
+ throw new Error(`The attempt to stop the current video stream timed out after ${STREAM_STOP_TIMEOUT_MS}ms`);
155
+ }
156
+ return true;
157
+ }
158
+ finally {
159
+ if (this.transport) {
160
+ await this.transport.close();
161
+ this.transport = null;
162
+ }
163
+ }
164
+ }
165
+ }
166
+ //# sourceMappingURL=video-stream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-stream.js","sourceRoot":"","sources":["../../../lib/commands/video-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAGvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAG1C,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,GAC1B,MA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9C,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;aACzB,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI;QACR,IAAI,CAAC;YACH,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC;gBAC9B,yEAAyE;gBACzE,iFAAiF;gBACjF,OAAO,KAAK,CAAC;YACf,CAAC;YAED,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,wBAAwB,CAAC,CAAC,CAAC;YACrG,IAAI,CAAC;gBACH,MAAM,gBAAgB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE;oBAC5D,MAAM,EAAE,sBAAsB;oBAC9B,UAAU,EAAE,GAAG;iBAChB,CAAC,CAAC;YACL,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,IAAI,KAAK,CAAC,gEAAgE,sBAAsB,IAAI,CAAC,CAAC;YAC9G,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;gBAAS,CAAC;YACT,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACnB,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;gBAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
@@ -30,4 +30,11 @@ export declare const RECORDING_SERVICE_NAME = "io.appium.settings/.recorder.Reco
30
30
  export declare const RECORDING_ACTIVITY_NAME = "io.appium.settings/io.appium.settings.Settings";
31
31
  export declare const RECORDING_ACTION_START = "io.appium.settings.recording.ACTION_START";
32
32
  export declare const RECORDING_ACTION_STOP = "io.appium.settings.recording.ACTION_STOP";
33
+ export declare const STREAMING_ACTIVITY_NAME = "io.appium.settings/io.appium.settings.Settings";
34
+ export declare const JPEG_STREAM_SERVICE_NAME = "io.appium.settings/.streaming.JpegStreamService";
35
+ export declare const JPEG_STREAM_ACTION_START = "io.appium.settings.streaming.jpeg.ACTION_START";
36
+ export declare const JPEG_STREAM_ACTION_STOP = "io.appium.settings.streaming.jpeg.ACTION_STOP";
37
+ export declare const VIDEO_STREAM_SERVICE_NAME = "io.appium.settings/.streaming.VideoStreamService";
38
+ export declare const VIDEO_STREAM_ACTION_START = "io.appium.settings.streaming.video.ACTION_START";
39
+ export declare const VIDEO_STREAM_ACTION_STOP = "io.appium.settings.streaming.video.ACTION_STOP";
33
40
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../lib/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAIzD,eAAO,MAAM,kBAAkB,oDAAuC,CAAC;AACvE,eAAO,MAAM,0BAA0B,qCAAwC,CAAC;AAEhF,eAAO,MAAM,UAAU,kCAAqC,CAAC;AAC7D,eAAO,MAAM,WAAW,mCAAsC,CAAC;AAC/D,eAAO,MAAM,SAAS,iCAAoC,CAAC;AAE3D,eAAO,MAAM,gCAAgC,gEAAmD,CAAC;AACjG,eAAO,MAAM,8BAA8B,4BAA+B,CAAC;AAC3E,eAAO,MAAM,0BAA0B,qEAAwD,CAAC;AAChG,eAAO,MAAM,wBAAwB,iCAAoC,CAAC;AAC1E,eAAO,MAAM,yBAAyB,iEAAoD,CAAC;AAC3F,eAAO,MAAM,uBAAuB,wCAA2C,CAAC;AAEhF,eAAO,MAAM,0BAA0B,2DAA8C,CAAC;AACtF,eAAO,MAAM,wBAAwB,iCAAoC,CAAC;AAE1E,eAAO,MAAM,uBAAuB,wDAA2C,CAAC;AAChF,eAAO,MAAM,qBAAqB,8BAAiC,CAAC;AAEpE,eAA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MAAM,0BAA0B,2DAA8C,CAAC;AACtF,eAAO,MAAM,wBAAwB,iCAAoC,CAAC;AAE1E,eAAO,MAAM,uBAAuB,wDAA2C,CAAC;AAChF,eAAO,MAAM,qBAAqB,8BAAiC,CAAC;AAEpE,eAAO,MAAM,6BAA6B,gDAAmC,CAAC;AAC9E,eAAO,MAAM,2BAA2B,oCAAuC,CAAC;AAEhF,eAAO,MAAM,gBAAgB,wCAA2C,CAAC;AACzE,eAAO,MAAM,iBAAiB,uDAA0C,CAAC;AACzE,eAAO,MAAM,yBAAyB,gCAAmC,CAAC;AAE1E,eAAO,MAAM,iBAAiB,4CAA+B,CAAC;AAC9D,eAAO,MAAM,yBAAyB,gCAAmC,CAAC;AAE1E,eAAO,MAAM,mBAAmB,uDAA0C,CAAC;AAC3E,eAAO,MAAM,iBAAiB,kCAAqC,CAAC;AAEpE,eAAO,MAAM,sCAAsC,kCAAqC,CAAC;AACzF,eAAO,MAAM,8BAA8B,qCAAwC,CAAC;AAEpF,eAAO,MAAM,sBAAsB,iDAAoD,CAAC;AACxF,eAAO,MAAM,uBAAuB,mDAAsD,CAAC;AAC3F,eAAO,MAAM,sBAAsB,8CAAiD,CAAC;AACrF,eAAO,MAAM,qBAAqB,6CAAgD,CAAC;AAEnF,eAAO,MAAM,uBAAuB,mDAA0B,CAAC;AAE/D,eAAO,MAAM,wBAAwB,oDAAuD,CAAC;AAC7F,eAAO,MAAM,wBAAwB,mDAAsD,CAAC;AAC5F,eAAO,MAAM,uBAAuB,kDAAqD,CAAC;AAE1F,eAAO,MAAM,yBAAyB,qDAAwD,CAAC;AAC/F,eAAO,MAAM,yBAAyB,oDAAuD,CAAC;AAC9F,eAAO,MAAM,wBAAwB,mDAAsD,CAAC"}
@@ -31,4 +31,11 @@ export const RECORDING_SERVICE_NAME = `${SETTINGS_HELPER_ID}/.recorder.RecorderS
31
31
  export const RECORDING_ACTIVITY_NAME = `${SETTINGS_HELPER_ID}/io.appium.settings.Settings`;
32
32
  export const RECORDING_ACTION_START = `${SETTINGS_HELPER_ID}.recording.ACTION_START`;
33
33
  export const RECORDING_ACTION_STOP = `${SETTINGS_HELPER_ID}.recording.ACTION_STOP`;
34
+ export const STREAMING_ACTIVITY_NAME = RECORDING_ACTIVITY_NAME;
35
+ export const JPEG_STREAM_SERVICE_NAME = `${SETTINGS_HELPER_ID}/.streaming.JpegStreamService`;
36
+ export const JPEG_STREAM_ACTION_START = `${SETTINGS_HELPER_ID}.streaming.jpeg.ACTION_START`;
37
+ export const JPEG_STREAM_ACTION_STOP = `${SETTINGS_HELPER_ID}.streaming.jpeg.ACTION_STOP`;
38
+ export const VIDEO_STREAM_SERVICE_NAME = `${SETTINGS_HELPER_ID}/.streaming.VideoStreamService`;
39
+ export const VIDEO_STREAM_ACTION_START = `${SETTINGS_HELPER_ID}.streaming.video.ACTION_START`;
40
+ export const VIDEO_STREAM_ACTION_STOP = `${SETTINGS_HELPER_ID}.streaming.video.ACTION_STOP`;
34
41
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../lib/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AACvD,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAW,CAAC;AAEzD,MAAM,aAAa,GAAG,GAAG,kBAAkB,aAAa,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,aAAa,oBAAoB,CAAC;AACvE,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,kBAAkB,gBAAgB,CAAC;AAEhF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,kBAAkB,aAAa,CAAC;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,kBAAkB,cAAc,CAAC;AAC/D,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,kBAAkB,YAAY,CAAC;AAE3D,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,aA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AC,MAAM,sBAAsB,GAAG,GAAG,kBAAkB,yBAAyB,CAAC;AACrF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,kBAAkB,wBAAwB,CAAC;AAEnF,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;AAE/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,kBAAkB,+BAA+B,CAAC;AAC7F,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,kBAAkB,8BAA8B,CAAC;AAC5F,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,kBAAkB,6BAA6B,CAAC;AAE1F,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,kBAAkB,gCAAgC,CAAC;AAC/F,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,kBAAkB,+BAA+B,CAAC;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,kBAAkB,8BAA8B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { getSettingsApkPath } from './utils.js';
1
+ import { getSettingsApkPath } from './utils/index.js';
2
2
  export const path = getSettingsApkPath();
3
3
  export * from './constants.js';
4
4
  export { SettingsApp } from './client.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,YAAY,CAAC;AAE9C,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,EAAE,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,EAAE,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC"}
@@ -4,4 +4,4 @@
4
4
  * @returns Full path to the APK file
5
5
  */
6
6
  export declare function getSettingsApkPath(): string;
7
- //# sourceMappingURL=utils.d.ts.map
7
+ //# sourceMappingURL=apk-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apk-path.d.ts","sourceRoot":"","sources":["../../../lib/utils/apk-path.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
@@ -32,4 +32,4 @@ function getModuleRootSync() {
32
32
  }
33
33
  throw new Error(`Cannot find the root of the ${MODULE_NAME} Node.js module`);
34
34
  }
35
- //# sourceMappingURL=utils.js.map
35
+ //# sourceMappingURL=apk-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apk-path.js","sourceRoot":"","sources":["../../../lib/utils/apk-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAEzC;;;;GAIG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;GAKG;AACH,SAAS,iBAAiB;IACxB,IAAI,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9D,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,OAAO,CAAC,UAAU,EAAE,CAAC;QACnB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3D,IAAI,CAAC;YACH,IAAI,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;gBAC1G,OAAO,UAAU,CAAC;YACpB,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QACV,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACtC,UAAU,GAAG,UAAU,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;IACpE,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,+BAA+B,WAAW,iBAAiB,CAAC,CAAC;AAC/E,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { getSettingsApkPath } from './apk-path.js';
2
+ export { createParserState, parseFrames, StreamTrack } from './streaming-protocol.js';
3
+ export type { FrameParserState, StreamFrame } from './streaming-protocol.js';
4
+ export { BoundedFrameQueue, resolveLocalPort, StreamTransport, validateLocalPortOpts } from './streaming-transport.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpF,YAAY,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAC,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { getSettingsApkPath } from './apk-path.js';
2
+ export { createParserState, parseFrames, StreamTrack } from './streaming-protocol.js';
3
+ export { BoundedFrameQueue, resolveLocalPort, StreamTransport, validateLocalPortOpts } from './streaming-transport.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAEpF,OAAO,EAAC,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAC,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Track discriminator for a streamed frame, matching the on-device
3
+ * `io.appium.settings.streaming.Frame.Track` enum ordinals.
4
+ */
5
+ export declare enum StreamTrack {
6
+ Jpeg = 0,
7
+ Video = 1,
8
+ Audio = 2
9
+ }
10
+ /**
11
+ * A single parsed frame/access-unit read off the streaming socket.
12
+ */
13
+ export interface StreamFrame {
14
+ track: StreamTrack;
15
+ sequence: bigint;
16
+ timestampMicros: bigint;
17
+ data: Buffer;
18
+ isConfig: boolean;
19
+ isKeyFrame: boolean;
20
+ isEndOfStream: boolean;
21
+ }
22
+ /**
23
+ * Incremental parser state, carried across chunk boundaries.
24
+ */
25
+ export interface FrameParserState {
26
+ buf: Buffer;
27
+ }
28
+ /**
29
+ * Creates a fresh, empty parser state for use with {@link parseFrames}.
30
+ *
31
+ * @returns A new, empty FrameParserState
32
+ */
33
+ export declare function createParserState(): FrameParserState;
34
+ /**
35
+ * Parses as many complete frames as are available in `state.buf` + `chunk`,
36
+ * carrying over any trailing partial frame in `state` for the next call.
37
+ *
38
+ * Wire format (big-endian, matches `io.appium.settings.streaming.StreamProtocol`):
39
+ * offset 0 (4 bytes): magic "APST"; offset 4 (1 byte): version;
40
+ * offset 5 (1 byte): track; offset 6 (1 byte): flags; offset 7: reserved;
41
+ * offset 8 (8 bytes): sequence; offset 16 (8 bytes): timestampMicros;
42
+ * offset 24 (4 bytes): payloadLength; followed by `payloadLength` payload bytes.
43
+ *
44
+ * @throws {Error} If the stream desynchronizes (unexpected magic bytes)
45
+ */
46
+ export declare function parseFrames(state: FrameParserState, chunk: Buffer): Generator<StreamFrame>;
47
+ //# sourceMappingURL=streaming-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming-protocol.d.ts","sourceRoot":"","sources":["../../../lib/utils/streaming-protocol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,WAAW;IACrB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,KAAK,IAAI;CACV;AAMD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB;AAKD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,gBAAgB,CAEpD;AAED;;;;;;;;;;;GAWG;AACH,wBAAiB,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,CAkC3F"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Track discriminator for a streamed frame, matching the on-device
3
+ * `io.appium.settings.streaming.Frame.Track` enum ordinals.
4
+ */
5
+ export var StreamTrack;
6
+ (function (StreamTrack) {
7
+ StreamTrack[StreamTrack["Jpeg"] = 0] = "Jpeg";
8
+ StreamTrack[StreamTrack["Video"] = 1] = "Video";
9
+ StreamTrack[StreamTrack["Audio"] = 2] = "Audio";
10
+ })(StreamTrack || (StreamTrack = {}));
11
+ const FLAG_CONFIG = 0x01;
12
+ const FLAG_KEYFRAME = 0x02;
13
+ const FLAG_EOS = 0x04;
14
+ const HEADER_SIZE = 28;
15
+ const MAGIC = Buffer.from('APST', 'ascii');
16
+ /**
17
+ * Creates a fresh, empty parser state for use with {@link parseFrames}.
18
+ *
19
+ * @returns A new, empty FrameParserState
20
+ */
21
+ export function createParserState() {
22
+ return { buf: Buffer.alloc(0) };
23
+ }
24
+ /**
25
+ * Parses as many complete frames as are available in `state.buf` + `chunk`,
26
+ * carrying over any trailing partial frame in `state` for the next call.
27
+ *
28
+ * Wire format (big-endian, matches `io.appium.settings.streaming.StreamProtocol`):
29
+ * offset 0 (4 bytes): magic "APST"; offset 4 (1 byte): version;
30
+ * offset 5 (1 byte): track; offset 6 (1 byte): flags; offset 7: reserved;
31
+ * offset 8 (8 bytes): sequence; offset 16 (8 bytes): timestampMicros;
32
+ * offset 24 (4 bytes): payloadLength; followed by `payloadLength` payload bytes.
33
+ *
34
+ * @throws {Error} If the stream desynchronizes (unexpected magic bytes)
35
+ */
36
+ export function* parseFrames(state, chunk) {
37
+ state.buf = state.buf.length ? Buffer.concat([state.buf, chunk]) : chunk;
38
+ for (;;) {
39
+ if (state.buf.length < HEADER_SIZE) {
40
+ return;
41
+ }
42
+ if (!state.buf.subarray(0, 4).equals(MAGIC)) {
43
+ throw new Error('Stream desynchronized: unexpected magic bytes in the streaming protocol header');
44
+ }
45
+ const payloadLength = state.buf.readUInt32BE(24);
46
+ const totalLength = HEADER_SIZE + payloadLength;
47
+ if (state.buf.length < totalLength) {
48
+ return;
49
+ }
50
+ const track = state.buf.readUInt8(5);
51
+ const flags = state.buf.readUInt8(6);
52
+ const sequence = state.buf.readBigUInt64BE(8);
53
+ const timestampMicros = state.buf.readBigUInt64BE(16);
54
+ const data = Buffer.from(state.buf.subarray(HEADER_SIZE, totalLength));
55
+ state.buf = state.buf.subarray(totalLength);
56
+ yield {
57
+ track,
58
+ sequence,
59
+ timestampMicros,
60
+ data,
61
+ isConfig: (flags & FLAG_CONFIG) !== 0,
62
+ isKeyFrame: (flags & FLAG_KEYFRAME) !== 0,
63
+ isEndOfStream: (flags & FLAG_EOS) !== 0,
64
+ };
65
+ }
66
+ }
67
+ //# sourceMappingURL=streaming-protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming-protocol.js","sourceRoot":"","sources":["../../../lib/utils/streaming-protocol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,6CAAQ,CAAA;IACR,+CAAS,CAAA;IACT,+CAAS,CAAA;AACX,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC;AAetB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAS3C;;;;GAIG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,EAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,SAAS,CAAC,CAAC,WAAW,CAAC,KAAuB,EAAE,KAAa;IACjE,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACzE,SAAS,CAAC;QACR,IAAI,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,WAAW,EAAE,CAAC;YACnC,OAAO;QACT,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CAAC,gFAAgF,CAAC,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