appium-espresso-driver 10.0.3 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/lib/execute-method-map.d.ts +16 -0
- package/build/lib/execute-method-map.d.ts.map +1 -1
- 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/gradle/libs.versions.toml +2 -0
- package/espresso-server/library/build.gradle.kts +3 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/helpers/ComposeNodeFinder.kt +3 -3
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/exceptions/XPathLookupException.kt +10 -2
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ViewFinder.kt +3 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/SourceDocument.kt +4 -21
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/XPathQuery.kt +64 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/viewmatcher/WithXPath.kt +3 -3
- package/espresso-server/library/src/test/java/io/appium/espressoserver/test/helpers/XPathQueryTests.kt +101 -0
- package/espresso-server/settings.gradle.kts +4 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers/caps.js +1 -1
- package/node_modules/@appium/base-driver/lib/basedriver/helpers/caps.ts +1 -1
- package/node_modules/@appium/base-driver/package.json +4 -4
- package/node_modules/@appium/logger/CHANGELOG.md +37 -0
- package/node_modules/@appium/logger/package.json +2 -2
- package/node_modules/@appium/schema/package.json +2 -2
- package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.js +11 -11
- package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
- package/node_modules/@appium/support/lib/zip.ts +11 -12
- package/node_modules/@appium/support/node_modules/teen_process/CHANGELOG.md +1122 -0
- package/node_modules/@appium/support/node_modules/teen_process/LICENSE +201 -0
- package/node_modules/@appium/support/node_modules/teen_process/README.md +270 -0
- package/node_modules/@appium/support/node_modules/teen_process/lib/circular-buffer.ts +60 -0
- package/node_modules/@appium/support/node_modules/teen_process/lib/exec.ts +176 -0
- package/node_modules/@appium/support/node_modules/teen_process/lib/helpers.ts +45 -0
- package/node_modules/@appium/support/node_modules/teen_process/lib/index.ts +4 -0
- package/node_modules/@appium/support/node_modules/teen_process/lib/subprocess.ts +358 -0
- package/node_modules/@appium/support/node_modules/teen_process/lib/types.ts +83 -0
- package/node_modules/@appium/support/node_modules/teen_process/package.json +81 -0
- package/node_modules/@appium/support/package.json +5 -5
- package/node_modules/@appium/types/package.json +5 -5
- package/node_modules/appium-adb/CHANGELOG.md +14 -0
- package/node_modules/appium-adb/node_modules/asyncbox/LICENSE +203 -0
- package/node_modules/appium-adb/node_modules/asyncbox/README.md +272 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.d.ts +12 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.js +10 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.js +2 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.js +53 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
- package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/index.ts +28 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/lock/lock.ts +369 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/shared/errors.ts +51 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/shared/types.ts +88 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/time/retry.ts +61 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/time/sleep.ts +79 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
- package/node_modules/appium-adb/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
- package/node_modules/appium-adb/node_modules/asyncbox/package.json +60 -0
- package/node_modules/appium-adb/package.json +4 -4
- package/node_modules/appium-android-driver/CHANGELOG.md +36 -0
- package/node_modules/appium-android-driver/README.md +4 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.d.ts +16 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.js +42 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.d.ts +11 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.js +96 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts +14 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js +16 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts +42 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +127 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.d.ts +6 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.js +17 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.d.ts +12 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.js +196 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts +65 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js +339 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.d.ts +67 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.js +2 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/driver.d.ts +20 -0
- package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/driver.js +9 -0
- package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +16 -0
- package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/execute-method-map.js +16 -0
- package/node_modules/appium-android-driver/build/lib/execute-method-map.js.map +1 -1
- package/node_modules/appium-android-driver/lib/commands/media-stream/batcher.ts +44 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/capabilities.ts +101 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/constants.ts +15 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +182 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/jpeg.ts +16 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/sps.ts +208 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/stream.ts +385 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/types.ts +65 -0
- package/node_modules/appium-android-driver/lib/driver.ts +16 -0
- package/node_modules/appium-android-driver/lib/execute-method-map.ts +17 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/LICENSE +203 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/README.md +272 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts +12 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js +10 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.js +2 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js +53 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/index.ts +28 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/lock/lock.ts +369 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/shared/errors.ts +51 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/shared/types.ts +88 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/retry.ts +61 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/sleep.ts +79 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
- package/node_modules/appium-android-driver/node_modules/asyncbox/package.json +60 -0
- package/node_modules/appium-android-driver/package.json +7 -7
- package/node_modules/appium-chromedriver/CHANGELOG.md +14 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/LICENSE +203 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/README.md +272 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts +12 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js +10 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.js +2 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js +53 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/index.ts +28 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/lock/lock.ts +369 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/shared/errors.ts +51 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/shared/types.ts +88 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/retry.ts +61 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/sleep.ts +79 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
- package/node_modules/appium-chromedriver/node_modules/asyncbox/package.json +60 -0
- package/node_modules/appium-chromedriver/package.json +4 -4
- package/node_modules/io.appium.settings/CHANGELOG.md +21 -0
- package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts +9 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.js +16 -1
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/constants.d.ts +2 -0
- package/node_modules/io.appium.settings/build/lib/constants.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/constants.js +2 -0
- package/node_modules/io.appium.settings/build/lib/constants.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/index.d.ts +3 -0
- package/node_modules/io.appium.settings/build/lib/index.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts +3 -1
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js +2 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts +11 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js +40 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js.map +1 -1
- package/node_modules/io.appium.settings/lib/commands/video-stream.ts +17 -0
- package/node_modules/io.appium.settings/lib/constants.ts +2 -0
- package/node_modules/io.appium.settings/lib/index.ts +3 -0
- package/node_modules/io.appium.settings/lib/utils/streaming-protocol.ts +2 -0
- package/node_modules/io.appium.settings/lib/utils/streaming-transport.ts +43 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/LICENSE +203 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/README.md +272 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts +12 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js +10 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js +2 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js +53 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/index.ts +28 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/lock/lock.ts +369 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/errors.ts +51 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/types.ts +88 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/retry.ts +61 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/sleep.ts +79 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
- package/node_modules/io.appium.settings/node_modules/asyncbox/package.json +60 -0
- package/node_modules/io.appium.settings/package.json +5 -5
- package/node_modules/teen_process/CHANGELOG.md +17 -0
- package/node_modules/teen_process/README.md +2 -2
- package/node_modules/teen_process/build/lib/circular-buffer.d.ts +13 -0
- package/node_modules/teen_process/build/lib/circular-buffer.d.ts.map +1 -0
- package/node_modules/teen_process/build/lib/circular-buffer.js +53 -0
- package/node_modules/teen_process/build/lib/circular-buffer.js.map +1 -0
- package/node_modules/teen_process/build/lib/exec.d.ts +33 -0
- package/node_modules/teen_process/build/lib/exec.d.ts.map +1 -0
- package/node_modules/teen_process/build/lib/exec.js +164 -0
- package/node_modules/teen_process/build/lib/exec.js.map +1 -0
- package/node_modules/teen_process/build/lib/helpers.d.ts +2 -0
- package/node_modules/teen_process/build/lib/helpers.d.ts.map +1 -0
- package/node_modules/teen_process/build/lib/helpers.js +41 -0
- package/node_modules/teen_process/build/lib/helpers.js.map +1 -0
- package/node_modules/teen_process/build/lib/index.d.ts +5 -0
- package/node_modules/teen_process/build/lib/index.d.ts.map +1 -0
- package/node_modules/teen_process/build/lib/index.js +4 -0
- package/node_modules/teen_process/build/lib/index.js.map +1 -0
- package/node_modules/teen_process/build/lib/subprocess.d.ts +131 -0
- package/node_modules/teen_process/build/lib/subprocess.d.ts.map +1 -0
- package/node_modules/teen_process/build/lib/subprocess.js +336 -0
- package/node_modules/teen_process/build/lib/subprocess.js.map +1 -0
- package/node_modules/teen_process/build/lib/types.d.ts +71 -0
- package/node_modules/teen_process/build/lib/types.d.ts.map +1 -0
- package/node_modules/teen_process/build/lib/types.js +2 -0
- package/node_modules/teen_process/build/lib/types.js.map +1 -0
- package/node_modules/teen_process/lib/exec.ts +15 -2
- package/node_modules/teen_process/lib/subprocess.ts +146 -110
- package/node_modules/teen_process/package.json +14 -25
- package/package.json +5 -5
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/package.json +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.d.ts +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.d.ts.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.js +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.js.map +0 -0
- /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/package.json +0 -0
package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CancellablePromise, SleepOptions } from '../shared/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* An async/await version of `setTimeout`. The returned promise has a `cancel()` method that clears
|
|
4
|
+
* the timer and usually rejects with {@link PromiseCancellationError} unless you use the object form with
|
|
5
|
+
* `cancelError: null` to resolve on cancel.
|
|
6
|
+
*
|
|
7
|
+
* @param ms - Milliseconds to wait
|
|
8
|
+
* @returns A thenable you can `await`; call `.cancel()` to abort early.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sleep(ms: number): CancellablePromise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Object form: `ms` plus optional `cancelError` (non-empty string or `Error`, `null` to resolve on
|
|
13
|
+
* cancel, or omitted / `undefined` / `''` for default {@link PromiseCancellationError}). Any non-array
|
|
14
|
+
* object with a finite `ms` is accepted at runtime (including class instances), matching structural typing.
|
|
15
|
+
*
|
|
16
|
+
* @param options - Duration and optional cancellation behavior
|
|
17
|
+
* @returns A thenable you can `await`; call `.cancel()` to abort early.
|
|
18
|
+
*/
|
|
19
|
+
export declare function sleep(options: SleepOptions): CancellablePromise<void>;
|
|
20
|
+
//# sourceMappingURL=sleep.d.ts.map
|
package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PromiseCancellationError } from '../shared/errors.js';
|
|
2
|
+
export function sleep(arg) {
|
|
3
|
+
const { ms, cancelError } = parseSleepArg(arg);
|
|
4
|
+
let timeoutId;
|
|
5
|
+
let resolveFn;
|
|
6
|
+
let rejectFn;
|
|
7
|
+
const promise = new Promise((resolve, reject) => {
|
|
8
|
+
resolveFn = resolve;
|
|
9
|
+
rejectFn = reject;
|
|
10
|
+
timeoutId = setTimeout(resolve, ms);
|
|
11
|
+
});
|
|
12
|
+
promise.cancel = () => {
|
|
13
|
+
if (timeoutId) {
|
|
14
|
+
clearTimeout(timeoutId);
|
|
15
|
+
timeoutId = undefined;
|
|
16
|
+
}
|
|
17
|
+
if (cancelError === null) {
|
|
18
|
+
resolveFn?.(undefined);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
let err;
|
|
22
|
+
if (typeof cancelError === 'string' && cancelError) {
|
|
23
|
+
err = new PromiseCancellationError(cancelError);
|
|
24
|
+
}
|
|
25
|
+
else if (cancelError instanceof Error) {
|
|
26
|
+
err = cancelError;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
err = new PromiseCancellationError();
|
|
30
|
+
}
|
|
31
|
+
rejectFn?.(err);
|
|
32
|
+
}
|
|
33
|
+
resolveFn = undefined;
|
|
34
|
+
rejectFn = undefined;
|
|
35
|
+
};
|
|
36
|
+
return promise;
|
|
37
|
+
}
|
|
38
|
+
/** Non-array object values (including class instances); excludes `null` and arrays. */
|
|
39
|
+
function isSleepArgObject(value) {
|
|
40
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
41
|
+
}
|
|
42
|
+
function parseSleepArg(arg) {
|
|
43
|
+
if (typeof arg === 'number') {
|
|
44
|
+
if (!Number.isFinite(arg)) {
|
|
45
|
+
throw new TypeError('sleep: expected a finite number or an object with ms');
|
|
46
|
+
}
|
|
47
|
+
return { ms: arg };
|
|
48
|
+
}
|
|
49
|
+
if (isSleepArgObject(arg)) {
|
|
50
|
+
const ms = arg.ms;
|
|
51
|
+
if (typeof ms !== 'number' || !Number.isFinite(ms)) {
|
|
52
|
+
throw new TypeError('sleep: options.ms must be a finite number');
|
|
53
|
+
}
|
|
54
|
+
return { ms, cancelError: arg.cancelError };
|
|
55
|
+
}
|
|
56
|
+
throw new TypeError('sleep: expected a finite number or an object with ms');
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=sleep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ConditionUnmetError } from '../shared/errors.js';
|
|
2
|
+
import { sleep } from './sleep.js';
|
|
3
|
+
/**
|
|
4
|
+
* Takes a condition (a function returning a boolean or boolean promise), and
|
|
5
|
+
* waits until the condition is true.
|
|
6
|
+
*
|
|
7
|
+
* Throws a {@link ConditionUnmetError} (a {@link TimeoutError}; message matches `/Condition unmet/`) if the condition has not been satisfied
|
|
8
|
+
* within the allocated time, unless an error is provided in the options, as the
|
|
9
|
+
* `error` property, which is either thrown itself, or used as the message.
|
|
10
|
+
*
|
|
11
|
+
* The condition result is returned if it is not falsy. If the condition throws an
|
|
12
|
+
* error then this exception will be immediately passed through.
|
|
13
|
+
*
|
|
14
|
+
* The default options are: `{ waitMs: 5000, intervalMs: 500 }`
|
|
15
|
+
* @param condFn - The condition function to evaluate
|
|
16
|
+
* @param options - Options for controlling the wait behavior
|
|
17
|
+
*/
|
|
18
|
+
export async function waitForCondition(condFn, options = {}) {
|
|
19
|
+
const opts = {
|
|
20
|
+
...options,
|
|
21
|
+
waitMs: typeof options.waitMs === 'number' ? options.waitMs : 5000,
|
|
22
|
+
intervalMs: typeof options.intervalMs === 'number' ? options.intervalMs : 500,
|
|
23
|
+
};
|
|
24
|
+
const debug = opts.logger ? opts.logger.debug.bind(opts.logger) : () => undefined;
|
|
25
|
+
const error = opts.error;
|
|
26
|
+
const begunAt = performance.now();
|
|
27
|
+
const endAt = begunAt + opts.waitMs;
|
|
28
|
+
for (;;) {
|
|
29
|
+
const result = await condFn();
|
|
30
|
+
if (result) {
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
const now = performance.now();
|
|
34
|
+
const waited = Math.round(now - begunAt);
|
|
35
|
+
const remainingTime = endAt - now;
|
|
36
|
+
if (now < endAt) {
|
|
37
|
+
debug(`Waited for ${waited} ms so far`);
|
|
38
|
+
await sleep(Math.min(opts.intervalMs, remainingTime));
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
// if there is an error option, it is either a string message or an error itself
|
|
42
|
+
if (error) {
|
|
43
|
+
throw typeof error === 'string' ? new ConditionUnmetError(error) : error;
|
|
44
|
+
}
|
|
45
|
+
throw new ConditionUnmetError(`Condition unmet after ${waited} ms. Timing out.`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=wait-for-condition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves with `promise` or rejects if it does not settle before `timeoutMs`.
|
|
3
|
+
*
|
|
4
|
+
* If the deadline passes first: with no third argument (or a falsy non-error value), rejects
|
|
5
|
+
* with {@link TimeoutError} whose message includes `timeoutMs`; with a non-empty string,
|
|
6
|
+
* rejects with {@link TimeoutError} using that message; with an `Error` instance, rejects
|
|
7
|
+
* with that same instance.
|
|
8
|
+
*
|
|
9
|
+
* @param promise - Promise to race against the timeout.
|
|
10
|
+
* @param timeoutMs - Maximum time in milliseconds before rejecting if `promise` has not settled.
|
|
11
|
+
* @param messageOrError - Optional override for the timeout rejection: custom {@link TimeoutError}
|
|
12
|
+
* message when the string is non-empty, or an existing `Error` to reject with verbatim.
|
|
13
|
+
* Omitted, `undefined`, or other falsy non-error values use the default timeout message (includes `timeoutMs`).
|
|
14
|
+
*/
|
|
15
|
+
export declare function withTimeout<T>(promise: Promise<T>, timeoutMs: number, messageOrError?: string | Error): Promise<T>;
|
|
16
|
+
//# sourceMappingURL=with-timeout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TimeoutError } from '../shared/errors.js';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves with `promise` or rejects if it does not settle before `timeoutMs`.
|
|
4
|
+
*
|
|
5
|
+
* If the deadline passes first: with no third argument (or a falsy non-error value), rejects
|
|
6
|
+
* with {@link TimeoutError} whose message includes `timeoutMs`; with a non-empty string,
|
|
7
|
+
* rejects with {@link TimeoutError} using that message; with an `Error` instance, rejects
|
|
8
|
+
* with that same instance.
|
|
9
|
+
*
|
|
10
|
+
* @param promise - Promise to race against the timeout.
|
|
11
|
+
* @param timeoutMs - Maximum time in milliseconds before rejecting if `promise` has not settled.
|
|
12
|
+
* @param messageOrError - Optional override for the timeout rejection: custom {@link TimeoutError}
|
|
13
|
+
* message when the string is non-empty, or an existing `Error` to reject with verbatim.
|
|
14
|
+
* Omitted, `undefined`, or other falsy non-error values use the default timeout message (includes `timeoutMs`).
|
|
15
|
+
*/
|
|
16
|
+
export async function withTimeout(promise, timeoutMs, messageOrError) {
|
|
17
|
+
let timer = null;
|
|
18
|
+
try {
|
|
19
|
+
return await Promise.race([
|
|
20
|
+
promise,
|
|
21
|
+
new Promise((_resolve, reject) => {
|
|
22
|
+
timer = setTimeout(() => {
|
|
23
|
+
if (typeof messageOrError === 'string' && messageOrError) {
|
|
24
|
+
reject(new TimeoutError(messageOrError));
|
|
25
|
+
}
|
|
26
|
+
else if (!messageOrError) {
|
|
27
|
+
reject(new TimeoutError(`Operation timed out after ${timeoutMs}ms`));
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
reject(messageOrError);
|
|
31
|
+
}
|
|
32
|
+
}, timeoutMs);
|
|
33
|
+
}),
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
finally {
|
|
37
|
+
if (timer) {
|
|
38
|
+
clearTimeout(timer);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=with-timeout.js.map
|
package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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-android-driver/node_modules/asyncbox/lib/collections/asyncfilter.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type {MapFilterOptions} from '../shared/types.js';
|
|
2
|
+
import {limitFunction} from './limit-function.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Similar to `Array.prototype.map`; runs in parallel, serial, or with custom concurrency pool
|
|
6
|
+
* @param coll - The collection to map over
|
|
7
|
+
* @param mapper - The function to apply to each element
|
|
8
|
+
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
9
|
+
*/
|
|
10
|
+
export async function asyncmap<T, R>(
|
|
11
|
+
coll: T[],
|
|
12
|
+
mapper: (value: T) => R | Promise<R>,
|
|
13
|
+
options: MapFilterOptions = true,
|
|
14
|
+
): Promise<R[]> {
|
|
15
|
+
if (options === null) {
|
|
16
|
+
throw new Error('Options cannot be null');
|
|
17
|
+
}
|
|
18
|
+
// limitFunction requires the mapper to always return a promise
|
|
19
|
+
const mapperAsync = async (value: T): Promise<R> => mapper(value);
|
|
20
|
+
if (options === false) {
|
|
21
|
+
const items = coll.slice();
|
|
22
|
+
const results: R[] = [];
|
|
23
|
+
for (let i = 0; i < items.length; i++) {
|
|
24
|
+
if (i in items) {
|
|
25
|
+
results.push(await mapperAsync(items[i]));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return results;
|
|
29
|
+
}
|
|
30
|
+
const adjustedMapper =
|
|
31
|
+
options === true ? mapperAsync : limitFunction(mapperAsync, {concurrency: options.concurrency});
|
|
32
|
+
return Promise.all(coll.map(adjustedMapper));
|
|
33
|
+
}
|
package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/limit-function.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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';
|