appium-espresso-driver 10.0.3 → 10.2.0

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 (457) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/execute-method-map.d.ts +16 -0
  3. package/build/lib/execute-method-map.d.ts.map +1 -1
  4. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  5. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
  6. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
  7. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
  9. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
  10. package/espresso-server/gradle/libs.versions.toml +2 -0
  11. package/espresso-server/library/build.gradle.kts +3 -0
  12. package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/helpers/ComposeNodeFinder.kt +3 -3
  13. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/exceptions/XPathLookupException.kt +10 -2
  14. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
  15. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ViewFinder.kt +3 -0
  16. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/SourceDocument.kt +4 -21
  17. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/XPathQuery.kt +64 -0
  18. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/viewmatcher/WithXPath.kt +3 -3
  19. package/espresso-server/library/src/test/java/io/appium/espressoserver/test/helpers/XPathQueryTests.kt +101 -0
  20. package/espresso-server/settings.gradle.kts +4 -0
  21. package/node_modules/@appium/base-driver/build/lib/basedriver/helpers/caps.js +1 -1
  22. package/node_modules/@appium/base-driver/lib/basedriver/helpers/caps.ts +1 -1
  23. package/node_modules/@appium/base-driver/package.json +4 -4
  24. package/node_modules/@appium/logger/CHANGELOG.md +37 -0
  25. package/node_modules/@appium/logger/package.json +2 -2
  26. package/node_modules/@appium/schema/package.json +2 -2
  27. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  28. package/node_modules/@appium/support/build/lib/zip.js +11 -11
  29. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  30. package/node_modules/@appium/support/lib/zip.ts +11 -12
  31. package/node_modules/@appium/support/node_modules/teen_process/CHANGELOG.md +1122 -0
  32. package/node_modules/@appium/support/node_modules/teen_process/LICENSE +201 -0
  33. package/node_modules/@appium/support/node_modules/teen_process/README.md +270 -0
  34. package/node_modules/@appium/support/node_modules/teen_process/lib/circular-buffer.ts +60 -0
  35. package/node_modules/@appium/support/node_modules/teen_process/lib/exec.ts +176 -0
  36. package/node_modules/@appium/support/node_modules/teen_process/lib/helpers.ts +45 -0
  37. package/node_modules/@appium/support/node_modules/teen_process/lib/index.ts +4 -0
  38. package/node_modules/@appium/support/node_modules/teen_process/lib/subprocess.ts +358 -0
  39. package/node_modules/@appium/support/node_modules/teen_process/lib/types.ts +83 -0
  40. package/node_modules/@appium/support/node_modules/teen_process/package.json +81 -0
  41. package/node_modules/@appium/support/package.json +5 -5
  42. package/node_modules/@appium/types/package.json +5 -5
  43. package/node_modules/appium-adb/CHANGELOG.md +14 -0
  44. package/node_modules/appium-adb/node_modules/asyncbox/LICENSE +203 -0
  45. package/node_modules/appium-adb/node_modules/asyncbox/README.md +272 -0
  46. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  47. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  48. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  49. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  50. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  51. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  52. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  53. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  54. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  55. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  56. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  57. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  58. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  59. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  60. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.js +10 -0
  61. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.js.map +1 -0
  62. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  63. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  64. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  65. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  66. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  67. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  68. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  69. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  70. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  71. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  72. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  73. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  74. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  75. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  76. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  77. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  78. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  79. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  80. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  81. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  82. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  83. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  84. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  85. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  86. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  87. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  88. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  89. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  90. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  91. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  92. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  93. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  94. package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  95. package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  96. package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  97. package/node_modules/appium-adb/node_modules/asyncbox/lib/index.ts +28 -0
  98. package/node_modules/appium-adb/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  99. package/node_modules/appium-adb/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  100. package/node_modules/appium-adb/node_modules/asyncbox/lib/shared/types.ts +88 -0
  101. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  102. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/retry.ts +61 -0
  103. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  104. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  105. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  106. package/node_modules/appium-adb/node_modules/asyncbox/package.json +60 -0
  107. package/node_modules/appium-adb/package.json +4 -4
  108. package/node_modules/appium-android-driver/CHANGELOG.md +36 -0
  109. package/node_modules/appium-android-driver/README.md +4 -0
  110. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.d.ts +16 -0
  111. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.d.ts.map +1 -0
  112. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.js +42 -0
  113. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.js.map +1 -0
  114. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.d.ts +11 -0
  115. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.d.ts.map +1 -0
  116. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.js +96 -0
  117. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.js.map +1 -0
  118. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts +14 -0
  119. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts.map +1 -0
  120. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js +16 -0
  121. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js.map +1 -0
  122. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts +42 -0
  123. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -0
  124. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +127 -0
  125. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -0
  126. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.d.ts +6 -0
  127. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.d.ts.map +1 -0
  128. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.js +17 -0
  129. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.js.map +1 -0
  130. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.d.ts +12 -0
  131. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.d.ts.map +1 -0
  132. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.js +196 -0
  133. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.js.map +1 -0
  134. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts +65 -0
  135. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts.map +1 -0
  136. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js +339 -0
  137. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js.map +1 -0
  138. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.d.ts +67 -0
  139. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.d.ts.map +1 -0
  140. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.js +2 -0
  141. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.js.map +1 -0
  142. package/node_modules/appium-android-driver/build/lib/driver.d.ts +20 -0
  143. package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
  144. package/node_modules/appium-android-driver/build/lib/driver.js +9 -0
  145. package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
  146. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +16 -0
  147. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
  148. package/node_modules/appium-android-driver/build/lib/execute-method-map.js +16 -0
  149. package/node_modules/appium-android-driver/build/lib/execute-method-map.js.map +1 -1
  150. package/node_modules/appium-android-driver/lib/commands/media-stream/batcher.ts +44 -0
  151. package/node_modules/appium-android-driver/lib/commands/media-stream/capabilities.ts +101 -0
  152. package/node_modules/appium-android-driver/lib/commands/media-stream/constants.ts +15 -0
  153. package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +182 -0
  154. package/node_modules/appium-android-driver/lib/commands/media-stream/jpeg.ts +16 -0
  155. package/node_modules/appium-android-driver/lib/commands/media-stream/sps.ts +208 -0
  156. package/node_modules/appium-android-driver/lib/commands/media-stream/stream.ts +385 -0
  157. package/node_modules/appium-android-driver/lib/commands/media-stream/types.ts +65 -0
  158. package/node_modules/appium-android-driver/lib/driver.ts +16 -0
  159. package/node_modules/appium-android-driver/lib/execute-method-map.ts +17 -0
  160. package/node_modules/appium-android-driver/node_modules/asyncbox/LICENSE +203 -0
  161. package/node_modules/appium-android-driver/node_modules/asyncbox/README.md +272 -0
  162. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  163. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  164. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  165. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  166. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  167. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  168. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  169. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  170. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  171. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  172. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  173. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  174. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  175. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  176. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js +10 -0
  177. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js.map +1 -0
  178. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  179. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  180. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  181. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  182. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  183. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  184. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  185. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  186. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  187. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  188. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  189. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  190. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  191. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  192. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  193. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  194. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  195. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  196. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  197. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  198. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  199. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  200. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  201. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  202. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  203. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  204. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  205. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  206. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  207. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  208. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  209. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  210. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  211. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  212. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  213. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/index.ts +28 -0
  214. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  215. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  216. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/shared/types.ts +88 -0
  217. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  218. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/retry.ts +61 -0
  219. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  220. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  221. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  222. package/node_modules/appium-android-driver/node_modules/asyncbox/package.json +60 -0
  223. package/node_modules/appium-android-driver/package.json +7 -7
  224. package/node_modules/appium-chromedriver/CHANGELOG.md +14 -0
  225. package/node_modules/appium-chromedriver/node_modules/asyncbox/LICENSE +203 -0
  226. package/node_modules/appium-chromedriver/node_modules/asyncbox/README.md +272 -0
  227. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  228. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  229. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  230. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  231. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  232. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  233. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  234. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  235. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  236. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  237. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  238. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  239. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  240. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  241. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js +10 -0
  242. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js.map +1 -0
  243. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  244. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  245. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  246. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  247. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  248. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  249. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  250. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  251. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  252. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  253. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  254. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  255. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  256. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  257. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  258. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  259. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  260. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  261. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  262. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  263. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  264. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  265. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  266. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  267. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  268. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  269. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  270. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  271. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  272. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  273. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  274. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  275. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  276. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  277. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  278. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/index.ts +28 -0
  279. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  280. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  281. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/shared/types.ts +88 -0
  282. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  283. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/retry.ts +61 -0
  284. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  285. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  286. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  287. package/node_modules/appium-chromedriver/node_modules/asyncbox/package.json +60 -0
  288. package/node_modules/appium-chromedriver/package.json +4 -4
  289. package/node_modules/io.appium.settings/CHANGELOG.md +21 -0
  290. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  291. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts +9 -0
  292. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts.map +1 -1
  293. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js +16 -1
  294. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js.map +1 -1
  295. package/node_modules/io.appium.settings/build/lib/constants.d.ts +2 -0
  296. package/node_modules/io.appium.settings/build/lib/constants.d.ts.map +1 -1
  297. package/node_modules/io.appium.settings/build/lib/constants.js +2 -0
  298. package/node_modules/io.appium.settings/build/lib/constants.js.map +1 -1
  299. package/node_modules/io.appium.settings/build/lib/index.d.ts +3 -0
  300. package/node_modules/io.appium.settings/build/lib/index.d.ts.map +1 -1
  301. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts +3 -1
  302. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts.map +1 -1
  303. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js +2 -0
  304. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js.map +1 -1
  305. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts +11 -0
  306. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts.map +1 -1
  307. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js +40 -0
  308. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js.map +1 -1
  309. package/node_modules/io.appium.settings/lib/commands/video-stream.ts +17 -0
  310. package/node_modules/io.appium.settings/lib/constants.ts +2 -0
  311. package/node_modules/io.appium.settings/lib/index.ts +3 -0
  312. package/node_modules/io.appium.settings/lib/utils/streaming-protocol.ts +2 -0
  313. package/node_modules/io.appium.settings/lib/utils/streaming-transport.ts +43 -0
  314. package/node_modules/io.appium.settings/node_modules/asyncbox/LICENSE +203 -0
  315. package/node_modules/io.appium.settings/node_modules/asyncbox/README.md +272 -0
  316. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  317. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  318. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  319. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  320. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  321. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  322. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  323. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  324. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  325. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  326. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  327. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  328. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  329. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  330. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js +10 -0
  331. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js.map +1 -0
  332. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  333. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  334. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  335. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  336. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  337. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  338. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  339. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  340. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  341. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  342. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  343. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  344. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  345. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  346. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  347. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  348. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  349. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  350. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  351. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  352. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  353. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  354. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  355. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  356. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  357. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  358. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  359. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  360. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  361. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  362. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  363. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  364. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  365. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  366. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  367. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/index.ts +28 -0
  368. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  369. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  370. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/types.ts +88 -0
  371. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  372. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/retry.ts +61 -0
  373. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  374. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  375. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  376. package/node_modules/io.appium.settings/node_modules/asyncbox/package.json +60 -0
  377. package/node_modules/io.appium.settings/package.json +5 -5
  378. package/node_modules/teen_process/CHANGELOG.md +17 -0
  379. package/node_modules/teen_process/README.md +2 -2
  380. package/node_modules/teen_process/build/lib/circular-buffer.d.ts +13 -0
  381. package/node_modules/teen_process/build/lib/circular-buffer.d.ts.map +1 -0
  382. package/node_modules/teen_process/build/lib/circular-buffer.js +53 -0
  383. package/node_modules/teen_process/build/lib/circular-buffer.js.map +1 -0
  384. package/node_modules/teen_process/build/lib/exec.d.ts +33 -0
  385. package/node_modules/teen_process/build/lib/exec.d.ts.map +1 -0
  386. package/node_modules/teen_process/build/lib/exec.js +164 -0
  387. package/node_modules/teen_process/build/lib/exec.js.map +1 -0
  388. package/node_modules/teen_process/build/lib/helpers.d.ts +2 -0
  389. package/node_modules/teen_process/build/lib/helpers.d.ts.map +1 -0
  390. package/node_modules/teen_process/build/lib/helpers.js +41 -0
  391. package/node_modules/teen_process/build/lib/helpers.js.map +1 -0
  392. package/node_modules/teen_process/build/lib/index.d.ts +5 -0
  393. package/node_modules/teen_process/build/lib/index.d.ts.map +1 -0
  394. package/node_modules/teen_process/build/lib/index.js +4 -0
  395. package/node_modules/teen_process/build/lib/index.js.map +1 -0
  396. package/node_modules/teen_process/build/lib/subprocess.d.ts +131 -0
  397. package/node_modules/teen_process/build/lib/subprocess.d.ts.map +1 -0
  398. package/node_modules/teen_process/build/lib/subprocess.js +336 -0
  399. package/node_modules/teen_process/build/lib/subprocess.js.map +1 -0
  400. package/node_modules/teen_process/build/lib/types.d.ts +71 -0
  401. package/node_modules/teen_process/build/lib/types.d.ts.map +1 -0
  402. package/node_modules/teen_process/build/lib/types.js +2 -0
  403. package/node_modules/teen_process/build/lib/types.js.map +1 -0
  404. package/node_modules/teen_process/lib/exec.ts +15 -2
  405. package/node_modules/teen_process/lib/subprocess.ts +146 -110
  406. package/node_modules/teen_process/package.json +14 -25
  407. package/package.json +5 -5
  408. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.d.ts +0 -0
  409. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.d.ts.map +0 -0
  410. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.js +0 -0
  411. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.js.map +0 -0
  412. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.d.ts +0 -0
  413. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.d.ts.map +0 -0
  414. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.js +0 -0
  415. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.js.map +0 -0
  416. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.d.ts +0 -0
  417. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.d.ts.map +0 -0
  418. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.js +0 -0
  419. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.js.map +0 -0
  420. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.d.ts +0 -0
  421. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.d.ts.map +0 -0
  422. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.js +0 -0
  423. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.js.map +0 -0
  424. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.d.ts +0 -0
  425. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.d.ts.map +0 -0
  426. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.js +0 -0
  427. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.js.map +0 -0
  428. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.d.ts +0 -0
  429. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.d.ts.map +0 -0
  430. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.js +0 -0
  431. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.js.map +0 -0
  432. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/package.json +0 -0
  433. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.d.ts +0 -0
  434. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.d.ts.map +0 -0
  435. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.js +0 -0
  436. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.js.map +0 -0
  437. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.d.ts +0 -0
  438. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.d.ts.map +0 -0
  439. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.js +0 -0
  440. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.js.map +0 -0
  441. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.d.ts +0 -0
  442. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.d.ts.map +0 -0
  443. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.js +0 -0
  444. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.js.map +0 -0
  445. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.d.ts +0 -0
  446. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.d.ts.map +0 -0
  447. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.js +0 -0
  448. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.js.map +0 -0
  449. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.d.ts +0 -0
  450. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.d.ts.map +0 -0
  451. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.js +0 -0
  452. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.js.map +0 -0
  453. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.d.ts +0 -0
  454. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.d.ts.map +0 -0
  455. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.js +0 -0
  456. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.js.map +0 -0
  457. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/package.json +0 -0
