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
@@ -0,0 +1,52 @@
1
+ import {ConditionUnmetError} from '../shared/errors.js';
2
+ import type {WaitForConditionOptions} from '../shared/types.js';
3
+ import {sleep} from './sleep.js';
4
+
5
+ /**
6
+ * Takes a condition (a function returning a boolean or boolean promise), and
7
+ * waits until the condition is true.
8
+ *
9
+ * Throws a {@link ConditionUnmetError} (a {@link TimeoutError}; message matches `/Condition unmet/`) if the condition has not been satisfied
10
+ * within the allocated time, unless an error is provided in the options, as the
11
+ * `error` property, which is either thrown itself, or used as the message.
12
+ *
13
+ * The condition result is returned if it is not falsy. If the condition throws an
14
+ * error then this exception will be immediately passed through.
15
+ *
16
+ * The default options are: `{ waitMs: 5000, intervalMs: 500 }`
17
+ * @param condFn - The condition function to evaluate
18
+ * @param options - Options for controlling the wait behavior
19
+ */
20
+ export async function waitForCondition<T>(
21
+ condFn: () => Promise<T> | T,
22
+ options: WaitForConditionOptions = {},
23
+ ): Promise<T> {
24
+ const opts: WaitForConditionOptions & {waitMs: number; intervalMs: number} = {
25
+ ...options,
26
+ waitMs: typeof options.waitMs === 'number' ? options.waitMs : 5000,
27
+ intervalMs: typeof options.intervalMs === 'number' ? options.intervalMs : 500,
28
+ };
29
+ const debug = opts.logger ? opts.logger.debug.bind(opts.logger) : () => undefined;
30
+ const error = opts.error;
31
+ const begunAt = performance.now();
32
+ const endAt = begunAt + opts.waitMs;
33
+ for (;;) {
34
+ const result = await condFn();
35
+ if (result) {
36
+ return result;
37
+ }
38
+ const now = performance.now();
39
+ const waited = Math.round(now - begunAt);
40
+ const remainingTime = endAt - now;
41
+ if (now < endAt) {
42
+ debug(`Waited for ${waited} ms so far`);
43
+ await sleep(Math.min(opts.intervalMs, remainingTime));
44
+ continue;
45
+ }
46
+ // if there is an error option, it is either a string message or an error itself
47
+ if (error) {
48
+ throw typeof error === 'string' ? new ConditionUnmetError(error) : error;
49
+ }
50
+ throw new ConditionUnmetError(`Condition unmet after ${waited} ms. Timing out.`);
51
+ }
52
+ }
@@ -0,0 +1,43 @@
1
+ import {TimeoutError} from '../shared/errors.js';
2
+
3
+ /**
4
+ * Resolves with `promise` or rejects if it does not settle before `timeoutMs`.
5
+ *
6
+ * If the deadline passes first: with no third argument (or a falsy non-error value), rejects
7
+ * with {@link TimeoutError} whose message includes `timeoutMs`; with a non-empty string,
8
+ * rejects with {@link TimeoutError} using that message; with an `Error` instance, rejects
9
+ * with that same instance.
10
+ *
11
+ * @param promise - Promise to race against the timeout.
12
+ * @param timeoutMs - Maximum time in milliseconds before rejecting if `promise` has not settled.
13
+ * @param messageOrError - Optional override for the timeout rejection: custom {@link TimeoutError}
14
+ * message when the string is non-empty, or an existing `Error` to reject with verbatim.
15
+ * Omitted, `undefined`, or other falsy non-error values use the default timeout message (includes `timeoutMs`).
16
+ */
17
+ export async function withTimeout<T>(
18
+ promise: Promise<T>,
19
+ timeoutMs: number,
20
+ messageOrError?: string | Error,
21
+ ): Promise<T> {
22
+ let timer: NodeJS.Timeout | null = null;
23
+ try {
24
+ return await Promise.race([
25
+ promise,
26
+ new Promise<T>((_resolve, reject) => {
27
+ timer = setTimeout(() => {
28
+ if (typeof messageOrError === 'string' && messageOrError) {
29
+ reject(new TimeoutError(messageOrError));
30
+ } else if (!messageOrError) {
31
+ reject(new TimeoutError(`Operation timed out after ${timeoutMs}ms`));
32
+ } else {
33
+ reject(messageOrError);
34
+ }
35
+ }, timeoutMs);
36
+ }),
37
+ ]);
38
+ } finally {
39
+ if (timer) {
40
+ clearTimeout(timer);
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "asyncbox",
3
+ "version": "7.0.0",
4
+ "description": "A collection of small async/await utilities",
5
+ "keywords": [
6
+ "async",
7
+ "async/await",
8
+ "es7"
9
+ ],
10
+ "bugs": {
11
+ "url": "https://github.com/appium/asyncbox/issues"
12
+ },
13
+ "license": "Apache-2.0",
14
+ "author": "jlipps@gmail.com",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/appium/asyncbox.git"
18
+ },
19
+ "bin": {},
20
+ "directories": {
21
+ "lib": "./lib"
22
+ },
23
+ "files": [
24
+ "lib/**/*",
25
+ "build/lib/**/*"
26
+ ],
27
+ "type": "module",
28
+ "module": "./build/lib/index.js",
29
+ "types": "./build/lib/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./build/lib/index.d.ts",
33
+ "default": "./build/lib/index.js"
34
+ },
35
+ "./package.json": "./package.json"
36
+ },
37
+ "scripts": {
38
+ "build": "tsc -b",
39
+ "clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",
40
+ "rebuild": "npm run clean; npm run build",
41
+ "dev": "npm run build -- --watch",
42
+ "prepare": "npm run rebuild",
43
+ "test": "node --test --enable-source-maps --test-force-exit --test-timeout=60000 \"./build/test/**/*.spec.js\"",
44
+ "lint": "oxlint -c oxlint.config.mjs .",
45
+ "lint:fix": "oxlint -c oxlint.config.mjs --fix .",
46
+ "format": "oxfmt -c oxfmt.config.mjs .",
47
+ "format:check": "oxfmt -c oxfmt.config.mjs --check .",
48
+ "watch": "npm run dev"
49
+ },
50
+ "devDependencies": {
51
+ "@appium/oxc-config": "^2.0.0-beta.2",
52
+ "@appium/semantic-release-config": "^2.0.0-beta.1",
53
+ "@appium/tsconfig": "^2.0.0-beta.1",
54
+ "@types/node": "^26.1.0"
55
+ },
56
+ "engines": {
57
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
58
+ "npm": ">=10"
59
+ }
60
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io.appium.settings",
3
- "version": "9.1.2",
3
+ "version": "9.2.0",
4
4
  "description": "App for dealing with Android settings",
