appium-espresso-driver 9.3.8 → 9.3.9

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 (364) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/lib/commands/server/runner.d.ts.map +1 -1
  3. package/build/lib/commands/server/runner.js +3 -1
  4. package/build/lib/commands/server/runner.js.map +1 -1
  5. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  6. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
  7. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
  8. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  9. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
  10. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
  11. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
  12. package/lib/commands/server/runner.ts +3 -1
  13. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts +12 -0
  14. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts.map +1 -0
  15. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js +33 -0
  16. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js.map +1 -0
  17. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.d.ts.map +1 -1
  18. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +49 -12
  19. package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js.map +1 -1
  20. package/node_modules/@appium/base-driver/build/lib/basedriver/driver.d.ts.map +1 -1
  21. package/node_modules/@appium/base-driver/build/lib/basedriver/driver.js +2 -0
  22. package/node_modules/@appium/base-driver/build/lib/basedriver/driver.js.map +1 -1
  23. package/node_modules/@appium/base-driver/build/lib/express/middleware.d.ts +17 -6
  24. package/node_modules/@appium/base-driver/build/lib/express/middleware.d.ts.map +1 -1
  25. package/node_modules/@appium/base-driver/build/lib/express/middleware.js +11 -7
  26. package/node_modules/@appium/base-driver/build/lib/express/middleware.js.map +1 -1
  27. package/node_modules/@appium/base-driver/build/lib/express/server.d.ts +1 -0
  28. package/node_modules/@appium/base-driver/build/lib/express/server.d.ts.map +1 -1
  29. package/node_modules/@appium/base-driver/build/lib/express/server.js +4 -3
  30. package/node_modules/@appium/base-driver/build/lib/express/server.js.map +1 -1
  31. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts +1 -2
  32. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts.map +1 -1
  33. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js +8 -3
  34. package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js.map +1 -1
  35. package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi-subscriptions.ts +36 -0
  36. package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi.ts +56 -12
  37. package/node_modules/@appium/base-driver/lib/basedriver/driver.ts +2 -0
  38. package/node_modules/@appium/base-driver/lib/express/middleware.ts +32 -12
  39. package/node_modules/@appium/base-driver/lib/express/server.ts +7 -2
  40. package/node_modules/@appium/base-driver/lib/protocol/bidi-commands.ts +9 -3
  41. package/node_modules/@appium/base-driver/node_modules/axios/CHANGELOG.md +1934 -0
  42. package/node_modules/@appium/base-driver/node_modules/axios/LICENSE +7 -0
  43. package/node_modules/@appium/base-driver/node_modules/axios/MIGRATION_GUIDE.md +877 -0
  44. package/node_modules/@appium/base-driver/node_modules/axios/README.md +2851 -0
  45. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.js +5807 -0
  46. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js +5 -0
  47. package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js.map +1 -0
  48. package/node_modules/@appium/base-driver/node_modules/axios/dist/browser/axios.cjs +5829 -0
  49. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.js +5850 -0
  50. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js +3 -0
  51. package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  52. package/node_modules/@appium/base-driver/node_modules/axios/dist/node/axios.cjs +6808 -0
  53. package/node_modules/@appium/base-driver/node_modules/axios/index.d.cts +766 -0
  54. package/node_modules/@appium/base-driver/node_modules/axios/index.d.ts +787 -0
  55. package/node_modules/@appium/base-driver/node_modules/axios/index.js +45 -0
  56. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/README.md +36 -0
  57. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/adapters.js +132 -0
  58. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/fetch.js +696 -0
  59. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/http.js +1490 -0
  60. package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/xhr.js +277 -0
  61. package/node_modules/@appium/base-driver/node_modules/axios/lib/axios.js +89 -0
  62. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  63. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  64. package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/isCancel.js +5 -0
  65. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/Axios.js +306 -0
  66. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosError.js +219 -0
  67. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
  68. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/InterceptorManager.js +171 -0
  69. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/README.md +8 -0
  70. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/buildFullPath.js +76 -0
  71. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/dispatchRequest.js +95 -0
  72. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/mergeConfig.js +174 -0
  73. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/methodList.js +17 -0
  74. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  75. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/settle.js +27 -0
  76. package/node_modules/@appium/base-driver/node_modules/axios/lib/core/transformData.js +28 -0
  77. package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/index.js +178 -0
  78. package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/transitional.js +10 -0
  79. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/README.md +3 -0
  80. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/classes/FormData.js +2 -0
  81. package/node_modules/@appium/base-driver/node_modules/axios/lib/env/data.js +1 -0
  82. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
  83. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
  84. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
  85. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
  86. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/README.md +7 -0
  87. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
  88. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/bind.js +14 -0
  89. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/buildURL.js +69 -0
  90. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/callbackify.js +18 -0
  91. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/combineURLs.js +23 -0
  92. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/composeSignals.js +68 -0
  93. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/cookies.js +64 -0
  94. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
  95. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
  96. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
  97. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
  98. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
  99. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
  100. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  101. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
  102. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  103. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/null.js +2 -0
  104. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
  105. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  106. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
  107. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/readBlob.js +15 -0
  108. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
  109. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  110. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
  111. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/speedometer.js +55 -0
  112. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/spread.js +28 -0
  113. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/throttle.js +45 -0
  114. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toFormData.js +279 -0
  115. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  116. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/trackStream.js +89 -0
  117. package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/validator.js +112 -0
  118. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  119. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  120. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  121. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/index.js +13 -0
  122. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/common/utils.js +52 -0
  123. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/index.js +7 -0
  124. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  125. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  126. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  127. package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/index.js +37 -0
  128. package/node_modules/@appium/base-driver/node_modules/axios/lib/utils.js +1150 -0
  129. package/node_modules/@appium/base-driver/node_modules/axios/package.json +203 -0
  130. package/node_modules/@appium/base-driver/package.json +6 -6
  131. package/node_modules/@appium/support/build/lib/npm.d.ts.map +1 -1
  132. package/node_modules/@appium/support/build/lib/npm.js +2 -1
  133. package/node_modules/@appium/support/build/lib/npm.js.map +1 -1
  134. package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
  135. package/node_modules/@appium/support/build/lib/util.js +13 -1
  136. package/node_modules/@appium/support/build/lib/util.js.map +1 -1
  137. package/node_modules/@appium/support/build/lib/zip.d.ts +2 -1
  138. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  139. package/node_modules/@appium/support/build/lib/zip.js +193 -64
  140. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  141. package/node_modules/@appium/support/lib/npm.ts +2 -1
  142. package/node_modules/@appium/support/lib/util.ts +13 -1
  143. package/node_modules/@appium/support/lib/zip.ts +231 -71
  144. package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +1934 -0
  145. package/node_modules/@appium/support/node_modules/axios/LICENSE +7 -0
  146. package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +877 -0
  147. package/node_modules/@appium/support/node_modules/axios/README.md +2851 -0
  148. package/node_modules/@appium/support/node_modules/axios/dist/axios.js +5807 -0
  149. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +5 -0
  150. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +1 -0
  151. package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +5829 -0
  152. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +5850 -0
  153. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +3 -0
  154. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  155. package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +6808 -0
  156. package/node_modules/@appium/support/node_modules/axios/index.d.cts +766 -0
  157. package/node_modules/@appium/support/node_modules/axios/index.d.ts +787 -0
  158. package/node_modules/@appium/support/node_modules/axios/index.js +45 -0
  159. package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +36 -0
  160. package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +132 -0
  161. package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +696 -0
  162. package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +1490 -0
  163. package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +277 -0
  164. package/node_modules/@appium/support/node_modules/axios/lib/axios.js +89 -0
  165. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  166. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  167. package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +5 -0
  168. package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +306 -0
  169. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +219 -0
  170. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
  171. package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +171 -0
  172. package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +8 -0
  173. package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +76 -0
  174. package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +95 -0
  175. package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +174 -0
  176. package/node_modules/@appium/support/node_modules/axios/lib/core/methodList.js +17 -0
  177. package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  178. package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +27 -0
  179. package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +28 -0
  180. package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +178 -0
  181. package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +10 -0
  182. package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +3 -0
  183. package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +2 -0
  184. package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +1 -0
  185. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
  186. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
  187. package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
  188. package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
  189. package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +7 -0
  190. package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
  191. package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +14 -0
  192. package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +69 -0
  193. package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +18 -0
  194. package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +23 -0
  195. package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +68 -0
  196. package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +64 -0
  197. package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
  198. package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
  199. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
  200. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
  201. package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
  202. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
  203. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  204. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
  205. package/node_modules/@appium/support/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  206. package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +2 -0
  207. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
  208. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  209. package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
  210. package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +15 -0
  211. package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
  212. package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  213. package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
  214. package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +55 -0
  215. package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +28 -0
  216. package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +45 -0
  217. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +279 -0
  218. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  219. package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +89 -0
  220. package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +112 -0
  221. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  222. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  223. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  224. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +13 -0
  225. package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +52 -0
  226. package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +7 -0
  227. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  228. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  229. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  230. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +37 -0
  231. package/node_modules/@appium/support/node_modules/axios/lib/utils.js +1150 -0
  232. package/node_modules/@appium/support/node_modules/axios/package.json +203 -0
  233. package/node_modules/@appium/support/package.json +6 -6
  234. package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts +6 -4
  235. package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts.map +1 -1
  236. package/node_modules/@appium/types/lib/commands/basedriver.ts +4 -4
  237. package/node_modules/@appium/types/package.json +2 -2
  238. package/node_modules/axios/README.md +41 -106
  239. package/node_modules/axios/dist/axios.js +931 -278
  240. package/node_modules/axios/dist/axios.min.js +2 -2
  241. package/node_modules/axios/dist/axios.min.js.map +1 -1
  242. package/node_modules/axios/dist/browser/axios.cjs +948 -268
  243. package/node_modules/axios/dist/esm/axios.js +948 -268
  244. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  245. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  246. package/node_modules/axios/dist/node/axios.cjs +925 -242
  247. package/node_modules/axios/index.d.cts +20 -1
  248. package/node_modules/axios/index.d.ts +18 -1
  249. package/node_modules/axios/lib/adapters/fetch.js +73 -20
  250. package/node_modules/axios/lib/adapters/http.js +145 -26
  251. package/node_modules/axios/lib/adapters/xhr.js +120 -13
  252. package/node_modules/axios/lib/core/Axios.js +67 -12
  253. package/node_modules/axios/lib/core/AxiosError.js +59 -0
  254. package/node_modules/axios/lib/core/AxiosHeaders.js +17 -4
  255. package/node_modules/axios/lib/core/InterceptorManager.js +13 -2
  256. package/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
  257. package/node_modules/axios/lib/core/createMultipartBody.js +37 -0
  258. package/node_modules/axios/lib/core/dispatchRequest.js +20 -0
  259. package/node_modules/axios/lib/core/mergeConfig.js +183 -120
  260. package/node_modules/axios/lib/defaults/transitional.js +1 -0
  261. package/node_modules/axios/lib/env/data.js +1 -1
  262. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
  263. package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -1
  264. package/node_modules/axios/lib/helpers/composeSignals.js +6 -3
  265. package/node_modules/axios/lib/helpers/cookies.js +30 -6
  266. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +34 -7
  267. package/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
  268. package/node_modules/axios/lib/helpers/formDataToJSON.js +25 -1
  269. package/node_modules/axios/lib/helpers/fromDataURI.js +8 -2
  270. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
  271. package/node_modules/axios/lib/helpers/parseHeaders.js +2 -1
  272. package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
  273. package/node_modules/axios/lib/helpers/resolveConfig.js +16 -3
  274. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +16 -1
  275. package/node_modules/axios/lib/utils.js +61 -10
  276. package/node_modules/axios/package.json +1 -2
  277. package/node_modules/body-parser/README.md +17 -13
  278. package/node_modules/body-parser/lib/read.js +74 -57
  279. package/node_modules/body-parser/lib/types/json.js +11 -11
  280. package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
  281. package/node_modules/body-parser/lib/utils.js +0 -15
  282. package/node_modules/body-parser/package.json +7 -12
  283. package/node_modules/follow-redirects/README.md +27 -1
  284. package/node_modules/follow-redirects/index.js +1 -5
  285. package/node_modules/follow-redirects/package.json +1 -1
  286. package/node_modules/qs/.editorconfig +1 -1
  287. package/node_modules/qs/CHANGELOG.md +45 -22
  288. package/node_modules/qs/README.md +26 -1
  289. package/node_modules/qs/dist/qs.js +27 -27
  290. package/node_modules/qs/eslint.config.mjs +61 -50
  291. package/node_modules/qs/lib/formats.js +7 -2
  292. package/node_modules/qs/lib/parse.js +13 -6
  293. package/node_modules/qs/lib/stringify.js +5 -3
  294. package/node_modules/qs/lib/utils.js +15 -7
  295. package/node_modules/qs/package.json +6 -6
  296. package/node_modules/qs/test/parse.js +266 -2
  297. package/node_modules/qs/test/stringify.js +222 -0
  298. package/node_modules/qs/test/utils.js +61 -3
  299. package/node_modules/shell-quote/README.md +37 -4
  300. package/node_modules/shell-quote/package.json +10 -6
  301. package/node_modules/shell-quote/parse.d.ts +1 -1
  302. package/node_modules/shell-quote/parse.js +63 -11
  303. package/node_modules/shell-quote/quote.d.ts +2 -1
  304. package/node_modules/shell-quote/quote.js +23 -3
  305. package/node_modules/uuid/package.json +17 -17
  306. package/node_modules/ws/lib/websocket.js +17 -3
  307. package/node_modules/ws/package.json +1 -1
  308. package/package.json +2 -2
  309. package/node_modules/@appium/base-driver/node_modules/asyncbox/LICENSE +0 -203
  310. package/node_modules/@appium/base-driver/node_modules/asyncbox/README.md +0 -215
  311. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  312. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  313. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -311
  314. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  315. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  316. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  317. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  318. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  319. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/package.json +0 -3
  320. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  321. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  322. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -298
  323. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  324. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  325. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  326. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  327. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  328. package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/package.json +0 -3
  329. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncbox.ts +0 -382
  330. package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/types.ts +0 -88
  331. package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +0 -74
  332. package/node_modules/@appium/support/node_modules/asyncbox/LICENSE +0 -203
  333. package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -215
  334. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  335. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  336. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -311
  337. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  338. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
  339. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
  340. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
  341. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
  342. package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
  343. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  344. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  345. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -298
  346. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  347. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
  348. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
  349. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
  350. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
  351. package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
  352. package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +0 -382
  353. package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
  354. package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
  355. package/node_modules/shell-quote/.nycrc +0 -14
  356. package/node_modules/shell-quote/eslint.config.mjs +0 -29
  357. package/node_modules/shell-quote/security.md +0 -11
  358. package/node_modules/shell-quote/test/comment.js +0 -16
  359. package/node_modules/shell-quote/test/env.js +0 -52
  360. package/node_modules/shell-quote/test/env_fn.js +0 -21
  361. package/node_modules/shell-quote/test/op.js +0 -102
  362. package/node_modules/shell-quote/test/parse.js +0 -149
  363. package/node_modules/shell-quote/test/quote.js +0 -145
  364. package/node_modules/shell-quote/test/set.js +0 -31