@@ -3,12 +3,15 @@ import type {ChildProcess} from 'node:child_process';
3
3
  import {EventEmitter} from 'node:events';
4
4
  import {createInterface} from 'node:readline';
5
5
  import type {Readable} from 'node:stream';
6
+ import {StringDecoder} from 'node:string_decoder';
6
7
 
7
8
  import {quote} from 'shell-quote';
8
9
 
9
10
  import {formatEnoent} from './helpers.js';
10
11
  import type {SubProcessOptions, StartDetector, TIsBufferOpts, StreamName} from './types.js';
11
12
 
13
+ type TOutput<T extends SubProcessOptions> = T extends TIsBufferOpts ? Buffer : string;
14
+
12
15
  /**
13
16
  * A wrapper around Node's spawn that provides event-driven process management.
14
17
  *
@@ -114,48 +117,16 @@ export class SubProcess<TSubProcessOptions extends SubProcessOptions = SubProces
114
117
  timeoutMs: number | boolean | null = null,
115
118
  detach: boolean = false,
116
119
  ): Promise<void> {
117
- let startDelay = 10;
118
-
119
- const genericStartDetector: StartDetector<TSubProcessOptions> = (stdout, stderr) => stdout || stderr;
120
- let detector: StartDetector<TSubProcessOptions> | null = null;
121
-
122
- if (startDetector === null) {
123
- detector = genericStartDetector;
124
- }
125
-
126
- if (typeof startDetector === 'number' || (startDetector as any) instanceof Number) {
127
- startDelay = Number(startDetector);
128
- detector = null;
129
- } else if (typeof startDetector === 'function') {
130
- detector = startDetector;
131
- }
132
-
133
- if ((typeof startDetector === 'boolean' || (startDetector as any) instanceof Boolean) && Boolean(startDetector)) {
134
- if (!this.opts.detached) {
135
- throw new Error(`Unable to detach process that is not started with 'detached' option`);
136
- }
137
- detach = true;
138
- detector = genericStartDetector;
139
- } else if ((typeof timeoutMs === 'boolean' || (timeoutMs as any) instanceof Boolean) && Boolean(timeoutMs)) {
140
- if (!this.opts.detached) {
141
- throw new Error(`Unable to detach process that is not started with 'detached' option`);
142
- }
143
- detach = true;
144
- timeoutMs = null;
145
- }
146
-
120
+ const args = this.parseStartArgs(startDetector, timeoutMs, detach);
121
+ let detector = args.detector;
147
122
  let startDelayTimer: NodeJS.Timeout | null = null;
148
123
  let startTimeoutTimer: NodeJS.Timeout | null = null;
149
124
 
150
125
  return await new Promise<void>((resolve, reject) => {
151
126
  this.proc = spawn(this.cmd, this.args, this.opts);
152
127
 
153
- const handleOutput = (streams: {
154
- stdout: TSubProcessOptions extends TIsBufferOpts ? Buffer : string;
155
- stderr: TSubProcessOptions extends TIsBufferOpts ? Buffer : string;
156
- }) => {
157
- const {stdout, stderr} = streams;
158
-
128
+ this.attachErrorHandler(reject);
129
+ this.attachOutputHandlers((stdout, stderr) => {
159
130
  try {
160
131
  if (detector && detector(stdout, stderr)) {
161
132
  detector = null;
@@ -166,83 +137,17 @@ export class SubProcess<TSubProcessOptions extends SubProcessOptions = SubProces
166
137
  }
167
138
 
168
139
  this.emit('output', stdout, stderr);
169
- };
170
-
171
- this.proc.on('error', async (err: NodeJS.ErrnoException) => {
172
- this.proc?.removeAllListeners('exit');
173
- this.proc?.kill('SIGINT');
174
-
175
- let error = err;
176
- if (error.code === 'ENOENT') {
177
- error = await formatEnoent(error, this.cmd, this.opts?.cwd?.toString());
178
- }
179
- reject(error);
180
-
181
- this.proc?.unref();
182
- this.proc = null;
183
- });
184
-
185
- const handleStreamLines = (streamName: StreamName, input: Readable) => {
186
- const rl = createInterface({input});
187
- rl.on('line', (line) => {
188
- if (this.listenerCount(`lines-${streamName}`)) {
189
- this.emit(`lines-${streamName}`, [line]);
190
- }
191
- this.emit(`line-${streamName}`, line);
192
- if (this.listenerCount('stream-line')) {
193
- this.emitLines(streamName, line);
194
- }
195
- });
196
- };
197
-
198
- const isBuffer = Boolean(this.opts.isBuffer);
199
- const encoding = this.opts.encoding || 'utf8';
200
-
201
- if (this.proc.stdout) {
202
- this.proc.stdout.on('data', (chunk: Buffer) =>
203
- handleOutput({
204
- stdout: (isBuffer ? chunk : chunk.toString(encoding)) as TSubProcessOptions extends TIsBufferOpts
205
- ? Buffer
206
- : string,
207
- stderr: (isBuffer ? Buffer.alloc(0) : '') as TSubProcessOptions extends TIsBufferOpts ? Buffer : string,
208
- }),
209
- );
210
- handleStreamLines('stdout', this.proc.stdout);
211
- }
212
-
213
- if (this.proc.stderr) {
214
- this.proc.stderr.on('data', (chunk: Buffer) =>
215
- handleOutput({
216
- stdout: (isBuffer ? Buffer.alloc(0) : '') as TSubProcessOptions extends TIsBufferOpts ? Buffer : string,
217
- stderr: (isBuffer ? chunk : chunk.toString(encoding)) as TSubProcessOptions extends TIsBufferOpts
218
- ? Buffer
219
- : string,
220
- }),
221
- );
222
- handleStreamLines('stderr', this.proc.stderr);
223
- }
224
-
225
- this.proc.on('exit', (code: number | null, signal: NodeJS.Signals | null) => {
226
- this.emit('exit', code, signal);
227
-
228
- let event: 'stop' | 'die' | 'end' = this.expectingExit ? 'stop' : 'die';
229
- if (!this.expectingExit && code === 0) {
230
- event = 'end';
231
- }
232
- this.emit(event, code, signal);
233
-
234
- this.proc = null;
235
- this.expectingExit = false;
236
140
  });
141
+ this.attachExitHandler();
237
142
 
238
143
  if (!detector) {
239
- startDelayTimer = setTimeout(() => resolve(), startDelay);
144
+ startDelayTimer = setTimeout(() => resolve(), args.startDelay);
240
145
  }
241
146
 
242
- if (typeof timeoutMs === 'number' || (timeoutMs as any) instanceof Number) {
147
+ if (typeof args.timeoutMs === 'number' || (args.timeoutMs as any) instanceof Number) {
243
148
  startTimeoutTimer = setTimeout(() => {
244
- reject(new Error(`The process did not start within ${timeoutMs}ms (cmd: '${this.rep}')`));
245
- }, Number(timeoutMs));
149
+ reject(new Error(`The process did not start within ${args.timeoutMs}ms (cmd: '${this.rep}')`));
150
+ }, Number(args.timeoutMs));
246
151
  }
247
152
  }).finally(() => {
248
153
  if (startDelayTimer) {
@@ -251,7 +156,7 @@ export class SubProcess<TSubProcessOptions extends SubProcessOptions = SubProces
251
156
  if (startTimeoutTimer) {
252
157
  clearTimeout(startTimeoutTimer);
253
158
  }
254
- if (detach && this.proc) {
159
+ if (args.detach && this.proc) {
255
160
  this.proc.unref();
256
161
  }
257
162
  });
@@ -336,12 +241,143 @@ export class SubProcess<TSubProcessOptions extends SubProcessOptions = SubProces
336
241
  * @throws {Error} When process was not created with 'detached' option
337
242
  */