5
5
  "keywords": [
6
6
  "android",
@@ -51,16 +51,16 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@appium/logger": "^3.0.0-beta.2",
54
- "asyncbox": "^6.6.0",
54
+ "asyncbox": "^7.0.0",
55
55
  "semver": "^7.5.4",
56
- "teen_process": "^4.0.4"
56
+ "teen_process": "^5.0.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@appium/tsconfig": "^2.0.0-beta.2",
60
60
  "@appium/types": "^2.0.0-beta.6",
61
61
  "@types/node": "^26.6.5",
62
62
  "@types/sinon": "^22.0.2",
63
- "appium-adb": "^17.0.1",
63
+ "appium-adb": "^17.0.3",
64
64
  "sinon": "^22.0.0"
65
65
  },
66
66
  "peerDependencies": {
@@ -70,5 +70,5 @@
70
70
  "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
71
71
  "npm": ">=10"
72
72
  },
73
- "gitHead": "fe586798618a768e6b615562961423e4da640fd2"
73
+ "gitHead": "a8fe3e96be25e401c892ab9000ff3499fcc8b509"
74
74
  }
@@ -1,3 +1,20 @@
1
+ ## [5.0.1](https://github.com/appium/node-teen_process/compare/v5.0.0...v5.0.1) (2026-11-15)
2
+
3
+ ### Bug Fixes
4
+
5
+ * Preserve multi-byte characters split across output chunks ([#496](https://github.com/appium/node-teen_process/issues/496)) ([5a594ee](https://github.com/appium/node-teen_process/commit/5a594ee4795d6e4dab309ebc4978d0fcec8f4ee3))
6
+
7
+ ## [5.0.0](https://github.com/appium/node-teen_process/compare/v4.2.2...v5.0.0) (2026-11-12)
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * The package is ESM only. require('teen_process') only works on Node versions that support require(esm); otherwise use import().
12
+ * Node.js ^22.22.2 || ^24.15.0 || >=26.0.0 is now required.
13
+
14
+ ### Features
15
+
16
+ * Drop CommonJS build ([#495](https://github.com/appium/node-teen_process/issues/495)) ([2c48d1c](https://github.com/appium/node-teen_process/commit/2c48d1ce62ed378ca34b0a9e386e7b615032de32))
17
+
1
18
  ## [4.2.2](https://github.com/appium/node-teen_process/compare/v4.2.1...v4.2.2) (2026-11-07)
2
19
 
3
20
  ### Bug Fixes
@@ -8,8 +8,8 @@ arguments so we don't have to care about escaping spaces. It can also return
8
8
  stdout/stderr even when the command fails, or times out. Importantly, it's also
9
9
  not susceptible to max buffer issues.
10
10
 
11
- Published as both ESM and CommonJS, so `import {exec} from 'teen_process'` and
12
- `const {exec} = require('teen_process')` both work.
11
+ Published as an ES module only. CommonJS consumers must use `import()` (or
12
+ `require()` on Node versions that support requiring ES modules).
13
13
 
14
14
  ## teen_process.exec
15
15
 
@@ -0,0 +1,13 @@
1
+ export declare const MAX_BUFFER_SIZE: number;
2
+ export declare class CircularBuffer {
3
+ private _buf;
4
+ private _size;
5
+ private _maxSize;
6
+ constructor(maxSize?: number);
7
+ get size(): number;
8
+ get count(): number;
9
+ add(item: Buffer): this;
10
+ value(): Buffer;
11
+ private _align;
12
+ }
13
+ //# sourceMappingURL=circular-buffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circular-buffer.d.ts","sourceRoot":"","sources":["../../lib/circular-buffer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAoB,CAAC;AAGjD,qBAAa,cAAc;IACzB,OAAO,CAAC,IAAI,CAAW;IACvB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAS;gBAEb,OAAO,SAAkB;IAMrC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAEM,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAOvB,KAAK,IAAI,MAAM;IAItB,OAAO,CAAC,MAAM;CA0Bf"}
@@ -0,0 +1,53 @@
1
+ export const MAX_BUFFER_SIZE = 100 * 1024 * 1024; // 100 MiB
2
+ const THRESHOLD = 0.15;
3
+ export class CircularBuffer {
4
+ _buf;
5
+ _size;
6
+ _maxSize;
7
+ constructor(maxSize = MAX_BUFFER_SIZE) {
8
+ this._maxSize = maxSize;
9
+ this._buf = [];
10
+ this._size = 0;
11
+ }
12
+ get size() {
13
+ return this._size;
14
+ }
15
+ get count() {
16
+ return this._buf.length;
17
+ }
18
+ add(item) {
19
+ this._buf.push(item);
20
+ this._size += item.length;
21
+ this._align();
22
+ return this;
23
+ }
24
+ value() {
25
+ return Buffer.concat(this._buf);
26
+ }
27
+ _align() {
28
+ if (this._size <= this._maxSize) {
29
+ return;
30
+ }
31
+ let numberOfItemsToShift = 0;
32
+ // We add the threshold to avoid shifting the array for each `add` call,
33
+ // which reduces the CPU usage
34
+ const expectedSizeToShift = this._size - this._maxSize + Math.trunc(this._maxSize * THRESHOLD);
35
+ let actualShiftedSize = 0;
36
+ while (numberOfItemsToShift < this._buf.length - 1 && actualShiftedSize <= expectedSizeToShift) {
37
+ actualShiftedSize += this._buf[numberOfItemsToShift].length;
38
+ numberOfItemsToShift++;
39
+ }
40
+ if (numberOfItemsToShift > 0) {
41
+ this._buf.splice(0, numberOfItemsToShift);
42
+ this._size -= actualShiftedSize;
43
+ }
44
+ if (actualShiftedSize < expectedSizeToShift) {
45
+ // We have already deleted all buffer items, but one,
46
+ // although the recent item is still too big to fit into the allowed size limit
47
+ const remainderToShift = expectedSizeToShift - actualShiftedSize;
48
+ this._buf[0] = this._buf[0].subarray(remainderToShift);
49
+ this._size -= remainderToShift;
50
+ }
51
+ }
52
+ }
53
+ //# sourceMappingURL=circular-buffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circular-buffer.js","sourceRoot":"","sources":["../../lib/circular-buffer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,UAAU;AAC5D,MAAM,SAAS,GAAG,IAAI,CAAC;AAEvB,MAAM,OAAO,cAAc;IACjB,IAAI,CAAW;IACf,KAAK,CAAS;IACd,QAAQ,CAAS;IAEzB,YAAY,OAAO,GAAG,eAAe;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IACjB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC;IAEM,GAAG,CAAC,IAAY;QACrB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK;QACV,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAEO,MAAM;QACZ,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QAED,IAAI,oBAAoB,GAAG,CAAC,CAAC;QAC7B,wEAAwE;QACxE,8BAA8B;QAC9B,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;QAC/F,IAAI,iBAAiB,GAAG,CAAC,CAAC;QAC1B,OAAO,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,iBAAiB,IAAI,mBAAmB,EAAE,CAAC;YAC/F,iBAAiB,IAAI,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC;YAC5D,oBAAoB,EAAE,CAAC;QACzB,CAAC;QACD,IAAI,oBAAoB,GAAG,CAAC,EAAE,CAAC;YAC7B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC;YAC1C,IAAI,CAAC,KAAK,IAAI,iBAAiB,CAAC;QAClC,CAAC;QACD,IAAI,iBAAiB,GAAG,mBAAmB,EAAE,CAAC;YAC5C,qDAAqD;YACrD,+EAA+E;YAC/E,MAAM,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;YACjE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;YACvD,IAAI,CAAC,KAAK,IAAI,gBAAgB,CAAC;QACjC,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,33 @@
1
+ import type { TeenProcessExecOptions, TeenProcessExecResult, BufferProp } from './types.js';
2
+ /**
3
+ * Spawns a child process and collects its output.
4
+ *
5
+ * This is a promisified version of Node's spawn that collects stdout and stderr,
6
+ * handles timeouts, and provides error context.
7
+ *
8
+ * @template T - The options type extending TeenProcessExecOptions
9
+ * @param cmd - The command to execute
10
+ * @param args - Array of arguments to pass to the command (default: [])
11
+ * @param originalOpts - Execution options including timeout, encoding, environment, etc.
12
+ * @returns Promise resolving to an object with stdout, stderr, and exit code
13
+ *
14
+ * @throws {ExecError} When the process exits with non-zero code or times out
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * // Simple execution
19
+ * const {stdout, stderr, code} = await exec('ls', ['-la']);
20
+ *
21
+ * // With timeout and custom encoding
22
+ * const result = await exec('long-running-cmd', [], {
23
+ * timeout: 5000,
24
+ * encoding: 'utf8',
25
+ * cwd: '/custom/path'
26
+ * });
27
+ *
28
+ * // Return output as Buffer
29
+ * const {stdout} = await exec('cat', ['image.png'], {isBuffer: true});
30
+ * ```
31
+ */
32
+ export declare function exec<T extends TeenProcessExecOptions = TeenProcessExecOptions>(cmd: string, args?: string[], originalOpts?: T): Promise<TeenProcessExecResult<BufferProp<T>>>;
33
+ //# sourceMappingURL=exec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../lib/exec.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAEjH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,IAAI,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,EAClF,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,YAAY,GAAE,CAAW,GACxB,OAAO,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAyH/C"}
@@ -0,0 +1,164 @@
1
+ import { spawn } from 'node:child_process';
2
+ import { StringDecoder } from 'node:string_decoder';
3
+ import { quote } from 'shell-quote';
4
+ import { CircularBuffer, MAX_BUFFER_SIZE } from './circular-buffer.js';
5
+ import { formatEnoent } from './helpers.js';
6
+ /**
7
+ * Spawns a child process and collects its output.
8
+ *
9
+ * This is a promisified version of Node's spawn that collects stdout and stderr,
10
+ * handles timeouts, and provides error context.
11
+ *
12
+ * @template T - The options type extending TeenProcessExecOptions
13
+ * @param cmd - The command to execute
14
+ * @param args - Array of arguments to pass to the command (default: [])
15
+ * @param originalOpts - Execution options including timeout, encoding, environment, etc.
16
+ * @returns Promise resolving to an object with stdout, stderr, and exit code
17
+ *
18
+ * @throws {ExecError} When the process exits with non-zero code or times out
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * // Simple execution
23
+ * const {stdout, stderr, code} = await exec('ls', ['-la']);
24
+ *
25
+ * // With timeout and custom encoding
26
+ * const result = await exec('long-running-cmd', [], {
27
+ * timeout: 5000,
28
+ * encoding: 'utf8',
29
+ * cwd: '/custom/path'
30
+ * });
31
+ *
32
+ * // Return output as Buffer
33
+ * const {stdout} = await exec('cat', ['image.png'], {isBuffer: true});
34
+ * ```
35
+ */
36
+ export async function exec(cmd, args = [], originalOpts = {}) {
37
+ // get a quoted representation of the command for error strings
38
+ const rep = quote([cmd, ...args]);
39
+ const defaults = {
40
+ timeout: undefined,
41
+ encoding: 'utf8',
42
+ killSignal: 'SIGTERM',
43
+ cwd: undefined,
44
+ env: process.env,
45
+ ignoreOutput: false,
46
+ stdio: 'inherit',
47
+ isBuffer: false,
48
+ shell: undefined,
49
+ logger: undefined,
50
+ maxStdoutBufferSize: MAX_BUFFER_SIZE,
51
+ maxStderrBufferSize: MAX_BUFFER_SIZE,
52
+ };
53
+ const opts = applyDefaults(defaults, originalOpts);
54
+ const isBuffer = Boolean(opts.isBuffer);
55
+ const spawnOpts = buildSpawnOptions(opts, originalOpts);
56
+ return await new Promise((resolve, reject) => {
57
+ const proc = spawn(cmd, args, spawnOpts);
58
+ const stdoutBuffer = new CircularBuffer(opts.maxStdoutBufferSize);
59
+ const stderrBuffer = new CircularBuffer(opts.maxStderrBufferSize);
60
+ let timer = null;
61
+ proc.on('error', async (err) => {
62
+ let error = err;
63
+ if (error.code === 'ENOENT') {
64
+ error = await formatEnoent(error, cmd, opts.cwd?.toString());
65
+ }
66
+ reject(error);
67
+ });
68
+ if (proc.stdin) {
69
+ proc.stdin.on('error', (err) => {
70
+ reject(new Error(`Standard input '${err.syscall}' error: ${err.stack}`));
71
+ });
72
+ }
73
+ const handleStream = (streamType, buffer) => {
74
+ const stream = proc[streamType];
75
+ if (!stream) {
76
+ return;
77
+ }
78
+ stream.on('error', (err) => {
79
+ const capitalizedStreamType = streamType.charAt(0).toUpperCase() + streamType.slice(1).toLowerCase();
80
+ reject(new Error(`${capitalizedStreamType} '${err.syscall}' error: ${err.stack}`));
81
+ });
82
+ if (opts.ignoreOutput) {
83
+ // https://github.com/nodejs/node/issues/4236
84
+ stream.on('data', () => { });
85
+ return;
86
+ }
87
+ const logDebug = typeof opts.logger?.debug === 'function' ? opts.logger.debug.bind(opts.logger) : null;
88
+ // StringDecoder keeps multi-byte characters split across chunks intact in logs
89
+ const decoder = logDebug ? new StringDecoder(opts.encoding) : null;
90
+ stream.on('data', (chunk) => {
91
+ buffer.add(chunk);
92
+ const text = decoder?.write(chunk);
93
+ if (text) {
94
+ logDebug?.(text);
95
+ }
96
+ });
97
+ if (decoder) {
98
+ stream.on('end', () => {
99
+ const rest = decoder.end();
100
+ if (rest) {
101
+ logDebug?.(rest);
102
+ }
103
+ });
104
+ }
105
+ };
106
+ handleStream('stdout', stdoutBuffer);
107
+ handleStream('stderr', stderrBuffer);
108
+ function getStdio(wantBuffer) {
109
+ const stdout = wantBuffer ? stdoutBuffer.value() : stdoutBuffer.value().toString(opts.encoding);
110
+ const stderr = wantBuffer ? stderrBuffer.value() : stderrBuffer.value().toString(opts.encoding);
111
+ return { stdout, stderr };
112
+ }
113
+ proc.on('close', (code) => {
114
+ if (timer) {
115
+ clearTimeout(timer);
116
+ }
117
+ const { stdout, stderr } = getStdio(isBuffer);
118
+ if (code === 0) {
119
+ resolve({ stdout, stderr, code });
120
+ }
121
+ else {
122
+ const err = Object.assign(new Error(`Command '${rep}' exited with code ${code}`), {
123
+ stdout,
124
+ stderr,
125
+ code,
126
+ });
127
+ reject(err);
128
+ }
129
+ });
130
+ if (opts.timeout) {
131
+ timer = setTimeout(() => {
132
+ const { stdout, stderr } = getStdio(isBuffer);
133
+ const err = Object.assign(new Error(`Command '${rep}' timed out after ${opts.timeout}ms`), {
134
+ stdout,
135
+ stderr,
136
+ code: null,
137
+ });
138
+ reject(err);
139
+ proc.kill(opts.killSignal ?? 'SIGTERM');
140
+ }, opts.timeout);
141
+ }
142
+ });
143
+ }
144
+ function applyDefaults(defaults, originalOpts) {
145
+ const normalizedOriginalOpts = originalOpts !== null && typeof originalOpts === 'object' ? originalOpts : {};
146
+ const definedOriginalOpts = Object.fromEntries(Object.entries(normalizedOriginalOpts).filter(([, value]) => value !== undefined));
147
+ return { ...defaults, ...definedOriginalOpts };
148
+ }
149
+ function buildSpawnOptions(opts, originalOpts) {
150
+ return {
151
+ cwd: opts.cwd,
152
+ env: opts.env,
153
+ shell: opts.shell,
154
+ argv0: opts.argv0,
155
+ uid: opts.uid,
156
+ gid: opts.gid,
157
+ detached: opts.detached,
158
+ windowsHide: opts.windowsHide,
159
+ windowsVerbatimArguments: opts.windowsVerbatimArguments,
160
+ signal: opts.signal,
161
+ ...(Object.prototype.hasOwnProperty.call(originalOpts, 'stdio') ? { stdio: opts.stdio } : {}),
162
+ };
163
+ }
164
+ //# sourceMappingURL=exec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exec.js","sourceRoot":"","sources":["../../lib/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAA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../../lib/helpers.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ import fs from 'node:fs/promises';
2
+ import path from 'node:path';
3
+ /**
4
+ * Enhances ENOENT errors from spawn with descriptive messages.
5
+ *
6
+ * This is an internal helper that mutates the error object to provide context about:
7
+ * - Invalid working directory paths
8
+ * - Missing executables in PATH
9
+ *
10
+ * @param error - The original ENOENT error from spawn
11
+ * @param cmd - The command that was attempted to execute
12
+ * @param cwd - The working directory used (if any)
13
+ * @returns The same error object with an enhanced message
14
+ *
15
+ * @internal
16
+ */
17
+ export async function formatEnoent(error, cmd, cwd) {
18
+ if (cwd) {
19
+ try {
20
+ const stat = await fs.stat(cwd);
21
+ if (!stat.isDirectory()) {
22
+ error.message = `The working directory '${cwd}' of '${cmd}' is not a valid folder path`;
23
+ return error;
24
+ }
25
+ }
26
+ catch (e) {
27
+ const err = e;
28
+ if (err.code === 'ENOENT') {
29
+ error.message = `The working directory '${cwd}' of '${cmd}' does not exist`;
30
+ return error;
31
+ }
32
+ }
33
+ }
34
+ const curDir = path.resolve(cwd ?? process.cwd());
35
+ const pathMsg = process.env.PATH ?? 'which is not defined for the process';
36
+ error.message =
37
+ `'${cmd}' executable is not found neither in the process working folder (${curDir}) ` +
38
+ `nor in any folders specified in the PATH environment variable (${pathMsg})`;
39
+ return error;
40
+ }
41
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../lib/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,KAA4B,EAC5B,GAAW,EACX,GAAY;IAEZ,IAAI,GAAG,EAAE,CAAC;QACR,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;gBACxB,KAAK,CAAC,OAAO,GAAG,0BAA0B,GAAG,SAAS,GAAG,8BAA8B,CAAC;gBACxF,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,GAAG,GAAG,CAA0B,CAAC;YACvC,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC1B,KAAK,CAAC,OAAO,GAAG,0BAA0B,GAAG,SAAS,GAAG,kBAAkB,CAAC;gBAC5E,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,sCAAsC,CAAC;IAC3E,KAAK,CAAC,OAAO;QACX,IAAI,GAAG,oEAAoE,MAAM,IAAI;YACrF,kEAAkE,OAAO,GAAG,CAAC;IAC/E,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { spawn } from 'node:child_process';
2
+ export { SubProcess } from './subprocess.js';
3
+ export { exec } from './exec.js';
4
+ export type { TeenProcessExecOptions, TeenProcessExecResult, ExecError, SubProcessOptions } from './types.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,YAAY,EAAC,sBAAsB,EAAE,qBAAqB,EAAE,SAAS,EAAE,iBAAiB,EAAC,MAAM,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { spawn } from 'node:child_process';
2
+ export { SubProcess } from './subprocess.js';
3
+ export { exec } from './exec.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC"}