appium-espresso-driver 10.2.0 → 10.2.1
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.
- package/CHANGELOG.md +6 -0
- package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
- package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
- package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/node_modules/{appium-android-driver → @appium/base-driver}/node_modules/asyncbox/README.md +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/index.ts +28 -0
- package/node_modules/{appium-android-driver → @appium/base-driver}/node_modules/asyncbox/package.json +26 -12
- package/node_modules/{appium-adb → @appium/support}/node_modules/asyncbox/README.md +1 -1
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncfilter.d.ts +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncfilter.js +6 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncmap.d.ts +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/cjs/lib}/asyncmap.js +6 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.js +55 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.js +28 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/lock → @appium/support/node_modules/asyncbox/build/cjs/lib}/lock.js +15 -21
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/long-sleep.d.ts +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/sleep.d.ts +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/sleep.js +7 -4
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +3 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/cjs/lib}/types.js.map +1 -1
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/wait-for-condition.d.ts +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/wait-for-condition.js +9 -6
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/with-timeout.js +7 -4
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +3 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/esm/lib}/asyncfilter.js +2 -2
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/esm/lib}/asyncmap.d.ts +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/collections → @appium/support/node_modules/asyncbox/build/esm/lib}/asyncmap.js +2 -2
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.js +10 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/lock → @appium/support/node_modules/asyncbox/build/esm/lib}/lock.js +3 -13
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/sleep.d.ts +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/sleep.js +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/esm/lib}/types.js.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/wait-for-condition.js +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/with-timeout.js +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +3 -0
- package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/collections → @appium/support/node_modules/asyncbox/lib}/asyncfilter.ts +3 -3
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/collections → @appium/support/node_modules/asyncbox/lib}/asyncmap.ts +3 -3
- package/node_modules/@appium/support/node_modules/asyncbox/lib/index.ts +28 -0
- package/node_modules/@appium/support/node_modules/asyncbox/lib/limit-function.ts +18 -0
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/lock → @appium/support/node_modules/asyncbox/lib}/lock.ts +6 -13
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/long-sleep.ts +1 -1
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/sleep.ts +2 -2
- package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/wait-for-condition.ts +2 -2
- package/node_modules/{appium-chromedriver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/with-timeout.ts +1 -1
- package/node_modules/{appium-adb → @appium/support}/node_modules/asyncbox/package.json +26 -12
- package/node_modules/@appium/support/node_modules/p-limit/index.d.ts +138 -0
- package/node_modules/@appium/support/node_modules/p-limit/index.js +148 -0
- package/node_modules/@appium/support/node_modules/p-limit/license +9 -0
- package/node_modules/@appium/support/node_modules/p-limit/package.json +58 -0
- package/node_modules/@appium/support/node_modules/p-limit/readme.md +183 -0
- package/node_modules/asyncbox/README.md +1 -1
- package/node_modules/asyncbox/lib/index.ts +11 -11
- package/node_modules/asyncbox/package.json +12 -26
- package/package.json +2 -2
- package/node_modules/appium-adb/node_modules/asyncbox/lib/index.ts +0 -28
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +0 -7
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js +0 -35
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts +0 -12
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js +0 -10
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +0 -1
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncmap.ts +0 -33
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/limit-function.ts +0 -34
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/index.ts +0 -28
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/lock/lock.ts +0 -369
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/long-sleep.ts +0 -38
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/sleep.ts +0 -79
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/with-timeout.ts +0 -43
- package/node_modules/appium-chromedriver/node_modules/asyncbox/LICENSE +0 -203
- package/node_modules/appium-chromedriver/node_modules/asyncbox/README.md +0 -272
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +0 -9
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +0 -7
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js +0 -35
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts +0 -12
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js +0 -10
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +0 -15
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +0 -18
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +0 -1
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncfilter.ts +0 -42
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/limit-function.ts +0 -34
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/index.ts +0 -28
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/wait-for-condition.ts +0 -52
- package/node_modules/appium-chromedriver/node_modules/asyncbox/package.json +0 -60
- package/node_modules/asyncbox/build/esm/lib/errors.js +0 -46
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js +0 -33
- package/node_modules/asyncbox/build/esm/lib/retry.js +0 -53
- package/node_modules/asyncbox/build/esm/lib/types.js +0 -2
- package/node_modules/asyncbox/lib/errors.ts +0 -51
- package/node_modules/asyncbox/lib/retry.ts +0 -61
- package/node_modules/asyncbox/lib/types.ts +0 -88
- package/node_modules/io.appium.settings/node_modules/asyncbox/LICENSE +0 -203
- package/node_modules/io.appium.settings/node_modules/asyncbox/README.md +0 -272
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +0 -9
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js +0 -36
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +0 -9
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js +0 -27
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +0 -7
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js +0 -35
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts +0 -12
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js +0 -10
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts +0 -74
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js +0 -302
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts +0 -27
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js +0 -46
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts +0 -84
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js +0 -2
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +0 -15
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js +0 -33
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts +0 -17
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js +0 -53
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts +0 -20
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js +0 -58
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +0 -18
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js +0 -48
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +0 -16
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js +0 -42
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js.map +0 -1
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncfilter.ts +0 -42
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncmap.ts +0 -33
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/limit-function.ts +0 -34
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/index.ts +0 -28
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/lock/lock.ts +0 -369
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/errors.ts +0 -51
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/types.ts +0 -88
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/long-sleep.ts +0 -38
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/retry.ts +0 -61
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/sleep.ts +0 -79
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/wait-for-condition.ts +0 -52
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/with-timeout.ts +0 -43
- package/node_modules/io.appium.settings/node_modules/asyncbox/package.json +0 -60
- /package/node_modules/{appium-adb → @appium/base-driver}/node_modules/asyncbox/LICENSE +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncfilter.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/asyncmap.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/errors.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/errors.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/errors.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/errors.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/index.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/limit-function.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/lock → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/lock.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/lock.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/lock.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/lock.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/long-sleep.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/retry.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/retry.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/retry.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/retry.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/sleep.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/types.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/types.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/types.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/types.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/wait-for-condition.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/cjs/lib}/with-timeout.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/with-timeout.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/with-timeout.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/lib/with-timeout.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/cjs/package.json +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncfilter.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/asyncmap.js.map +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/errors.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/errors.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/errors.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/errors.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/index.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/limit-function.js.map +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/lock → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/lock.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/lock.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/lock.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/lock.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/long-sleep.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/long-sleep.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/long-sleep.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/long-sleep.js.map +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/retry.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/retry.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/retry.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/retry.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/sleep.js.map +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/types.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/types.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/build/lib/shared → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/types.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/types.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/wait-for-condition.js.map +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/base-driver/node_modules/asyncbox/build/esm/lib}/with-timeout.d.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/with-timeout.d.ts.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/with-timeout.js +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/lib/with-timeout.js.map +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/build/esm/package.json +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/asyncfilter.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/asyncmap.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/lib/shared → @appium/base-driver/node_modules/asyncbox/lib}/errors.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/limit-function.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/lock.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/long-sleep.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/lib/time → @appium/base-driver/node_modules/asyncbox/lib}/retry.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/sleep.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox/lib/shared → @appium/base-driver/node_modules/asyncbox/lib}/types.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/wait-for-condition.ts +0 -0
- /package/node_modules/{asyncbox → @appium/base-driver/node_modules/asyncbox}/lib/with-timeout.ts +0 -0
- /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/index.d.ts +0 -0
- /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/index.js +0 -0
- /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/license +0 -0
- /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/package.json +0 -0
- /package/node_modules/{p-limit → @appium/base-driver/node_modules/p-limit}/readme.md +0 -0
- /package/node_modules/{appium-android-driver → @appium/support}/node_modules/asyncbox/LICENSE +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/cjs/lib}/errors.d.ts +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/lock → @appium/support/node_modules/asyncbox/build/cjs/lib}/lock.d.ts +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/retry.d.ts +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/cjs/lib}/types.d.ts +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/cjs/lib}/with-timeout.d.ts +0 -0
- /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/errors.d.ts +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/esm/lib}/errors.js +0 -0
- /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/lock.d.ts +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/long-sleep.js +0 -0
- /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/retry.d.ts +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/time → @appium/support/node_modules/asyncbox/build/esm/lib}/retry.js +0 -0
- /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/types.d.ts +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/build/lib/shared → @appium/support/node_modules/asyncbox/build/esm/lib}/types.js +0 -0
- /package/node_modules/{asyncbox/build/cjs → @appium/support/node_modules/asyncbox/build/esm}/lib/with-timeout.d.ts +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/shared → @appium/support/node_modules/asyncbox/lib}/errors.ts +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/time → @appium/support/node_modules/asyncbox/lib}/retry.ts +0 -0
- /package/node_modules/{appium-android-driver/node_modules/asyncbox/lib/shared → @appium/support/node_modules/asyncbox/lib}/types.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncfilter.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/asyncmap.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/collections/limit-function.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/index.js.map +0 -0
- /package/node_modules/asyncbox/build/{esm/lib → lib/lock}/lock.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/lock/lock.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/lock/lock.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/lock/lock.js.map +0 -0
- /package/node_modules/asyncbox/build/{esm/lib → lib/shared}/errors.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/errors.d.ts.map +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/shared/errors.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/errors.js.map +0 -0
- /package/node_modules/asyncbox/build/{esm/lib → lib/shared}/types.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/types.d.ts.map +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/shared/types.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/shared/types.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.d.ts.map +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/long-sleep.js.map +0 -0
- /package/node_modules/asyncbox/build/{esm/lib → lib/time}/retry.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/retry.d.ts.map +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/build/lib/time/retry.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/retry.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/sleep.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/wait-for-condition.js.map +0 -0
- /package/node_modules/asyncbox/build/{esm/lib → lib/time}/with-timeout.d.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/with-timeout.d.ts.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/with-timeout.js +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/build/lib/time/with-timeout.js.map +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/collections/asyncfilter.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/collections/asyncmap.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/collections/limit-function.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/lock/lock.ts +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/lib/shared/errors.ts +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/lib/shared/types.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/long-sleep.ts +0 -0
- /package/node_modules/{appium-chromedriver/node_modules/asyncbox → asyncbox}/lib/time/retry.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/sleep.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/wait-for-condition.ts +0 -0
- /package/node_modules/{appium-adb/node_modules/asyncbox → asyncbox}/lib/time/with-timeout.ts +0 -0
package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"long-sleep.d.ts","sourceRoot":"","sources":["../../../lib/time/long-sleep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAKzD;;;;;;;;;;;GAWG;AACH,wBAAsB,SAAS,CAC7B,EAAE,EAAE,MAAM,EACV,EAAC,WAAkC,EAAE,UAAiB,EAAE,UAAiB,EAAC,GAAE,gBAAqB,GAChG,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"long-sleep.js","sourceRoot":"","sources":["../../../lib/time/long-sleep.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC,MAAM,oBAAoB,GAAG,IAAI,CAAC,CAAC,6CAA6C;AAEhF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,EAAU,EACV,EAAC,WAAW,GAAG,oBAAoB,EAAE,UAAU,GAAG,IAAI,EAAE,UAAU,GAAG,IAAI,KAAsB,EAAE;IAEjG,IAAI,EAAE,GAAG,WAAW,EAAE,CAAC;QACrB,OAAO,MAAM,KAAK,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC;IACD,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IACrC,IAAI,QAAgB,CAAC;IACrB,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,GAAG,CAAC;QACF,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;QAC9B,MAAM,KAAK,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;QAC/B,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC;QACxB,SAAS,GAAG,SAAS,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;QACrC,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE,CAAC;YACrC,UAAU,CAAC,EAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAC,CAAC,CAAC;QAC3G,CAAC;IACH,CAAC,QAAQ,QAAQ,GAAG,CAAC,EAAE;AACzB,CAAC"}
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../lib/time/retry.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAsB,KAAK,CAAC,CAAC,GAAG,GAAG,EACjC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,EAClC,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAgBnB;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,CAAC,GAAG,GAAG,EACzC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,EAClC,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAiBnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../lib/time/retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,KAAK,CACzB,KAAa,EACb,EAAkC,EAClC,GAAG,IAAW;IAEd,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,IAAI,GAAG,KAAK,CAAC;IACjB,IAAI,GAAG,GAAa,IAAI,CAAC;IACzB,OAAO,CAAC,IAAI,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;QAC9B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC;YACH,GAAG,GAAG,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;YACxB,IAAI,GAAG,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;gBACnB,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,KAAa,EACb,OAAe,EACf,EAAkC,EAClC,GAAG,IAAW;IAEd,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,MAAM,OAAO,GAAG,KAAK,IAAgB,EAAE;QACrC,KAAK,EAAE,CAAC;QACR,IAAI,GAAM,CAAC;QACX,IAAI,CAAC;YACH,GAAG,GAAG,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,4CAA4C;YAC5C,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;gBACpB,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;YACD,MAAM,CAAC,CAAC;QACV,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;IACF,OAAO,MAAM,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACrC,CAAC"}
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../lib/time/sleep.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAY,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAEnF;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC5D;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../../lib/time/sleep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,qBAAqB,CAAC;AAqB7D,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,CAAC;IAE/B,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE;QACpB,IAAI,SAAS,EAAE,CAAC;YACd,YAAY,CAAC,SAAS,CAAC,CAAC;YACxB,SAAS,GAAG,SAAS,CAAC;QACxB,CAAC;QACD,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;YACzB,SAAS,EAAE,CAAC,SAAS,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,IAAI,GAAU,CAAC;YACf,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,EAAE,CAAC;gBACnD,GAAG,GAAG,IAAI,wBAAwB,CAAC,WAAW,CAAC,CAAC;YAClD,CAAC;iBAAM,IAAI,WAAW,YAAY,KAAK,EAAE,CAAC;gBACxC,GAAG,GAAG,WAAW,CAAC;YACpB,CAAC;iBAAM,CAAC;gBACN,GAAG,GAAG,IAAI,wBAAwB,EAAE,CAAC;YACvC,CAAC;YACD,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;QAClB,CAAC;QACD,SAAS,GAAG,SAAS,CAAC;QACtB,QAAQ,GAAG,SAAS,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,uFAAuF;AACvF,SAAS,gBAAgB,CAAC,KAAc;IACtC,OAAO,KAAK,KAAK,IAAI,IAAI,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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { WaitForConditionOptions } from '../shared/types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Takes a condition (a function returning a boolean or boolean promise), and
|
|
4
|
-
* waits until the condition is true.
|
|
5
|
-
*
|
|
6
|
-
* Throws a {@link ConditionUnmetError} (a {@link TimeoutError}; message matches `/Condition unmet/`) if the condition has not been satisfied
|
|
7
|
-
* within the allocated time, unless an error is provided in the options, as the
|
|
8
|
-
* `error` property, which is either thrown itself, or used as the message.
|
|
9
|
-
*
|
|
10
|
-
* The condition result is returned if it is not falsy. If the condition throws an
|
|
11
|
-
* error then this exception will be immediately passed through.
|
|
12
|
-
*
|
|
13
|
-
* The default options are: `{ waitMs: 5000, intervalMs: 500 }`
|
|
14
|
-
* @param condFn - The condition function to evaluate
|
|
15
|
-
* @param options - Options for controlling the wait behavior
|
|
16
|
-
*/
|
|
17
|
-
export declare function waitForCondition<T>(condFn: () => Promise<T> | T, options?: WaitForConditionOptions): Promise<T>;
|
|
18
|
-
//# sourceMappingURL=wait-for-condition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wait-for-condition.d.ts","sourceRoot":"","sources":["../../../lib/time/wait-for-condition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAGhE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,MAAM,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EAC5B,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,CAAC,CAAC,CA6BZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wait-for-condition.js","sourceRoot":"","sources":["../../../lib/time/wait-for-condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA4B,EAC5B,UAAmC,EAAE;IAErC,MAAM,IAAI,GAAmE;QAC3E,GAAG,OAAO;QACV,MAAM,EAAE,OAAO,OAAO,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;QAClE,UAAU,EAAE,OAAO,OAAO,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG;KAC9E,CAAC;IACF,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;IAClF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;IACpC,SAAS,CAAC;QACR,MAAM,MAAM,GAAG,MAAM,MAAM,EAAE,CAAC;QAC9B,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC;QACzC,MAAM,aAAa,GAAG,KAAK,GAAG,GAAG,CAAC;QAClC,IAAI,GAAG,GAAG,KAAK,EAAE,CAAC;YAChB,KAAK,CAAC,cAAc,MAAM,YAAY,CAAC,CAAC;YACxC,MAAM,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;YACtD,SAAS;QACX,CAAC;QACD,gFAAgF;QAChF,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC3E,CAAC;QACD,MAAM,IAAI,mBAAmB,CAAC,yBAAyB,MAAM,kBAAkB,CAAC,CAAC;IACnF,CAAC;AACH,CAAC"}
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"with-timeout.d.ts","sourceRoot":"","sources":["../../../lib/time/with-timeout.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,MAAM,GAAG,KAAK,GAC9B,OAAO,CAAC,CAAC,CAAC,CAsBZ"}
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"with-timeout.js","sourceRoot":"","sources":["../../../lib/time/with-timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,OAAmB,EACnB,SAAiB,EACjB,cAA+B;IAE/B,IAAI,KAAK,GAA0B,IAAI,CAAC;IACxC,IAAI,CAAC;QACH,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC;YACxB,OAAO;YACP,IAAI,OAAO,CAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE;gBAClC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;oBACtB,IAAI,OAAO,cAAc,KAAK,QAAQ,IAAI,cAAc,EAAE,CAAC;wBACzD,MAAM,CAAC,IAAI,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC;oBAC3C,CAAC;yBAAM,IAAI,CAAC,cAAc,EAAE,CAAC;wBAC3B,MAAM,CAAC,IAAI,YAAY,CAAC,6BAA6B,SAAS,IAAI,CAAC,CAAC,CAAC;oBACvE,CAAC;yBAAM,CAAC;wBACN,MAAM,CAAC,cAAc,CAAC,CAAC;oBACzB,CAAC;gBACH,CAAC,EAAE,SAAS,CAAC,CAAC;YAChB,CAAC,CAAC;SACH,CAAC,CAAC;IACL,CAAC;YAAS,CAAC;QACT,IAAI,KAAK,EAAE,CAAC;YACV,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncfilter.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type {MapFilterOptions} from '../shared/types.js';
|
|
2
|
-
import {limitFunction} from './limit-function.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Similar to `Array.prototype.filter`; runs in parallel, serial, or with custom concurrency pool
|
|
6
|
-
* @param coll - The collection to filter
|
|
7
|
-
* @param filter - The function to test each element
|
|
8
|
-
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
9
|
-
*/
|
|
10
|
-
export async function asyncfilter<T>(
|
|
11
|
-
coll: T[],
|
|
12
|
-
filter: (value: T) => boolean | Promise<boolean>,
|
|
13
|
-
options: MapFilterOptions = true,
|
|
14
|
-
): Promise<T[]> {
|
|
15
|
-
if (options === null) {
|
|
16
|
-
throw new Error('Options cannot be null');
|
|
17
|
-
}
|
|
18
|
-
// limitFunction requires the filter to always return a promise
|
|
19
|
-
const filterAsync = async (value: T): Promise<boolean> => filter(value);
|
|
20
|
-
if (options === false) {
|
|
21
|
-
const items = coll.slice();
|
|
22
|
-
const results: T[] = [];
|
|
23
|
-
for (let i = 0; i < items.length; i++) {
|
|
24
|
-
if (i in items) {
|
|
25
|
-
const item = items[i];
|
|
26
|
-
if (await filterAsync(item)) {
|
|
27
|
-
results.push(item);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return results;
|
|
32
|
-
}
|
|
33
|
-
const adjustedFilter =
|
|
34
|
-
options === true ? filterAsync : limitFunction(filterAsync, {concurrency: options.concurrency});
|
|
35
|
-
const bools = await Promise.all(coll.map(adjustedFilter));
|
|
36
|
-
return coll.reduce<T[]>((acc, item, i) => {
|
|
37
|
-
if (bools[i]) {
|
|
38
|
-
acc.push(item);
|
|
39
|
-
}
|
|
40
|
-
return acc;
|
|
41
|
-
}, []);
|
|
42
|
-
}
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/limit-function.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wraps `fn` so at most `concurrency` calls run at once; extra calls queue in FIFO order.
|
|
3
|
-
*/
|
|
4
|
-
export function limitFunction<A extends unknown[], R>(
|
|
5
|
-
fn: (...args: A) => Promise<R>,
|
|
6
|
-
{concurrency}: {concurrency: number},
|
|
7
|
-
): (...args: A) => Promise<R> {
|
|
8
|
-
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
|
|
9
|
-
throw new TypeError('Expected `concurrency` to be a number from 1 and up');
|
|
10
|
-
}
|
|
11
|
-
let active = 0;
|
|
12
|
-
const queue: (() => void)[] = [];
|
|
13
|
-
// Hand the slot directly to the next waiter so a new caller can't slip in between
|
|
14
|
-
const release = () => {
|
|
15
|
-
const waiter = queue.shift();
|
|
16
|
-
if (waiter) {
|
|
17
|
-
waiter();
|
|
18
|
-
} else {
|
|
19
|
-
active--;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
return async (...args) => {
|
|
23
|
-
if (active < concurrency) {
|
|
24
|
-
active++;
|
|
25
|
-
} else {
|
|
26
|
-
await new Promise<void>((resolve) => queue.push(resolve));
|
|
27
|
-
}
|
|
28
|
-
try {
|
|
29
|
-
return await fn(...args);
|
|
30
|
-
} finally {
|
|
31
|
-
release();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
AsyncboxError,
|
|
3
|
-
TimeoutError,
|
|
4
|
-
ConditionUnmetError,
|
|
5
|
-
LockTimeoutError,
|
|
6
|
-
LockQueueFullError,
|
|
7
|
-
PromiseCancellationError,
|
|
8
|
-
} from './shared/errors.js';
|
|
9
|
-
export {sleep} from './time/sleep.js';
|
|
10
|
-
export {withTimeout} from './time/with-timeout.js';
|
|
11
|
-
export {longSleep} from './time/long-sleep.js';
|
|
12
|
-
export {retry, retryInterval} from './time/retry.js';
|
|
13
|
-
export {asyncmap} from './collections/asyncmap.js';
|
|
14
|
-
export {asyncfilter} from './collections/asyncfilter.js';
|
|
15
|
-
export {waitForCondition} from './time/wait-for-condition.js';
|
|
16
|
-
export {AsyncLock} from './lock/lock.js';
|
|
17
|
-
|
|
18
|
-
export type {AsyncLockOptions, AcquireOptions} from './lock/lock.js';
|
|
19
|
-
export type {
|
|
20
|
-
CancellablePromise,
|
|
21
|
-
Progress,
|
|
22
|
-
ProgressCallback,
|
|
23
|
-
LongSleepOptions,
|
|
24
|
-
MapFilterOptions,
|
|
25
|
-
SleepArg,
|
|
26
|
-
SleepOptions,
|
|
27
|
-
WaitForConditionOptions,
|
|
28
|
-
} from './shared/types.js';
|
package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/wait-for-condition.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
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,46 +0,0 @@
|
|
|
1
|
-
/** Base class of the built-in typed errors of this package; match by `instanceof` or {@link AsyncboxError.code}. */
|
|
2
|
-
export class AsyncboxError extends Error {
|
|
3
|
-
/** Stable machine-readable identifier, e.g. `ERR_ASYNCBOX_TIMEOUT` */
|
|
4
|
-
code;
|
|
5
|
-
constructor(message, code = 'ERR_ASYNCBOX') {
|
|
6
|
-
super(message);
|
|
7
|
-
this.name = 'AsyncboxError';
|
|
8
|
-
this.code = code;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
/** Error thrown by {@link withTimeout} when the deadline is exceeded. */
|
|
12
|
-
export class TimeoutError extends AsyncboxError {
|
|
13
|
-
constructor(message, code = 'ERR_ASYNCBOX_TIMEOUT') {
|
|
14
|
-
super(message ?? 'Operation timed out', code);
|
|
15
|
-
this.name = 'TimeoutError';
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/** Thrown by {@link waitForCondition} when the condition is not met in time. */
|
|
19
|
-
export class ConditionUnmetError extends TimeoutError {
|
|
20
|
-
constructor(message) {
|
|
21
|
-
super(message ?? 'Condition unmet', 'ERR_ASYNCBOX_CONDITION_UNMET');
|
|
22
|
-
this.name = 'ConditionUnmetError';
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/** Thrown by {@link AsyncLock} when a queue, execution or occupation time limit is exceeded. */
|
|
26
|
-
export class LockTimeoutError extends TimeoutError {
|
|
27
|
-
constructor(message) {
|
|
28
|
-
super(message ?? 'Lock timed out', 'ERR_ASYNCBOX_LOCK_TIMEOUT');
|
|
29
|
-
this.name = 'LockTimeoutError';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/** Thrown by {@link AsyncLock} when the queue of a key already holds `maxPending` tasks. */
|
|
33
|
-
export class LockQueueFullError extends AsyncboxError {
|
|
34
|
-
constructor(message) {
|
|
35
|
-
super(message ?? 'Too many pending tasks in queue', 'ERR_ASYNCBOX_LOCK_QUEUE_FULL');
|
|
36
|
-
this.name = 'LockQueueFullError';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
/** Thrown when a promise is cancelled via `cancel`. */
|
|
40
|
-
export class PromiseCancellationError extends AsyncboxError {
|
|
41
|
-
constructor(message = 'Promise cancelled') {
|
|
42
|
-
super(message, 'ERR_ASYNCBOX_CANCELLED');
|
|
43
|
-
this.name = 'PromiseCancellationError';
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { sleep } from './sleep.js';
|
|
2
|
-
const LONG_SLEEP_THRESHOLD = 5000; // anything over 5000ms will turn into a spin
|
|
3
|
-
/**
|
|
4
|
-
* Sometimes `Promise.delay` or `setTimeout` are inaccurate for large wait
|
|
5
|
-
* times. To safely wait for these long times (e.g. in the 5+ minute range), you
|
|
6
|
-
* can use `longSleep`.
|
|
7
|
-
*
|
|
8
|
-
* You can also pass a `progressCb` option which is a callback function that
|
|
9
|
-
* receives an object with the properties `elapsedMs`, `timeLeft`, and
|
|
10
|
-
* `progress`. This will be called on every wait interval so you can do your
|
|
11
|
-
* wait logging or whatever.
|
|
12
|
-
* @param ms - The number of milliseconds to wait
|
|
13
|
-
* @param options - Options for controlling the long sleep behavior
|
|
14
|
-
*/
|
|
15
|
-
export async function longSleep(ms, { thresholdMs = LONG_SLEEP_THRESHOLD, intervalMs = 1000, progressCb = null } = {}) {
|
|
16
|
-
if (ms < thresholdMs) {
|
|
17
|
-
return await sleep(ms);
|
|
18
|
-
}
|
|
19
|
-
const endAt = performance.now() + ms;
|
|
20
|
-
let timeLeft;
|
|
21
|
-
let elapsedMs = 0;
|
|
22
|
-
do {
|
|
23
|
-
const pre = performance.now();
|
|
24
|
-
await sleep(intervalMs);
|
|
25
|
-
const post = performance.now();
|
|
26
|
-
timeLeft = endAt - post;
|
|
27
|
-
elapsedMs = elapsedMs + (post - pre);
|
|
28
|
-
if (typeof progressCb === 'function') {
|
|
29
|
-
progressCb({ elapsedMs: Math.round(elapsedMs), timeLeft: Math.round(timeLeft), progress: elapsedMs / ms });
|
|
30
|
-
}
|
|
31
|
-
} while (timeLeft > 0);
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=long-sleep.js.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { sleep } from './sleep.js';
|
|
2
|
-
/**
|
|
3
|
-
* An async/await way of running a method until it doesn't throw an error
|
|
4
|
-
* @param times - The maximum number of times to retry the function
|
|
5
|
-
* @param fn - The async function to retry
|
|
6
|
-
* @param args - Arguments to pass to the function
|
|
7
|
-
*/
|
|
8
|
-
export async function retry(times, fn, ...args) {
|
|
9
|
-
let tries = 0;
|
|
10
|
-
let done = false;
|
|
11
|
-
let res = null;
|
|
12
|
-
while (!done && tries < times) {
|
|
13
|
-
tries++;
|
|
14
|
-
try {
|
|
15
|
-
res = await fn(...args);
|
|
16
|
-
done = true;
|
|
17
|
-
}
|
|
18
|
-
catch (err) {
|
|
19
|
-
if (tries >= times) {
|
|
20
|
-
throw err;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return res;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* You can also use `retryInterval` to add a sleep in between retries. This can
|
|
28
|
-
* be useful if you want to throttle how fast we retry.
|
|
29
|
-
* @param times - The maximum number of times to retry the function
|
|
30
|
-
* @param sleepMs - The number of milliseconds to wait between retries
|
|
31
|
-
* @param fn - The async function to retry
|
|
32
|
-
* @param args - Arguments to pass to the function
|
|
33
|
-
*/
|
|
34
|
-
export async function retryInterval(times, sleepMs, fn, ...args) {
|
|
35
|
-
let count = 0;
|
|
36
|
-
const wrapped = async () => {
|
|
37
|
-
count++;
|
|
38
|
-
let res;
|
|
39
|
-
try {
|
|
40
|
-
res = await fn(...args);
|
|
41
|
-
}
|
|
42
|
-
catch (e) {
|
|
43
|
-
// do not pause when finished the last retry
|
|
44
|
-
if (count !== times) {
|
|
45
|
-
await sleep(sleepMs);
|
|
46
|
-
}
|
|
47
|
-
throw e;
|
|
48
|
-
}
|
|
49
|
-
return res;
|
|
50
|
-
};
|
|
51
|
-
return await retry(times, wrapped);
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=retry.js.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/** Base class of the built-in typed errors of this package; match by `instanceof` or {@link AsyncboxError.code}. */
|
|
2
|
-
export class AsyncboxError extends Error {
|
|
3
|
-
/** Stable machine-readable identifier, e.g. `ERR_ASYNCBOX_TIMEOUT` */
|
|
4
|
-
readonly code: string;
|
|
5
|
-
|
|
6
|
-
constructor(message: string, code: string = 'ERR_ASYNCBOX') {
|
|
7
|
-
super(message);
|
|
8
|
-
this.name = 'AsyncboxError';
|
|
9
|
-
this.code = code;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/** Error thrown by {@link withTimeout} when the deadline is exceeded. */
|
|
14
|
-
export class TimeoutError extends AsyncboxError {
|
|
15
|
-
constructor(message?: string, code: string = 'ERR_ASYNCBOX_TIMEOUT') {
|
|
16
|
-
super(message ?? 'Operation timed out', code);
|
|
17
|
-
this.name = 'TimeoutError';
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** Thrown by {@link waitForCondition} when the condition is not met in time. */
|
|
22
|
-
export class ConditionUnmetError extends TimeoutError {
|
|
23
|
-
constructor(message?: string) {
|
|
24
|
-
super(message ?? 'Condition unmet', 'ERR_ASYNCBOX_CONDITION_UNMET');
|
|
25
|
-
this.name = 'ConditionUnmetError';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** Thrown by {@link AsyncLock} when a queue, execution or occupation time limit is exceeded. */
|
|
30
|
-
export class LockTimeoutError extends TimeoutError {
|
|
31
|
-
constructor(message?: string) {
|
|
32
|
-
super(message ?? 'Lock timed out', 'ERR_ASYNCBOX_LOCK_TIMEOUT');
|
|
33
|
-
this.name = 'LockTimeoutError';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** Thrown by {@link AsyncLock} when the queue of a key already holds `maxPending` tasks. */
|
|
38
|
-
export class LockQueueFullError extends AsyncboxError {
|
|
39
|
-
constructor(message?: string) {
|
|
40
|
-
super(message ?? 'Too many pending tasks in queue', 'ERR_ASYNCBOX_LOCK_QUEUE_FULL');
|
|
41
|
-
this.name = 'LockQueueFullError';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** Thrown when a promise is cancelled via `cancel`. */
|
|
46
|
-
export class PromiseCancellationError extends AsyncboxError {
|
|
47
|
-
constructor(message: string = 'Promise cancelled') {
|
|
48
|
-
super(message, 'ERR_ASYNCBOX_CANCELLED');
|
|
49
|
-
this.name = 'PromiseCancellationError';
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import {sleep} from './sleep.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* An async/await way of running a method until it doesn't throw an error
|
|
5
|
-
* @param times - The maximum number of times to retry the function
|
|
6
|
-
* @param fn - The async function to retry
|
|
7
|
-
* @param args - Arguments to pass to the function
|
|
8
|
-
*/
|
|
9
|
-
export async function retry<T = any>(
|
|
10
|
-
times: number,
|
|
11
|
-
fn: (...args: any[]) => Promise<T>,
|
|
12
|
-
...args: any[]
|
|
13
|
-
): Promise<T | null> {
|
|
14
|
-
let tries = 0;
|
|
15
|
-
let done = false;
|
|
16
|
-
let res: T | null = null;
|
|
17
|
-
while (!done && tries < times) {
|
|
18
|
-
tries++;
|
|
19
|
-
try {
|
|
20
|
-
res = await fn(...args);
|
|
21
|
-
done = true;
|
|
22
|
-
} catch (err) {
|
|
23
|
-
if (tries >= times) {
|
|
24
|
-
throw err;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return res;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* You can also use `retryInterval` to add a sleep in between retries. This can
|
|
33
|
-
* be useful if you want to throttle how fast we retry.
|
|
34
|
-
* @param times - The maximum number of times to retry the function
|
|
35
|
-
* @param sleepMs - The number of milliseconds to wait between retries
|
|
36
|
-
* @param fn - The async function to retry
|
|
37
|
-
* @param args - Arguments to pass to the function
|
|
38
|
-
*/
|
|
39
|
-
export async function retryInterval<T = any>(
|
|
40
|
-
times: number,
|
|
41
|
-
sleepMs: number,
|
|
42
|
-
fn: (...args: any[]) => Promise<T>,
|
|
43
|
-
...args: any[]
|
|
44
|
-
): Promise<T | null> {
|
|
45
|
-
let count = 0;
|
|
46
|
-
const wrapped = async (): Promise<T> => {
|
|
47
|
-
count++;
|
|
48
|
-
let res: T;
|
|
49
|
-
try {
|
|
50
|
-
res = await fn(...args);
|
|
51
|
-
} catch (e) {
|
|
52
|
-
// do not pause when finished the last retry
|
|
53
|
-
if (count !== times) {
|
|
54
|
-
await sleep(sleepMs);
|
|
55
|
-
}
|
|
56
|
-
throw e;
|
|
57
|
-
}
|
|
58
|
-
return res;
|
|
59
|
-
};
|
|
60
|
-
return await retry(times, wrapped);
|
|
61
|
-
}
|
|
@@ -1,88 +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
|
-
/**
|
|
14
|
-
* Progress callback for {@link longSleep}
|
|
15
|
-
*/
|
|
16
|
-
export type ProgressCallback = (progress: Progress) => void;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Options for {@link longSleep}
|
|
20
|
-
*/
|
|
21
|
-
export interface LongSleepOptions {
|
|
22
|
-
/** Minimum duration in milliseconds before using long sleep behavior.
|
|
23
|
-
* @default 5000
|
|
24
|
-
*/
|
|
25
|
-
thresholdMs?: number;
|
|
26
|
-
/** Interval in milliseconds between progress callbacks.
|
|
27
|
-
* @default 1000
|
|
28
|
-
*/
|
|
29
|
-
intervalMs?: number;
|
|
30
|
-
/** Optional callback function to receive progress updates during the sleep */
|
|
31
|
-
progressCb?: ProgressCallback | null;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Options for {@link asyncmap} and {@link asyncfilter}
|
|
36
|
-
*/
|
|
37
|
-
export type MapFilterOptions = boolean | {concurrency: number};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Object form of {@link sleep}'s argument: duration plus optional cancellation rejection override.
|
|
41
|
-
* Structural typing allows class instances; {@link sleep} accepts any non-array object with a finite `ms`.
|
|
42
|
-
*/
|
|
43
|
-
export interface SleepOptions {
|
|
44
|
-
/** Duration in milliseconds */
|
|
45
|
-
ms: number;
|
|
46
|
-
/**
|
|
47
|
-
* When {@link sleep}'s `cancel` runs: a non-empty string becomes {@link PromiseCancellationError}
|
|
48
|
-
* with that message; an `Error` rejects with that same instance; `null` resolves the promise
|
|
49
|
-
* instead of rejecting; omitted, `undefined`, or `''` use the default {@link PromiseCancellationError}.
|
|
50
|
-
*/
|
|
51
|
-
cancelError?: string | Error | null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Argument to {@link sleep}: either milliseconds or an options object (see {@link SleepOptions}).
|
|
56
|
-
*/
|
|
57
|
-
export type SleepArg = number | SleepOptions;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* A promise with a {@linkcode cancel} method (e.g. from {@link sleep}).
|
|
61
|
-
*
|
|
62
|
-
* @typeParam T - Resolved value type; {@link sleep} uses `void`.
|
|
63
|
-
*/
|
|
64
|
-
export type CancellablePromise<T = void> = Promise<T> & {
|
|
65
|
-
cancel: () => void;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Options for {@link waitForCondition}
|
|
70
|
-
*/
|
|
71
|
-
export interface WaitForConditionOptions {
|
|
72
|
-
/** Maximum time to wait in milliseconds.
|
|
73
|
-
* @default 5000
|
|
74
|
-
*/
|
|
75
|
-
waitMs?: number;
|
|
76
|
-
/** Interval in milliseconds between condition checks.
|
|
77
|
-
* @default 500
|
|
78
|
-
*/
|
|
79
|
-
intervalMs?: number;
|
|
80
|
-
/** Optional logger object with a debug method for logging wait progress */
|
|
81
|
-
logger?: {
|
|
82
|
-
debug: (...args: any[]) => void;
|
|
83
|
-
};
|
|
84
|
-
/** Custom error message (string) or Error object to throw if condition is not met.
|
|
85
|
-
* If not provided, a default error is thrown
|
|
86
|
-
*/
|
|
87
|
-
error?: string | Error;
|
|
88
|
-
}
|