appium-espresso-driver 10.1.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 +12 -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/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-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/appium-android-driver/CHANGELOG.md +7 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +8 -4
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/driver.d.ts +1 -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 +1 -0
- package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
- package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +7 -4
- package/node_modules/appium-android-driver/lib/driver.ts +1 -0
- package/node_modules/appium-android-driver/package.json +2 -2
- 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 +3 -3
- 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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [10.2.1](https://github.com/appium/appium-espresso-driver/compare/v10.2.0...v10.2.1) (2026-11-16)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* **deps:** bump asyncbox from 6.6.1 to 7.0.0 ([#1259](https://github.com/appium/appium-espresso-driver/issues/1259)) ([16f870e](https://github.com/appium/appium-espresso-driver/commit/16f870e93dcb9c9cc65a7eddf5a9611587349812))
|
|
6
|
+
|
|
7
|
+
## [10.2.0](https://github.com/appium/appium-espresso-driver/compare/v10.1.0...v10.2.0) (2026-11-15)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* support XPath 2.0 in the xpath locator strategy ([#1254](https://github.com/appium/appium-espresso-driver/issues/1254)) ([c72c168](https://github.com/appium/appium-espresso-driver/commit/c72c168fcfc14702fc475fa46d0e38cee0a79b74))
|
|
12
|
+
|
|
1
13
|
## [10.1.0](https://github.com/appium/appium-espresso-driver/compare/v10.0.3...v10.1.0) (2026-11-15)
|
|
2
14
|
|
|
3
15
|
### Features
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Mon Nov 16 11:40:16 UTC 2026
|
|
2
2
|
gradle.version=9.7.1
|
|
Binary file
|
|
@@ -11,6 +11,7 @@ nanohttpd = "2.3.1"
|
|
|
11
11
|
robolectric = "4.17"
|
|
12
12
|
junit = "4.13.2"
|
|
13
13
|
uiautomator = "2.4.0"
|
|
14
|
+
xpath2Processor = "2.0.0"
|
|
14
15
|
|
|
15
16
|
[libraries]
|
|
16
17
|
androidx-annotation = { group = "androidx.annotation", name = "annotation", version.ref = "annotation" }
|
|
@@ -33,6 +34,7 @@ kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.re
|
|
|
33
34
|
kotlin-test-junit = { group = "org.jetbrains.kotlin", name = "kotlin-test-junit", version.ref = "kotlin" }
|
|
34
35
|
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
|
35
36
|
robolectric = { group = "org.robolectric", name = "robolectric", version.ref = "robolectric" }
|
|
37
|
+
xpath2-processor = { group = "com.github.appium.appium-android", name = "xpath2-processor", version.ref = "xpath2Processor" }
|
|
36
38
|
|
|
37
39
|
[plugins]
|
|
38
40
|
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
|
|
@@ -132,6 +132,9 @@ dependencies {
|
|
|
132
132
|
api(libs.kotlin.reflect) {
|
|
133
133
|
withCapabilityVersion(project, "appiumKotlin", libs.versions.kotlin.get())
|
|
134
134
|
}
|
|
135
|
+
implementation(libs.xpath2.processor) {
|
|
136
|
+
because("XPath 2.0 locator support")
|
|
137
|
+
}
|
|
135
138
|
"composeOnApi"(libs.androidx.compose.ui.test) {
|
|
136
139
|
withCapabilityVersion(project, "appiumComposeVersion", libs.versions.composeUiTest.get())
|
|
137
140
|
because("Android Compose support")
|
|
@@ -27,7 +27,7 @@ import io.appium.espressoserver.lib.handlers.exceptions.StaleElementException
|
|
|
27
27
|
import io.appium.espressoserver.lib.model.Locator
|
|
28
28
|
import io.appium.espressoserver.lib.model.SourceDocument
|
|
29
29
|
import io.appium.espressoserver.lib.model.AttributesEnum
|
|
30
|
-
import io.appium.espressoserver.lib.model.
|
|
30
|
+
import io.appium.espressoserver.lib.model.compileXpathQuery
|
|
31
31
|
import io.appium.espressoserver.lib.viewmatcher.fetchIncludedAttributes
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -66,11 +66,11 @@ fun semanticsMatcherForLocator(locator: Locator): SemanticsMatcher =
|
|
|
66
66
|
|
|
67
67
|
private fun hasXpath(locator: Locator): SemanticsMatcher {
|
|
68
68
|
val xpath = locator.value!!
|
|
69
|
-
val
|
|
69
|
+
val query = compileXpathQuery(xpath)
|
|
70
70
|
val attributes = fetchIncludedAttributes(xpath)
|
|
71
71
|
val matchingIds = SourceDocument(
|
|
72
72
|
locator.elementId?.let { getSemanticsNode(it) }, attributes
|
|
73
|
-
).findMatchingNodeIds(
|
|
73
|
+
).findMatchingNodeIds(query, AttributesEnum.RESOURCE_ID.toString())
|
|
74
74
|
|
|
75
75
|
return SemanticsMatcher("Matches Xpath ${locator.value}") {
|
|
76
76
|
matchingIds.contains(it.id)
|
|
@@ -19,8 +19,10 @@ package io.appium.espressoserver.lib.handlers.exceptions
|
|
|
19
19
|
import fi.iki.elonen.NanoHTTPD
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
class XPathLookupException(
|
|
23
|
-
|
|
22
|
+
class XPathLookupException private constructor(message: String) : AppiumException(message) {
|
|
23
|
+
constructor(xpath: String, reason: String) :
|
|
24
|
+
this(String.format("Could not parse XPath %s: %s", xpath, reason))
|
|
25
|
+
|
|
24
26
|
override fun error(): String {
|
|
25
27
|
return "invalid selector"
|
|
26
28
|
}
|
|
@@ -28,4 +30,10 @@ class XPathLookupException(xpath: String, reason: String) :
|
|
|
28
30
|
override fun status(): NanoHTTPD.Response.Status {
|
|
29
31
|
return NanoHTTPD.Response.Status.BAD_REQUEST
|
|
30
32
|
}
|
|
33
|
+
|
|
34
|
+
companion object {
|
|
35
|
+
/** For a valid expression that has failed while being evaluated */
|
|
36
|
+
fun evaluationFailure(xpath: String, reason: String) =
|
|
37
|
+
XPathLookupException(String.format("Could not evaluate XPath %s: %s", xpath, reason))
|
|
38
|
+
}
|
|
31
39
|
}
|
package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt
CHANGED
|
@@ -2,6 +2,6 @@ package io.appium.espressoserver.lib.helpers
|
|
|
2
2
|
|
|
3
3
|
// This value is updated automatically by the NPM versioning script
|
|
4
4
|
// It should be in sync with the NPM module version from package.json
|
|
5
|
-
private const val VERSION = "10.1
|
|
5
|
+
private const val VERSION = "10.2.1"
|
|
6
6
|
|
|
7
7
|
fun getEspressoServerVersion() = VERSION
|
package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ViewFinder.kt
CHANGED
|
@@ -310,6 +310,9 @@ object ViewFinder {
|
|
|
310
310
|
} catch (e: AppNotIdleException) {
|
|
311
311
|
throw InvalidElementStateException(APP_NOT_IDLE_MESSAGE + getThreadDump(), e)
|
|
312
312
|
} catch (e: Exception) {
|
|
313
|
+
// The matcher is evaluated on the main thread, which wraps the XPath errors
|
|
314
|
+
generateSequence<Throwable>(e) { it.cause }
|
|
315
|
+
.filterIsInstance<XPathLookupException>().firstOrNull()?.let { throw it }
|
|
313
316
|
if (e is EspressoException) {
|
|
314
317
|
return resultViews
|
|
315
318
|
}
|
package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/SourceDocument.kt
CHANGED
|
@@ -27,20 +27,16 @@ import android.widget.AdapterView
|
|
|
27
27
|
import androidx.test.core.app.ApplicationProvider.getApplicationContext
|
|
28
28
|
import io.appium.espressoserver.lib.drivers.DriverContext
|
|
29
29
|
import io.appium.espressoserver.lib.handlers.exceptions.AppiumException
|
|
30
|
-
import io.appium.espressoserver.lib.handlers.exceptions.XPathLookupException
|
|
31
30
|
import io.appium.espressoserver.lib.helpers.AndroidLogger
|
|
32
31
|
import io.appium.espressoserver.lib.helpers.StringHelpers.abbreviate
|
|
33
32
|
import io.appium.espressoserver.lib.helpers.XMLHelpers.toNodeName
|
|
34
33
|
import io.appium.espressoserver.lib.helpers.XMLHelpers.toSafeString
|
|
35
34
|
import io.appium.espressoserver.lib.helpers.extensions.withPermit
|
|
36
35
|
import io.appium.espressoserver.lib.viewaction.ViewGetter
|
|
37
|
-
import org.w3c.dom.NodeList
|
|
38
|
-
import org.xml.sax.InputSource
|
|
39
36
|
import org.xmlpull.v1.XmlSerializer
|
|
40
37
|
import java.io.*
|
|
41
38
|
import java.util.*
|
|
42
39
|
import java.util.concurrent.Semaphore
|
|
43
|
-
import javax.xml.xpath.*
|
|
44
40
|
|
|
45
41
|
const val NON_XML_CHAR_REPLACEMENT = "?"
|
|
46
42
|
const val VIEW_INDEX = "viewIndex"
|
|
@@ -49,7 +45,6 @@ val DEFAULT_VIEW_CLASS_NAME = View::javaClass.name
|
|
|
49
45
|
const val MAX_TRAVERSAL_DEPTH = 70
|
|
50
46
|
const val MAX_XML_VALUE_LENGTH = 64 * 1024
|
|
51
47
|
const val XML_ENCODING = "UTF-8"
|
|
52
|
-
val XPATH: XPath = XPathFactory.newInstance().newXPath()
|
|
53
48
|
|
|
54
49
|
|
|
55
50
|
internal fun toXmlNodeName(className: String?): String {
|
|
@@ -71,13 +66,6 @@ internal fun toXmlNodeName(className: String?): String {
|
|
|
71
66
|
return fixedName
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
fun compileXpathExpression(selector: String): XPathExpression =
|
|
75
|
-
try {
|
|
76
|
-
XPATH.compile(selector)
|
|
77
|
-
} catch (xe: XPathExpressionException) {
|
|
78
|
-
throw XPathLookupException(selector, xe.message!!)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
69
|
class SourceDocument constructor(
|
|
82
70
|
private val root: Any? = null,
|
|
83
71
|
private val includedAttributes: Set<AttributesEnum>? = null
|
|
@@ -288,16 +276,11 @@ class SourceDocument constructor(
|
|
|
288
276
|
}
|
|
289
277
|
}, { performCleanup() })
|
|
290
278
|
|
|
291
|
-
fun findViewsByXPath(
|
|
292
|
-
findMatchingNodeIds(
|
|
279
|
+
internal fun findViewsByXPath(query: XPathQuery): List<View> =
|
|
280
|
+
findMatchingNodeIds(query, VIEW_INDEX).map { viewMap.get(it) }
|
|
293
281
|
|
|
294
|
-
fun findMatchingNodeIds(
|
|
282
|
+
internal fun findMatchingNodeIds(query: XPathQuery, attributeName: String): List<Int> =
|
|
295
283
|
RESOURCES_GUARD.withPermit({
|
|
296
|
-
toStream().use { xmlStream ->
|
|
297
|
-
val list = expression.evaluate(InputSource(xmlStream), XPathConstants.NODESET) as NodeList
|
|
298
|
-
(0 until list.length).map { index ->
|
|
299
|
-
list.item(index).attributes.getNamedItem(attributeName).nodeValue.toInt()
|
|
300
|
-
}
|
|
301
|
-
}
|
|
284
|
+
toStream().use { xmlStream -> query.evaluateNodeIds(xmlStream, attributeName) }
|
|
302
285
|
}, { performCleanup() })
|
|
303
286
|
}
|
package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/XPathQuery.kt
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
* you may not use this file except in compliance with the License.
|
|
4
|
+
* See the NOTICE file distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
package io.appium.espressoserver.lib.model
|
|
18
|
+
|
|
19
|
+
import io.appium.espressoserver.lib.handlers.exceptions.XPathLookupException
|
|
20
|
+
import io.appium.xpath2.DocumentLoader
|
|
21
|
+
import org.eclipse.wst.xml.xpath2.api.XPath2Expression
|
|
22
|
+
import org.eclipse.wst.xml.xpath2.processor.Engine
|
|
23
|
+
import org.eclipse.wst.xml.xpath2.processor.StaticError
|
|
24
|
+
import org.eclipse.wst.xml.xpath2.processor.util.DynamicContextBuilder
|
|
25
|
+
import org.eclipse.wst.xml.xpath2.processor.util.StaticContextBuilder
|
|
26
|
+
import org.w3c.dom.Element
|
|
27
|
+
import java.io.InputStream
|
|
28
|
+
|
|
29
|
+
/** A compiled XPath 2.0 expression, which is evaluated against the XML page source. */
|
|
30
|
+
internal class XPathQuery(
|
|
31
|
+
private val selector: String,
|
|
32
|
+
private val expression: XPath2Expression,
|
|
33
|
+
private val staticContext: StaticContextBuilder
|
|
34
|
+
) {
|
|
35
|
+
/** Returns the integer values of [attributeName] of the matched element nodes. */
|
|
36
|
+
fun evaluateNodeIds(xml: InputStream, attributeName: String): List<Int> {
|
|
37
|
+
val document = DocumentLoader.parse(xml)
|
|
38
|
+
val result = try {
|
|
39
|
+
expression.evaluate(DynamicContextBuilder(staticContext), arrayOf<Any>(document))
|
|
40
|
+
} catch (e: Exception) {
|
|
41
|
+
throw XPathLookupException.evaluationFailure(selector, e.message ?: e.javaClass.simpleName)
|
|
42
|
+
}
|
|
43
|
+
return result.iterator().asSequence()
|
|
44
|
+
.map { it.nativeValue }
|
|
45
|
+
.filterIsInstance<Element>()
|
|
46
|
+
.filter { it.hasAttribute(attributeName) }
|
|
47
|
+
.map { it.getAttribute(attributeName).toInt() }
|
|
48
|
+
.toList()
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private const val XS_NAMESPACE = "http://www.w3.org/2001/XMLSchema"
|
|
53
|
+
private const val FN_NAMESPACE = "http://www.w3.org/2005/xpath-functions"
|
|
54
|
+
|
|
55
|
+
internal fun compileXpathQuery(selector: String): XPathQuery {
|
|
56
|
+
val staticContext = StaticContextBuilder()
|
|
57
|
+
.withNamespace("xs", XS_NAMESPACE)
|
|
58
|
+
.withNamespace("fn", FN_NAMESPACE)
|
|
59
|
+
return try {
|
|
60
|
+
XPathQuery(selector, Engine().parseExpression(selector, staticContext), staticContext)
|
|
61
|
+
} catch (e: StaticError) {
|
|
62
|
+
throw XPathLookupException(selector, e.message ?: e.javaClass.simpleName)
|
|
63
|
+
}
|
|
64
|
+
}
|
package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/viewmatcher/WithXPath.kt
CHANGED
|
@@ -20,7 +20,7 @@ import io.appium.espressoserver.lib.helpers.extensions.withPermit
|
|
|
20
20
|
import io.appium.espressoserver.lib.model.SourceDocument
|
|
21
21
|
import io.appium.espressoserver.lib.model.AttributesEnum
|
|
22
22
|
import io.appium.espressoserver.lib.model.EspressoAttributes
|
|
23
|
-
import io.appium.espressoserver.lib.model.
|
|
23
|
+
import io.appium.espressoserver.lib.model.compileXpathQuery
|
|
24
24
|
import org.hamcrest.Description
|
|
25
25
|
import org.hamcrest.Matcher
|
|
26
26
|
import org.hamcrest.TypeSafeMatcher
|
|
@@ -40,7 +40,7 @@ fun fetchIncludedAttributes(xpath: String): Set<AttributesEnum>? {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
fun withXPath(root: View?, xpath: String, index: Int? = null): Matcher<View> {
|
|
43
|
-
val
|
|
43
|
+
val query = compileXpathQuery(xpath)
|
|
44
44
|
val attributes = fetchIncludedAttributes(xpath)
|
|
45
45
|
val matchedXPathViews = mutableListOf<View>()
|
|
46
46
|
var didLookup = false
|
|
@@ -50,7 +50,7 @@ fun withXPath(root: View?, xpath: String, index: Int? = null): Matcher<View> {
|
|
|
50
50
|
lookupGuard.withPermit {
|
|
51
51
|
if (!didLookup) {
|
|
52
52
|
matchedXPathViews.addAll(
|
|
53
|
-
SourceDocument(root ?: item.rootView, attributes).findViewsByXPath(
|
|
53
|
+
SourceDocument(root ?: item.rootView, attributes).findViewsByXPath(query)
|
|
54
54
|
)
|
|
55
55
|
didLookup = true
|
|
56
56
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
* you may not use this file except in compliance with the License.
|
|
4
|
+
* See the NOTICE file distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
package io.appium.espressoserver.test.helpers
|
|
18
|
+
|
|
19
|
+
import io.appium.espressoserver.lib.handlers.exceptions.XPathLookupException
|
|
20
|
+
import io.appium.espressoserver.lib.model.compileXpathQuery
|
|
21
|
+
import org.junit.Test
|
|
22
|
+
import kotlin.test.assertContains
|
|
23
|
+
import kotlin.test.assertEquals
|
|
24
|
+
import kotlin.test.assertFailsWith
|
|
25
|
+
|
|
26
|
+
const val PAGE_SOURCE = """<hierarchy>
|
|
27
|
+
<android.widget.FrameLayout viewIndex="0" text="Hello">
|
|
28
|
+
<android.widget.TextView viewIndex="1" text="Apple" enabled="true"/>
|
|
29
|
+
<android.widget.Button viewIndex="2" text="banana" enabled="false"/>
|
|
30
|
+
</android.widget.FrameLayout>
|
|
31
|
+
</hierarchy>"""
|
|
32
|
+
|
|
33
|
+
fun evaluate(xpath: String): List<Int> =
|
|
34
|
+
compileXpathQuery(xpath).evaluateNodeIds(PAGE_SOURCE.byteInputStream(), "viewIndex")
|
|
35
|
+
|
|
36
|
+
class `XPath Query Tests` {
|
|
37
|
+
|
|
38
|
+
@Test
|
|
39
|
+
fun `should find elements by an XPath 1 expression`() {
|
|
40
|
+
assertEquals(listOf(1), evaluate("//android.widget.TextView[@text='Apple']"))
|
|
41
|
+
assertEquals(listOf(1, 2), evaluate("//*[@enabled and @text]"))
|
|
42
|
+
assertEquals(listOf(2), evaluate("//android.widget.FrameLayout/*[last()]"))
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@Test
|
|
46
|
+
fun `should return no matches if nothing is found`() {
|
|
47
|
+
assertEquals(emptyList(), evaluate("//android.widget.Switch"))
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@Test
|
|
51
|
+
fun `should report malformed expressions as invalid selector`() {
|
|
52
|
+
assertFailsWith<XPathLookupException> { compileXpathQuery("//*[") }
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@Test
|
|
56
|
+
fun `should support XPath 2 functions`() {
|
|
57
|
+
assertEquals(listOf(0, 1), evaluate("//*[matches(@text, '^[A-Z]')]"))
|
|
58
|
+
assertEquals(listOf(2), evaluate("//*[lower-case(@text) = 'banana']"))
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@Test
|
|
62
|
+
fun `should support sequences and FLWOR expressions`() {
|
|
63
|
+
assertEquals(listOf(1, 2), evaluate("//*[@text = ('Apple', 'banana')]"))
|
|
64
|
+
assertEquals(listOf(2), evaluate("for ${"$"}b in //android.widget.Button return ${"$"}b"))
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@Test
|
|
68
|
+
fun `should skip non-element results`() {
|
|
69
|
+
assertEquals(emptyList(), evaluate("//@text"))
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@Test
|
|
73
|
+
fun `should report dynamic errors as invalid selector`() {
|
|
74
|
+
val error = assertFailsWith<XPathLookupException> { evaluate("//*[@text + 1 = 2]") }
|
|
75
|
+
assertContains(error.message.orEmpty(), "Could not evaluate XPath")
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@Test
|
|
79
|
+
fun `should report syntax errors as parse errors`() {
|
|
80
|
+
val error = assertFailsWith<XPathLookupException> { compileXpathQuery("//*[") }
|
|
81
|
+
assertContains(error.message.orEmpty(), "Could not parse XPath")
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@Test
|
|
85
|
+
fun `should report unknown functions and unbound variables as invalid selector`() {
|
|
86
|
+
assertFailsWith<XPathLookupException> { compileXpathQuery("//*[unknown()]") }
|
|
87
|
+
assertFailsWith<XPathLookupException> { compileXpathQuery("//*[@text = ${"$"}missing]") }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@Test
|
|
91
|
+
fun `should support the standard xs and fn prefixes`() {
|
|
92
|
+
assertEquals(listOf(1, 2), evaluate("//*[@enabled][xs:boolean(@enabled) or true()]"))
|
|
93
|
+
assertEquals(listOf(0, 1), evaluate("//*[fn:matches(@text, '^[A-Z]')]"))
|
|
94
|
+
assertEquals(listOf(0), evaluate("//*[xs:string(@text) = 'Hello']"))
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@Test
|
|
98
|
+
fun `should not load documents with fn doc`() {
|
|
99
|
+
assertFailsWith<XPathLookupException> { evaluate("doc('file:///etc/hosts')") }
|
|
100
|
+
}
|
|
101
|
+
}
|
package/node_modules/{appium-android-driver → @appium/base-driver}/node_modules/asyncbox/README.md
RENAMED
|
@@ -7,7 +7,7 @@ A collection of ES7 async/await utilities. Install via NPM:
|
|
|
7
7
|
npm install asyncbox
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
ESM
|
|
10
|
+
Published as both ESM and CommonJS, so `import {sleep} from 'asyncbox'` and `const {sleep} = require('asyncbox')` both work.
|
|
11
11
|
|
|
12
12
|
Then, behold!
|
|
13
13
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export {
|
|
2
|
+
AsyncboxError,
|
|
3
|
+
TimeoutError,
|
|
4
|
+
ConditionUnmetError,
|
|
5
|
+
LockTimeoutError,
|
|
6
|
+
LockQueueFullError,
|
|
7
|
+
PromiseCancellationError,
|
|
8
|
+
} from './errors.js';
|
|
9
|
+
export {sleep} from './sleep.js';
|
|
10
|
+
export {withTimeout} from './with-timeout.js';
|
|
11
|
+
export {longSleep} from './long-sleep.js';
|
|
12
|
+
export {retry, retryInterval} from './retry.js';
|
|
13
|
+
export {asyncmap} from './asyncmap.js';
|
|
14
|
+
export {asyncfilter} from './asyncfilter.js';
|
|
15
|
+
export {waitForCondition} from './wait-for-condition.js';
|
|
16
|
+
export {AsyncLock} from './lock.js';
|
|
17
|
+
|
|
18
|
+
export type {AsyncLockOptions, AcquireOptions} from './lock.js';
|
|
19
|
+
export type {
|
|
20
|
+
CancellablePromise,
|
|
21
|
+
Progress,
|
|
22
|
+
ProgressCallback,
|
|
23
|
+
LongSleepOptions,
|
|
24
|
+
MapFilterOptions,
|
|
25
|
+
SleepArg,
|
|
26
|
+
SleepOptions,
|
|
27
|
+
WaitForConditionOptions,
|
|
28
|
+
} from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asyncbox",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"description": "A collection of small async/await utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"async",
|
|
@@ -22,39 +22,53 @@
|
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"lib/**/*",
|
|
25
|
-
"build/lib/**/*"
|
|
25
|
+
"build/cjs/lib/**/*",
|
|
26
|
+
"build/cjs/package.json",
|
|
27
|
+
"build/esm/lib/**/*",
|
|
28
|
+
"build/esm/package.json"
|
|
26
29
|
],
|
|
27
30
|
"type": "module",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
31
|
+
"main": "./build/cjs/lib/index.js",
|
|
32
|
+
"module": "./build/esm/lib/index.js",
|
|
33
|
+
"types": "./build/cjs/lib/index.d.ts",
|
|
30
34
|
"exports": {
|
|
31
35
|
".": {
|
|
32
|
-
"
|
|
33
|
-
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./build/esm/lib/index.d.ts",
|
|
38
|
+
"default": "./build/esm/lib/index.js"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./build/cjs/lib/index.d.ts",
|
|
42
|
+
"default": "./build/cjs/lib/index.js"
|
|
43
|
+
}
|
|
34
44
|
},
|
|
35
45
|
"./package.json": "./package.json"
|
|
36
46
|
},
|
|
37
47
|
"scripts": {
|
|
38
|
-
"build": "tsc -b",
|
|
48
|
+
"build": "tsc -b tsconfig.esm.json tsconfig.cjs.json",
|
|
49
|
+
"postbuild": "node scripts/postbuild.mjs",
|
|
39
50
|
"clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",
|
|
40
51
|
"rebuild": "npm run clean; npm run build",
|
|
41
52
|
"dev": "npm run build -- --watch",
|
|
42
53
|
"prepare": "npm run rebuild",
|
|
43
|
-
"test": "node --test --enable-source-maps --test-force-exit --test-timeout=60000 \"./build/test/**/*.spec.js\"",
|
|
54
|
+
"test": "node --test --enable-source-maps --test-force-exit --test-timeout=60000 \"./build/esm/test/**/*.spec.js\" \"./test/*.spec.cjs\"",
|
|
44
55
|
"lint": "oxlint -c oxlint.config.mjs .",
|
|
45
56
|
"lint:fix": "oxlint -c oxlint.config.mjs --fix .",
|
|
46
57
|
"format": "oxfmt -c oxfmt.config.mjs .",
|
|
47
58
|
"format:check": "oxfmt -c oxfmt.config.mjs --check .",
|
|
48
59
|
"watch": "npm run dev"
|
|
49
60
|
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"p-limit": "^7.2.0"
|
|
63
|
+
},
|
|
50
64
|
"devDependencies": {
|
|
51
|
-
"@appium/oxc-config": "^
|
|
52
|
-
"@appium/semantic-release-config": "^
|
|
53
|
-
"@appium/tsconfig": "^2.0
|
|
65
|
+
"@appium/oxc-config": "^1.1.0",
|
|
66
|
+
"@appium/semantic-release-config": "^1.1.0",
|
|
67
|
+
"@appium/tsconfig": "^1.2.0",
|
|
54
68
|
"@types/node": "^26.1.0"
|
|
55
69
|
},
|
|
56
70
|
"engines": {
|
|
57
|
-
"node": "^
|
|
71
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
58
72
|
"npm": ">=10"
|
|
59
73
|
}
|
|
60
74
|
}
|
|
@@ -7,7 +7,7 @@ A collection of ES7 async/await utilities. Install via NPM:
|
|
|
7
7
|
npm install asyncbox
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
ESM
|
|
10
|
+
Published as both ESM and CommonJS, so `import {sleep} from 'asyncbox'` and `const {sleep} = require('asyncbox')` both work.
|
|
11
11
|
|
|
12
12
|
Then, behold!
|
|
13
13
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncfilter.d.ts","sourceRoot":"","sources":["../../../lib/asyncfilter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,IAAI,EAAE,CAAC,EAAE,EACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAChD,OAAO,GAAE,gBAAuB,GAC/B,OAAO,CAAC,CAAC,EAAE,CAAC,CA4Bd"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.asyncfilter = asyncfilter;
|
|
4
|
+
const limit_function_js_1 = require("./limit-function.js");
|
|
2
5
|
/**
|
|
3
6
|
* Similar to `Array.prototype.filter`; runs in parallel, serial, or with custom concurrency pool
|
|
4
7
|
* @param coll - The collection to filter
|
|
5
8
|
* @param filter - The function to test each element
|
|
6
9
|
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
async function asyncfilter(coll, filter, options = true) {
|
|
9
12
|
if (options === null) {
|
|
10
13
|
throw new Error('Options cannot be null');
|
|
11
14
|
}
|
|
@@ -24,7 +27,7 @@ export async function asyncfilter(coll, filter, options = true) {
|
|
|
24
27
|
}
|
|
25
28
|
return results;
|
|
26
29
|
}
|
|
27
|
-
const adjustedFilter = options === true ? filterAsync :
|
|
30
|
+
const adjustedFilter = options === true ? filterAsync : (await (0, limit_function_js_1.getLimitFunction)())(filterAsync, { concurrency: options.concurrency });
|
|
28
31
|
const bools = await Promise.all(coll.map(adjustedFilter));
|
|
29
32
|
return coll.reduce((acc, item, i) => {
|
|
30
33
|
if (bools[i]) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncfilter.js","sourceRoot":"","sources":["../../../lib/asyncfilter.ts"],"names":[],"mappings":";;AASA,kCAgCC;AAzCD,2DAAqD;AAGrD;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,IAAS,EACT,MAAgD,EAChD,UAA4B,IAAI;IAEhC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,+DAA+D;IAC/D,MAAM,WAAW,GAAG,KAAK,EAAE,KAAQ,EAAoB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACxE,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAQ,EAAE,CAAC;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBACtB,IAAI,MAAM,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC5B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,MAAM,cAAc,GAClB,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,oCAAgB,GAAE,CAAC,CAAC,WAAW,EAAE,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAC,CAAC,CAAC;IAC/G,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC,MAAM,CAAM,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;QACvC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YACb,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncmap.d.ts","sourceRoot":"","sources":["../../../lib/asyncmap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,CAAC,EACjC,IAAI,EAAE,CAAC,EAAE,EACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EACpC,OAAO,GAAE,gBAAuB,GAC/B,OAAO,CAAC,CAAC,EAAE,CAAC,CAmBd"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.asyncmap = asyncmap;
|
|
4
|
+
const limit_function_js_1 = require("./limit-function.js");
|
|
2
5
|
/**
|
|
3
6
|
* Similar to `Array.prototype.map`; runs in parallel, serial, or with custom concurrency pool
|
|
4
7
|
* @param coll - The collection to map over
|
|
5
8
|
* @param mapper - The function to apply to each element
|
|
6
9
|
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
async function asyncmap(coll, mapper, options = true) {
|
|
9
12
|
if (options === null) {
|
|
10
13
|
throw new Error('Options cannot be null');
|
|
11
14
|
}
|
|
@@ -21,7 +24,7 @@ export async function asyncmap(coll, mapper, options = true) {
|
|
|
21
24
|
}
|
|
22
25
|
return results;
|
|
23
26
|
}
|
|
24
|
-
const adjustedMapper = options === true ? mapperAsync :
|
|
27
|
+
const adjustedMapper = options === true ? mapperAsync : (await (0, limit_function_js_1.getLimitFunction)())(mapperAsync, { concurrency: options.concurrency });
|
|
25
28
|
return Promise.all(coll.map(adjustedMapper));
|
|
26
29
|
}
|
|
27
30
|
//# sourceMappingURL=asyncmap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncmap.js","sourceRoot":"","sources":["../../../lib/asyncmap.ts"],"names":[],"mappings":";;AASA,4BAuBC;AAhCD,2DAAqD;AAGrD;;;;;GAKG;AACI,KAAK,UAAU,QAAQ,CAC5B,IAAS,EACT,MAAoC,EACpC,UAA4B,IAAI;IAEhC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,+DAA+D;IAC/D,MAAM,WAAW,GAAG,KAAK,EAAE,KAAQ,EAAc,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClE,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAQ,EAAE,CAAC;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,MAAM,cAAc,GAClB,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,oCAAgB,GAAE,CAAC,CAAC,WAAW,EAAE,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAC,CAAC,CAAC;IAC/G,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../lib/errors.ts"],"names":[],"mappings":"AAAA,oHAAoH;AACpH,qBAAa,aAAc,SAAQ,KAAK;IACtC,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAuB;CAK3D;AAED,yEAAyE;AACzE,qBAAa,YAAa,SAAQ,aAAa;gBACjC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,MAA+B;CAIpE;AAED,gFAAgF;AAChF,qBAAa,mBAAoB,SAAQ,YAAY;gBACvC,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,gGAAgG;AAChG,qBAAa,gBAAiB,SAAQ,YAAY;gBACpC,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,4FAA4F;AAC5F,qBAAa,kBAAmB,SAAQ,aAAa;gBACvC,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,uDAAuD;AACvD,qBAAa,wBAAyB,SAAQ,aAAa;gBAC7C,OAAO,GAAE,MAA4B;CAIlD"}
|