338
243
  detachProcess(): void {
244
+ this.assertDetachable();
245
+ if (this.proc) {
246
+ this.proc.unref();
247
+ }
248
+ }
249
+
250
+ private parseStartArgs(
251
+ startDetector: StartDetector<TSubProcessOptions> | number | boolean | null,
252
+ timeoutMs: number | boolean | null,
253
+ detach: boolean,
254
+ ): {
255
+ detector: StartDetector<TSubProcessOptions> | null;
256
+ startDelay: number;
257
+ timeoutMs: number | boolean | null;
258
+ detach: boolean;
259
+ } {
260
+ let startDelay = 10;
261
+
262
+ const genericStartDetector: StartDetector<TSubProcessOptions> = (stdout, stderr) => stdout || stderr;
263
+ let detector: StartDetector<TSubProcessOptions> | null = null;
264
+
265
+ if (startDetector === null) {
266
+ detector = genericStartDetector;
267
+ }
268
+
269
+ if (typeof startDetector === 'number' || (startDetector as any) instanceof Number) {
270
+ startDelay = Number(startDetector);
271
+ detector = null;
272
+ } else if (typeof startDetector === 'function') {
273
+ detector = startDetector;
274
+ }
275
+
276
+ if ((typeof startDetector === 'boolean' || (startDetector as any) instanceof Boolean) && Boolean(startDetector)) {
277
+ this.assertDetachable();
278
+ detach = true;
279
+ detector = genericStartDetector;
280
+ } else if ((typeof timeoutMs === 'boolean' || (timeoutMs as any) instanceof Boolean) && Boolean(timeoutMs)) {
281
+ this.assertDetachable();
282
+ detach = true;
283
+ timeoutMs = null;
284
+ }
285
+
286
+ return {detector, startDelay, timeoutMs, detach};
287
+ }
288
+
289
+ private assertDetachable(): void {
339
290
  if (!this.opts.detached) {
340
291
  throw new Error(`Unable to detach process that is not started with 'detached' option`);
341
292
  }
342
- if (this.proc) {
343
- this.proc.unref();
293
+ }
294
+
295
+ private attachErrorHandler(reject: (reason: Error) => void): void {
296
+ this.proc?.on('error', async (err: NodeJS.ErrnoException) => {
297
+ this.proc?.removeAllListeners('exit');
298
+ this.proc?.kill('SIGINT');
299
+
300
+ let error = err;
301
+ if (error.code === 'ENOENT') {
302
+ error = await formatEnoent(error, this.cmd, this.opts?.cwd?.toString());
303
+ }
304
+ reject(error);
305
+
306
+ this.proc?.unref();
307
+ this.proc = null;
308
+ });
309
+ }
310
+
311
+ private attachExitHandler(): void {
312
+ this.proc?.on('exit', (code: number | null, signal: NodeJS.Signals | null) => {
313
+ this.emit('exit', code, signal);
314
+
315
+ let event: 'stop' | 'die' | 'end' = this.expectingExit ? 'stop' : 'die';
316
+ if (!this.expectingExit && code === 0) {
317
+ event = 'end';
318
+ }
319
+ this.emit(event, code, signal);
320
+
321
+ this.proc = null;
322
+ this.expectingExit = false;
323
+ });
324
+ }
325
+
326
+ private attachOutputHandlers(
327
+ onOutput: (stdout: TOutput<TSubProcessOptions>, stderr: TOutput<TSubProcessOptions>) => void,
328
+ ): void {
329
+ const isBuffer = Boolean(this.opts.isBuffer);
330
+ const encoding = this.opts.encoding || 'utf8';
331
+ const emptyOutput = (isBuffer ? Buffer.alloc(0) : '') as TOutput<TSubProcessOptions>;
332
+
333
+ const attach = (streamName: StreamName, stream: Readable) => {
334
+ // StringDecoder keeps incomplete multi-byte sequences between chunks
335
+ const decoder = isBuffer ? null : new StringDecoder(encoding);
336
+ const emitOutput = (data: Buffer | string) =>
337
+ onOutput(
338
+ (streamName === 'stdout' ? data : emptyOutput) as TOutput<TSubProcessOptions>,
339
+ (streamName === 'stderr' ? data : emptyOutput) as TOutput<TSubProcessOptions>,
340
+ );
341
+ stream.on('data', (chunk: Buffer) => {
342
+ if (!decoder) {
343
+ emitOutput(chunk);
344
+ return;
345
+ }
346
+ const text = decoder.write(chunk);
347
+ if (text) {
348
+ emitOutput(text);
349
+ }
350
+ });
351
+ if (decoder) {
352
+ stream.on('end', () => {
353
+ const rest = decoder.end();
354
+ if (rest) {
355
+ emitOutput(rest);
356
+ }
357
+ });
358
+ }
359
+ this.attachLineHandler(streamName, stream);
360
+ };
361
+
362
+ if (this.proc?.stdout) {
363
+ attach('stdout', this.proc.stdout);
344
364
  }
365
+ if (this.proc?.stderr) {
366
+ attach('stderr', this.proc.stderr);
367
+ }
368
+ }
369
+
370
+ private attachLineHandler(streamName: StreamName, input: Readable): void {
371
+ const rl = createInterface({input});
372
+ rl.on('line', (line) => {
373
+ if (this.listenerCount(`lines-${streamName}`)) {
374
+ this.emit(`lines-${streamName}`, [line]);
375
+ }
376
+ this.emit(`line-${streamName}`, line);
377
+ if (this.listenerCount('stream-line')) {
378
+ this.emitLines(streamName, line);
379
+ }
380
+ });
345
381
  }
346
382
 
347
383
  private emitLines(streamName: StreamName, lines: Iterable<string> | string): void {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teen_process",
3
- "version": "4.2.2",
3
+ "version": "5.0.1",
4
4
  "description": "A grown up version of Node's spawn/exec",
5
5
  "keywords": [
6
6
  "child",
@@ -26,32 +26,21 @@
26
26
  },
27
27
  "files": [
28
28
  "lib",
29
- "build/cjs/lib",
30
- "build/cjs/package.json",
31
- "build/esm/lib",
32
- "build/esm/package.json",
29
+ "build/lib",
33
30
  "CHANGELOG.md"
34
31
  ],
35
32
  "type": "module",
36
- "main": "./build/cjs/lib/index.js",
37
- "module": "./build/esm/lib/index.js",
38
- "types": "./build/cjs/lib/index.d.ts",
33
+ "main": "./build/lib/index.js",
34
+ "types": "./build/lib/index.d.ts",
39
35
  "exports": {
40
36
  ".": {
41
- "import": {
42
- "types": "./build/esm/lib/index.d.ts",
43
- "default": "./build/esm/lib/index.js"
44
- },
45
- "require": {
46
- "types": "./build/cjs/lib/index.d.ts",
47
- "default": "./build/cjs/lib/index.js"
48
- }
37
+ "types": "./build/lib/index.d.ts",
38
+ "default": "./build/lib/index.js"
49
39
  },
50
40
  "./package.json": "./package.json"
51
41
  },
52
42
  "scripts": {
53
- "build": "tsc -b tsconfig.esm.json tsconfig.cjs.json",
54
- "postbuild": "node scripts/postbuild.mjs",
43
+ "build": "tsc",
55
44
  "clean": "node -e \"require('node:fs').rmSync('build', {recursive: true, force: true})\"",
56
45
  "dev": "npm run build -- --watch",
57
46
  "lint": "oxlint -c oxlint.config.mjs .",
@@ -61,21 +50,21 @@
61
50
  "format:check": "oxfmt -c oxfmt.config.mjs --check .",
62
51
  "prepare": "npm run rebuild",
63
52
  "rebuild": "npm run clean && npm run build",
64
- "test": "node --test --enable-source-maps --test-timeout=60000 \"./build/esm/test/**/*.spec.js\" \"./test/*.spec.cjs\""
53
+ "test": "node --test --enable-source-maps --test-timeout=60000 \"./build/test/**/*.spec.js\""
65
54
  },
66
55
  "dependencies": {
67
- "shell-quote": "^1.8.1"
56
+ "shell-quote": "^1.12.0"
68
57
  },
69
58
  "devDependencies": {
70
- "@appium/oxc-config": "^1.1.0",
71
- "@appium/semantic-release-config": "^1.1.0",
72
- "@appium/tsconfig": "^1.2.0",
73
- "@appium/types": "^1.0.0-rc.1",
59
+ "@appium/oxc-config": "^2.0.0-beta.2",
60
+ "@appium/semantic-release-config": "^2.0.0-beta.1",
61
+ "@appium/tsconfig": "^2.0.0-beta.1",
62
+ "@appium/types": "^2.0.0-beta.5",
74
63
  "@types/node": "^26.0.0",
75
64
  "@types/shell-quote": "^1.7.5"
76
65
  },
77
66
  "engines": {
78
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
67
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
79
68
  "npm": ">=10"
80
69
  }
81
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-espresso-driver",
3
- "version": "10.0.3",
3
+ "version": "10.2.0",
4
4
  "description": "Espresso integration for Appium",
5
5
  "keywords": [
6
6
  "android",
@@ -54,14 +54,14 @@
54
54
  "./package.json": "./package.json"
55
55
  },
56
56
  "dependencies": {
57
- "appium-adb": "17.0.1",
58
- "appium-android-driver": "15.1.19",
57
+ "appium-adb": "17.0.3",
58
+ "appium-android-driver": "15.2.2",
59
59
  "asyncbox": "6.6.1",
60
60
  "axios": "1.21.1",
61
61
  "commander": "15.1.0",
62
- "io.appium.settings": "9.1.2",
62
+ "io.appium.settings": "9.2.0",
63
63
  "semver": "7.8.6",
64
- "teen_process": "4.2.2"
64
+ "teen_process": "5.0.1"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "appium": "^4.0.0-beta.8"