@@ -1,298 +0,0 @@
1
- const LONG_SLEEP_THRESHOLD = 5000; // anything over 5000ms will turn into a spin
2
- // p-limit is ESM-only. tsc downlevels a plain `import()` in CommonJS output into a
3
- // require()-in-a-microtask, which still hits Node's require(esm) interop and can race with a
4
- // concurrent dynamic import() of the same module elsewhere in the process
5
- // (ERR_REQUIRE_ESM_RACE_CONDITION). Route through `new Function` so tsc can't see or rewrite the
6
- // import() call, keeping it a genuine native dynamic import in both the ESM and CJS builds.
7
- const dynamicImport = new Function('specifier', 'return import(specifier)');
8
- /** Error thrown by {@link withTimeout} when the deadline is exceeded. */
9
- export class TimeoutError extends Error {
10
- constructor(message) {
11
- super(message ?? 'Operation timed out');
12
- this.name = 'TimeoutError';
13
- }
14
- }
15
- /** Thrown when a promise is cancelled via `cancel`. */
16
- export class PromiseCancellationError extends Error {
17
- constructor(message = 'Promise cancelled') {
18
- super(message);
19
- this.name = 'PromiseCancellationError';
20
- }
21
- }
22
- export function sleep(arg) {
23
- const { ms, cancelError } = parseSleepArg(arg);
24
- let timeoutId;
25
- let resolveFn;
26
- let rejectFn;
27
- const promise = new Promise((resolve, reject) => {
28
- resolveFn = resolve;
29
- rejectFn = reject;
30
- timeoutId = setTimeout(resolve, ms);
31
- });
32
- promise.cancel = () => {
33
- if (timeoutId) {
34
- clearTimeout(timeoutId);
35
- timeoutId = undefined;
36
- }
37
- if (cancelError === null) {
38
- resolveFn?.(undefined);
39
- }
40
- else {
41
- let err;
42
- if (typeof cancelError === 'string' && cancelError) {
43
- err = new PromiseCancellationError(cancelError);
44
- }
45
- else if (cancelError instanceof Error) {
46
- err = cancelError;
47
- }
48
- else {
49
- err = new PromiseCancellationError();
50
- }
51
- rejectFn?.(err);
52
- }
53
- resolveFn = undefined;
54
- rejectFn = undefined;
55
- };
56
- return promise;
57
- }
58
- /**
59
- * Resolves with `promise` or rejects if it does not settle before `timeoutMs`.
60
- *
61
- * If the deadline passes first: with no third argument (or a falsy non-error value), rejects
62
- * with {@link TimeoutError} whose message includes `timeoutMs`; with a non-empty string,
63
- * rejects with {@link TimeoutError} using that message; with an `Error` instance, rejects
64
- * with that same instance.
65
- *
66
- * @param promise - Promise to race against the timeout.
67
- * @param timeoutMs - Maximum time in milliseconds before rejecting if `promise` has not settled.
68
- * @param messageOrError - Optional override for the timeout rejection: custom {@link TimeoutError}
69
- * message when the string is non-empty, or an existing `Error` to reject with verbatim.
70
- * Omitted, `undefined`, or other falsy non-error values use the default timeout message (includes `timeoutMs`).
71
- */
72
- export async function withTimeout(promise, timeoutMs, messageOrError) {
73
- let timer = null;
74
- try {
75
- return await Promise.race([
76
- promise,
77
- new Promise((_resolve, reject) => {
78
- timer = setTimeout(() => {
79
- if (typeof messageOrError === 'string' && messageOrError) {
80
- reject(new TimeoutError(messageOrError));
81
- }
82
- else if (!messageOrError) {
83
- reject(new TimeoutError(`Operation timed out after ${timeoutMs}ms`));
84
- }
85
- else {
86
- reject(messageOrError);
87
- }
88
- }, timeoutMs);
89
- }),
90
- ]);
91
- }
92
- finally {
93
- if (timer) {
94
- clearTimeout(timer);
95
- }
96
- }
97
- }
98
- /**
99
- * Sometimes `Promise.delay` or `setTimeout` are inaccurate for large wait
100
- * times. To safely wait for these long times (e.g. in the 5+ minute range), you
101
- * can use `longSleep`.
102
- *
103
- * You can also pass a `progressCb` option which is a callback function that
104
- * receives an object with the properties `elapsedMs`, `timeLeft`, and
105
- * `progress`. This will be called on every wait interval so you can do your
106
- * wait logging or whatever.
107
- * @param ms - The number of milliseconds to wait
108
- * @param options - Options for controlling the long sleep behavior
109
- */
110
- export async function longSleep(ms, { thresholdMs = LONG_SLEEP_THRESHOLD, intervalMs = 1000, progressCb = null } = {}) {
111
- if (ms < thresholdMs) {
112
- return await sleep(ms);
113
- }
114
- const endAt = Date.now() + ms;
115
- let timeLeft;
116
- let elapsedMs = 0;
117
- do {
118
- const pre = Date.now();
119
- await sleep(intervalMs);
120
- const post = Date.now();
121
- timeLeft = endAt - post;
122
- elapsedMs = elapsedMs + (post - pre);
123
- if (typeof progressCb === 'function') {
124
- progressCb({ elapsedMs, timeLeft, progress: elapsedMs / ms });
125
- }
126
- } while (timeLeft > 0);
127
- }
128
- /**
129
- * An async/await way of running a method until it doesn't throw an error
130
- * @param times - The maximum number of times to retry the function
131
- * @param fn - The async function to retry
132
- * @param args - Arguments to pass to the function
133
- */
134
- export async function retry(times, fn, ...args) {
135
- let tries = 0;
136
- let done = false;
137
- let res = null;
138
- while (!done && tries < times) {
139
- tries++;
140
- try {
141
- res = await fn(...args);
142
- done = true;
143
- }
144
- catch (err) {
145
- if (tries >= times) {
146
- throw err;
147
- }
148
- }
149
- }
150
- return res;
151
- }
152
- /**
153
- * You can also use `retryInterval` to add a sleep in between retries. This can
154
- * be useful if you want to throttle how fast we retry.
155
- * @param times - The maximum number of times to retry the function
156
- * @param sleepMs - The number of milliseconds to wait between retries
157
- * @param fn - The async function to retry
158
- * @param args - Arguments to pass to the function
159
- */
160
- export async function retryInterval(times, sleepMs, fn, ...args) {
161
- let count = 0;
162
- const wrapped = async () => {
163
- count++;
164
- let res;
165
- try {
166
- res = await fn(...args);
167
- }
168
- catch (e) {
169
- // do not pause when finished the last retry
170
- if (count !== times) {
171
- await sleep(sleepMs);
172
- }
173
- throw e;
174
- }
175
- return res;
176
- };
177
- return await retry(times, wrapped);
178
- }
179
- /**
180
- * Similar to `Array.prototype.map`; runs in parallel, serial, or with custom concurrency pool
181
- * @param coll - The collection to map over
182
- * @param mapper - The function to apply to each element
183
- * @param options - Options for controlling parallelism (default: true - fully parallel)
184
- */
185
- export async function asyncmap(coll, mapper, options = true) {
186
- if (options === null) {
187
- throw new Error('Options cannot be null');
188
- }
189
- // limitFunction requires the mapper to always return a promise
190
- const mapperAsync = async (value) => mapper(value);
191
- if (options === false) {
192
- return coll.reduce(async (acc, item) => [...(await acc), await mapperAsync(item)], Promise.resolve([]));
193
- }
194
- const adjustedMapper = options === true ? mapperAsync : (await getLimitFunction())(mapperAsync, { concurrency: options.concurrency });
195
- return Promise.all(coll.map(adjustedMapper));
196
- }
197
- /**
198
- * Similar to `Array.prototype.filter`; runs in parallel, serial, or with custom concurrency pool
199
- * @param coll - The collection to filter
200
- * @param filter - The function to test each element
201
- * @param options - Options for controlling parallelism (default: true - fully parallel)
202
- */
203
- export async function asyncfilter(coll, filter, options = true) {
204
- if (options === null) {
205
- throw new Error('Options cannot be null');
206
- }
207
- // limitFunction requires the filter to always return a promise
208
- const filterAsync = async (value) => filter(value);
209
- if (options === false) {
210
- return coll.reduce(async (accP, item) => {
211
- const acc = await accP;
212
- if (await filterAsync(item)) {
213
- acc.push(item);
214
- }
215
- return acc;
216
- }, Promise.resolve([]));
217
- }
218
- const adjustedFilter = options === true ? filterAsync : (await getLimitFunction())(filterAsync, { concurrency: options.concurrency });
219
- const bools = await Promise.all(coll.map(adjustedFilter));
220
- return coll.reduce((acc, item, i) => {
221
- if (bools[i]) {
222
- acc.push(item);
223
- }
224
- return acc;
225
- }, []);
226
- }
227
- /**
228
- * Takes a condition (a function returning a boolean or boolean promise), and
229
- * waits until the condition is true.
230
- *
231
- * Throws a `/Condition unmet/` error if the condition has not been satisfied
232
- * within the allocated time, unless an error is provided in the options, as the
233
- * `error` property, which is either thrown itself, or used as the message.
234
- *
235
- * The condition result is returned if it is not falsy. If the condition throws an
236
- * error then this exception will be immediately passed through.
237
- *
238
- * The default options are: `{ waitMs: 5000, intervalMs: 500 }`
239
- * @param condFn - The condition function to evaluate
240
- * @param options - Options for controlling the wait behavior
241
- */
242
- export async function waitForCondition(condFn, options = {}) {
243
- const opts = {
244
- ...options,
245
- waitMs: typeof options.waitMs === 'number' ? options.waitMs : 5000,
246
- intervalMs: typeof options.intervalMs === 'number' ? options.intervalMs : 500,
247
- };
248
- const debug = opts.logger ? opts.logger.debug.bind(opts.logger) : () => undefined;
249
- const error = opts.error;
250
- const begunAt = Date.now();
251
- const endAt = begunAt + opts.waitMs;
252
- const spin = async function spin() {
253
- const result = await condFn();
254
- if (result) {
255
- return result;
256
- }
257
- const now = Date.now();
258
- const waited = now - begunAt;
259
- const remainingTime = endAt - now;
260
- if (now < endAt) {
261
- debug(`Waited for ${waited} ms so far`);
262
- await sleep(Math.min(opts.intervalMs, remainingTime));
263
- return await spin();
264
- }
265
- // if there is an error option, it is either a string message or an error itself
266
- if (error) {
267
- throw typeof error === 'string' ? new Error(error) : error;
268
- }
269
- throw new Error(`Condition unmet after ${waited} ms. Timing out.`);
270
- };
271
- return await spin();
272
- }
273
- /** Non-array object values (including class instances); excludes `null` and arrays. */
274
- function isSleepArgObject(value) {
275
- return value !== null && typeof value === 'object' && !Array.isArray(value);
276
- }
277
- function parseSleepArg(arg) {
278
- if (typeof arg === 'number') {
279
- if (!Number.isFinite(arg)) {
280
- throw new TypeError('sleep: expected a finite number or an object with ms');
281
- }
282
- return { ms: arg };
283
- }
284
- if (isSleepArgObject(arg)) {
285
- const ms = arg.ms;
286
- if (typeof ms !== 'number' || !Number.isFinite(ms)) {
287
- throw new TypeError('sleep: options.ms must be a finite number');
288
- }
289
- return { ms, cancelError: arg.cancelError };
290
- }
291
- throw new TypeError('sleep: expected a finite number or an object with ms');
292
- }
293
- let limitFunctionPromise;
294
- async function getLimitFunction() {
295
- limitFunctionPromise ??= dynamicImport('p-limit');
296
- return (await limitFunctionPromise).limitFunction;
297
- }
298
- //# sourceMappingURL=asyncbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncbox.js","sourceRoot":"","sources":["../../../lib/asyncbox.ts"],"names":[],"mappings":"AAWA,MAAM,oBAAoB,GAAG,IAAI,CAAC,CAAC,6CAA6C;AAIhF,mFAAmF;AACnF,6FAA6F;AAC7F,0EAA0E;AAC1E,iGAAiG;AACjG,4FAA4F;AAC5F,MAAM,aAAa,GAAG,IAAI,QAAQ,CAAC,WAAW,EAAE,0BAA0B,CAEhD,CAAC;AAE3B,yEAAyE;AACzE,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,IAAI,qBAAqB,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AAED,uDAAuD;AACvD,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IACjD,YAAY,UAAkB,mBAAmB;QAC/C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;CACF;AAoBD,MAAM,UAAU,KAAK,CAAC,GAAa;IACjC,MAAM,EAAC,EAAE,EAAE,WAAW,EAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IAC7C,IAAI,SAAqC,CAAC;IAC1C,IAAI,SAA8C,CAAC;IACnD,IAAI,QAA8C,CAAC;IAEnD,MAAM,OAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACpD,SAAS,GAAG,OAAO,CAAC;QACpB,QAAQ,GAAG,MAAM,CAAC;QAClB,SAAS,GAAG,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACtC,CAAC,CAA6B,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AI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,aAAa,CAAC,GAAa;IAClC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,SAAS,CAAC,sDAAsD,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,EAAC,EAAE,EAAE,GAAG,EAAC,CAAC;IACnB,CAAC;IACD,IAAI,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;QAClB,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;YACnD,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;QACnE,CAAC;QACD,OAAO,EAAC,EAAE,EAAE,WAAW,EAAE,GAAG,CAAC,WAAgD,EAAC,CAAC;IACjF,CAAC;IACD,MAAM,IAAI,SAAS,CAAC,sDAAsD,CAAC,CAAC;AAC9E,CAAC;AAED,IAAI,oBAAuD,CAAC;AAC5D,KAAK,UAAU,gBAAgB;IAC7B,oBAAoB,KAAK,aAAa,CAAC,SAAS,CAAC,CAAC;IAClD,OAAO,CAAC,MAAM,oBAAoB,CAAC,CAAC,aAAa,CAAC;AACpD,CAAC"}
@@ -1,84 +0,0 @@
1
- /**
2
- * Parameter provided to a progress callback
3
- */
4
- export interface Progress {
5
- /** Elapsed time in milliseconds since the operation started */
6
- elapsedMs: number;
7
- /** Remaining time in milliseconds until the operation completes */
8
- timeLeft: number;
9
- /** Progress as a number between 0 and 1 (0 = not started, 1 = complete) */
10
- progress: number;
11
- }
12
- /**
13
- * Progress callback for {@link longSleep}
14
- */
15
- export type ProgressCallback = (progress: Progress) => void;
16
- /**
17
- * Options for {@link longSleep}
18
- */
19
- export interface LongSleepOptions {
20
- /** Minimum duration in milliseconds before using long sleep behavior.
21
- * @default 5000
22
- */
23
- thresholdMs?: number;
24
- /** Interval in milliseconds between progress callbacks.
25
- * @default 1000
26
- */
27
- intervalMs?: number;
28
- /** Optional callback function to receive progress updates during the sleep */
29
- progressCb?: ProgressCallback | null;
30
- }
31
- /**
32
- * Options for {@link asyncmap} and {@link asyncfilter}
33
- */
34
- export type MapFilterOptions = boolean | {
35
- concurrency: number;
36
- };
37
- /**
38
- * Object form of {@link sleep}'s argument: duration plus optional cancellation rejection override.
39
- * Structural typing allows class instances; {@link sleep} accepts any non-array object with a finite `ms`.
40
- */
41
- export interface SleepOptions {
42
- /** Duration in milliseconds */
43
- ms: number;
44
- /**
45
- * When {@link sleep}'s `cancel` runs: a non-empty string becomes {@link PromiseCancellationError}
46
- * with that message; an `Error` rejects with that same instance; `null` resolves the promise
47
- * instead of rejecting; omitted, `undefined`, or `''` use the default {@link PromiseCancellationError}.
48
- */
49
- cancelError?: string | Error | null;
50
- }
51
- /**
52
- * Argument to {@link sleep}: either milliseconds or an options object (see {@link SleepOptions}).
53
- */
54
- export type SleepArg = number | SleepOptions;
55
- /**
56
- * A promise with a {@linkcode cancel} method (e.g. from {@link sleep}).
57
- *
58
- * @typeParam T - Resolved value type; {@link sleep} uses `void`.
59
- */
60
- export type CancellablePromise<T = void> = Promise<T> & {
61
- cancel: () => void;
62
- };
63
- /**
64
- * Options for {@link waitForCondition}
65
- */
66
- export interface WaitForConditionOptions {
67
- /** Maximum time to wait in milliseconds.
68
- * @default 5000
69
- */
70
- waitMs?: number;
71
- /** Interval in milliseconds between condition checks.
72
- * @default 500
73
- */
74
- intervalMs?: number;
75
- /** Optional logger object with a debug method for logging wait progress */
76
- logger?: {
77
- debug: (...args: any[]) => void;
78
- };
79
- /** Custom error message (string) or Error object to throw if condition is not met.
80
- * If not provided, a default error is thrown
81
- */
82
- error?: string | Error;
83
- }
84
- //#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EAAE;QACP,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;KACjC,CAAC;IACF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CACxB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/types.ts"],"names":[],"mappings":""}