appium-espresso-driver 9.3.6 → 9.3.8
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/commands/context.d.ts +1 -1
- package/build/lib/commands/context.js +1 -1
- package/build/lib/commands/element.d.ts +10 -10
- package/build/lib/commands/element.js +10 -10
- package/build/lib/commands/idling-resources.d.ts +1 -1
- package/build/lib/commands/idling-resources.js +1 -1
- package/build/lib/commands/misc.d.ts +5 -4
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js +3 -3
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/services.d.ts +2 -2
- package/build/lib/commands/services.js +2 -2
- package/build/lib/driver.js +1 -1
- package/build/lib/driver.js.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 +1 -1
- package/espresso-server/gradle.properties +1 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/lib/commands/context.ts +1 -1
- package/lib/commands/element.ts +10 -10
- package/lib/commands/idling-resources.ts +1 -1
- package/lib/commands/misc.ts +5 -4
- package/lib/commands/services.ts +2 -2
- package/lib/driver.ts +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +6 -3
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js +40 -3
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js.map +1 -1
- package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi.ts +6 -3
- package/node_modules/@appium/base-driver/lib/basedriver/commands/timeout.ts +1 -1
- package/node_modules/@appium/base-driver/lib/basedriver/helpers.ts +41 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js +13 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js +13 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncbox.ts +20 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +1 -1
- package/node_modules/@appium/base-driver/package.json +9 -9
- package/node_modules/@appium/base-driver/tsconfig.json +1 -1
- package/node_modules/@appium/logger/CHANGELOG.md +8 -0
- package/node_modules/@appium/logger/package.json +3 -3
- package/node_modules/@appium/support/build/lib/fs.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/fs.js +7 -0
- package/node_modules/@appium/support/build/lib/fs.js.map +1 -1
- package/node_modules/@appium/support/build/lib/index.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/net.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/net.js +6 -2
- package/node_modules/@appium/support/build/lib/net.js.map +1 -1
- package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/util.js +10 -4
- package/node_modules/@appium/support/build/lib/util.js.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.js +2 -7
- package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
- package/node_modules/@appium/support/lib/fs.ts +8 -1
- package/node_modules/@appium/support/lib/net.ts +7 -2
- package/node_modules/@appium/support/lib/util.ts +9 -3
- package/node_modules/@appium/support/lib/zip.ts +3 -9
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +13 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +13 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +20 -3
- package/node_modules/@appium/support/node_modules/asyncbox/package.json +1 -1
- package/node_modules/@appium/support/package.json +9 -9
- package/node_modules/@appium/types/package.json +4 -4
- package/node_modules/@img/sharp-libvips-linux-x64/README.md +1 -1
- package/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +2 -2
- package/node_modules/@img/sharp-libvips-linux-x64/lib/{libvips-cpp.so.8.18.6 → libvips-cpp.so.8.18.7} +0 -0
- package/node_modules/@img/sharp-libvips-linux-x64/package.json +2 -2
- package/node_modules/@img/sharp-libvips-linux-x64/versions.json +11 -11
- package/node_modules/@img/sharp-linux-x64/index.cjs +1 -1
- package/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.5.node +0 -0
- package/node_modules/@img/sharp-linux-x64/package.json +2 -2
- package/node_modules/appium-adb/CHANGELOG.md +37 -0
- package/node_modules/appium-adb/README.md +1 -1
- package/node_modules/appium-adb/build/lib/tools/aab-utils.js +34 -34
- package/node_modules/appium-adb/build/lib/tools/aab-utils.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/android-manifest.js +1 -1
- package/node_modules/appium-adb/build/lib/tools/android-manifest.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apk-signing.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apk-signing.js +21 -9
- package/node_modules/appium-adb/build/lib/tools/apk-signing.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apks-utils.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apks-utils.js +6 -5
- package/node_modules/appium-adb/build/lib/tools/apks-utils.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/app-commands.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/app-commands.js +63 -62
- package/node_modules/appium-adb/build/lib/tools/app-commands.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/device-settings.js +1 -1
- package/node_modules/appium-adb/build/lib/tools/device-settings.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/lockmgmt.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/lockmgmt.js +3 -9
- package/node_modules/appium-adb/build/lib/tools/lockmgmt.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/system-calls.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/system-calls.js +7 -6
- package/node_modules/appium-adb/build/lib/tools/system-calls.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/types.d.ts +4 -0
- package/node_modules/appium-adb/build/lib/tools/types.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts +1 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/helpers/index.js +1 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/index.js.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts +19 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts.map +1 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.js +57 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.js.map +1 -0
- package/node_modules/appium-adb/build/lib/utils/index.d.ts +2 -0
- package/node_modules/appium-adb/build/lib/utils/index.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/index.js +2 -0
- package/node_modules/appium-adb/build/lib/utils/index.js.map +1 -1
- package/node_modules/appium-adb/lib/tools/aab-utils.ts +35 -35
- package/node_modules/appium-adb/lib/tools/android-manifest.ts +1 -1
- package/node_modules/appium-adb/lib/tools/apk-signing.ts +26 -9
- package/node_modules/appium-adb/lib/tools/apks-utils.ts +13 -5
- package/node_modules/appium-adb/lib/tools/app-commands.ts +59 -68
- package/node_modules/appium-adb/lib/tools/device-settings.ts +1 -1
- package/node_modules/appium-adb/lib/tools/lockmgmt.ts +3 -8
- package/node_modules/appium-adb/lib/tools/system-calls.ts +15 -6
- package/node_modules/appium-adb/lib/tools/types.ts +4 -0
- package/node_modules/appium-adb/lib/utils/helpers/index.ts +1 -0
- package/node_modules/appium-adb/lib/utils/helpers/redact.ts +59 -0
- package/node_modules/appium-adb/lib/utils/index.ts +2 -0
- package/node_modules/appium-adb/package.json +10 -13
- package/node_modules/appium-android-driver/CHANGELOG.md +31 -0
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.js +10 -6
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/file-actions.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/file-actions.js +55 -35
- package/node_modules/appium-android-driver/build/lib/commands/file-actions.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/log.js +2 -2
- package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
- package/node_modules/appium-android-driver/lib/commands/context/exports.ts +10 -6
- package/node_modules/appium-android-driver/lib/commands/file-actions.ts +58 -39
- package/node_modules/appium-android-driver/lib/commands/log.ts +2 -2
- package/node_modules/appium-android-driver/package.json +1 -1
- package/node_modules/appium-chromedriver/CHANGELOG.md +68 -0
- package/node_modules/appium-chromedriver/README.md +2 -4
- package/node_modules/appium-chromedriver/build/lib/commands/version.d.ts.map +1 -1
- package/node_modules/appium-chromedriver/build/lib/commands/version.js +9 -0
- package/node_modules/appium-chromedriver/build/lib/commands/version.js.map +1 -1
- package/node_modules/appium-chromedriver/config/mapping.json +7 -1
- package/node_modules/appium-chromedriver/lib/commands/version.ts +10 -0
- package/node_modules/appium-chromedriver/package.json +10 -13
- package/node_modules/asyncbox/README.md +43 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +35 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js +23 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js +20 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js +24 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js +295 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js +61 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +51 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js +45 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js +32 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js +20 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js +15 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.js +10 -0
- package/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js +291 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js +33 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js +53 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js +58 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +48 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js +42 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/lib/asyncfilter.ts +38 -0
- package/node_modules/asyncbox/lib/asyncmap.ts +29 -0
- package/node_modules/asyncbox/lib/errors.ts +15 -0
- package/node_modules/asyncbox/lib/index.ts +21 -0
- package/node_modules/asyncbox/lib/limit-function.ts +18 -0
- package/node_modules/asyncbox/lib/lock.ts +360 -0
- package/node_modules/asyncbox/lib/long-sleep.ts +38 -0
- package/node_modules/asyncbox/lib/retry.ts +61 -0
- package/node_modules/asyncbox/lib/sleep.ts +79 -0
- package/node_modules/asyncbox/lib/wait-for-condition.ts +52 -0
- package/node_modules/asyncbox/lib/with-timeout.ts +43 -0
- package/node_modules/asyncbox/package.json +8 -8
- package/node_modules/bare-fs/binding.c +52 -23
- package/node_modules/bare-fs/index.d.ts +12 -10
- package/node_modules/bare-fs/index.js +43 -10
- package/node_modules/bare-fs/package.json +2 -1
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bare-url/README.md +4 -0
- package/node_modules/bare-url/index.d.ts +3 -0
- package/node_modules/bare-url/index.js +42 -18
- package/node_modules/bare-url/lib/errors.js +4 -0
- package/node_modules/bare-url/package.json +1 -1
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/bplist-creator/README.md +26 -6
- package/node_modules/bplist-creator/dist/index.cjs +508 -0
- package/node_modules/bplist-creator/dist/index.cjs.map +7 -0
- package/node_modules/bplist-creator/dist/index.d.cts +12 -0
- package/node_modules/bplist-creator/dist/index.d.ts +12 -0
- package/node_modules/bplist-creator/dist/index.mjs +472 -0
- package/node_modules/bplist-creator/dist/index.mjs.map +7 -0
- package/node_modules/bplist-creator/package.json +43 -9
- package/node_modules/bplist-parser/README.md +37 -3
- package/node_modules/bplist-parser/dist/index.cjs +385 -0
- package/node_modules/bplist-parser/dist/index.cjs.map +7 -0
- package/node_modules/bplist-parser/dist/index.d.cts +13 -0
- package/node_modules/bplist-parser/dist/index.d.ts +13 -0
- package/node_modules/bplist-parser/{bplistParser.js → dist/index.mjs} +141 -171
- package/node_modules/bplist-parser/dist/index.mjs.map +7 -0
- package/node_modules/bplist-parser/package.json +39 -12
- package/node_modules/follow-redirects/index.js +10 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/io.appium.settings/CHANGELOG.md +72 -0
- package/node_modules/io.appium.settings/README.md +126 -0
- package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
- package/node_modules/io.appium.settings/build/lib/client.d.ts +4 -0
- package/node_modules/io.appium.settings/build/lib/client.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/client.js +4 -0
- package/node_modules/io.appium.settings/build/lib/client.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/clipboard.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/clipboard.js +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/clipboard.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts +55 -0
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js +156 -0
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/commands/media-projection.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/media-projection.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/media.js +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/media.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/network.js +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/network.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/types.d.ts +65 -0
- package/node_modules/io.appium.settings/build/lib/commands/types.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts +56 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.js +166 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/constants.d.ts +7 -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 +7 -0
- package/node_modules/io.appium.settings/build/lib/constants.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/index.js +1 -1
- package/node_modules/io.appium.settings/build/lib/index.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/{utils.d.ts → utils/apk-path.d.ts} +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/apk-path.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/{utils.js → utils/apk-path.js} +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/apk-path.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.d.ts +5 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.js +4 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts +47 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js +67 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts +142 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js +416 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js.map +1 -0
- package/node_modules/io.appium.settings/lib/client.ts +5 -0
- package/node_modules/io.appium.settings/lib/commands/clipboard.ts +1 -0
- package/node_modules/io.appium.settings/lib/commands/jpeg-stream.ts +175 -0
- package/node_modules/io.appium.settings/lib/commands/media-projection.ts +1 -5
- package/node_modules/io.appium.settings/lib/commands/media.ts +1 -1
- package/node_modules/io.appium.settings/lib/commands/network.ts +1 -1
- package/node_modules/io.appium.settings/lib/commands/types.ts +70 -0
- package/node_modules/io.appium.settings/lib/commands/video-stream.ts +185 -0
- package/node_modules/io.appium.settings/lib/constants.ts +10 -0
- package/node_modules/io.appium.settings/lib/index.ts +1 -1
- package/node_modules/io.appium.settings/lib/utils/index.ts +4 -0
- package/node_modules/io.appium.settings/lib/utils/streaming-protocol.ts +93 -0
- package/node_modules/io.appium.settings/lib/utils/streaming-transport.ts +450 -0
- package/node_modules/io.appium.settings/package.json +17 -20
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/package.json +27 -1
- package/node_modules/morgan/README.md +49 -10
- package/node_modules/morgan/index.js +24 -6
- package/node_modules/morgan/package.json +6 -6
- package/node_modules/on-finished/index.js +14 -2
- package/node_modules/on-finished/package.json +11 -7
- package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
- package/node_modules/qs/CHANGELOG.md +38 -14
- package/node_modules/qs/README.md +31 -3
- package/node_modules/qs/dist/qs.js +20 -20
- package/node_modules/qs/lib/parse.js +94 -4
- package/node_modules/qs/lib/stringify.js +4 -4
- package/node_modules/qs/lib/utils.js +130 -6
- package/node_modules/qs/package.json +4 -4
- package/node_modules/qs/test/parse.js +174 -0
- package/node_modules/qs/test/stringify.js +263 -33
- package/node_modules/qs/test/utils.js +184 -0
- package/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/duplexify.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/from.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/legacy.js +6 -1
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/readable.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/writable.js +1 -1
- package/node_modules/readable-stream/package.json +3 -2
- package/node_modules/sharp/dist/index.d.cts +2 -2
- package/node_modules/sharp/dist/index.d.mts +3 -3
- package/node_modules/sharp/dist/is.cjs +8 -2
- package/node_modules/sharp/dist/is.mjs +8 -2
- package/node_modules/sharp/dist/operation.cjs +2 -2
- package/node_modules/sharp/dist/operation.mjs +2 -2
- package/node_modules/sharp/dist/output.cjs +1 -0
- package/node_modules/sharp/dist/output.mjs +1 -0
- package/node_modules/sharp/dist/resize.cjs +14 -14
- package/node_modules/sharp/dist/resize.mjs +14 -14
- package/node_modules/sharp/dist/sharp.cjs +3 -3
- package/node_modules/sharp/dist/sharp.mjs +3 -3
- package/node_modules/sharp/lib/index.d.ts +2 -2
- package/node_modules/sharp/package.json +35 -35
- package/node_modules/sharp/src/binding.gyp +1 -1
- package/node_modules/sharp/src/common.cc +4 -4
- package/node_modules/sharp/src/common.h +2 -2
- package/node_modules/sharp/src/pipeline.cc +31 -6
- package/node_modules/sharp/src/utilities.cc +1 -1
- package/node_modules/stream-buffers/.codeclimate.yml +12 -0
- package/node_modules/stream-buffers/.eslintignore +1 -0
- package/node_modules/stream-buffers/.eslintrc +25 -0
- package/node_modules/stream-buffers/.github/workflows/codeql-analysis.yml +71 -0
- package/node_modules/stream-buffers/.github/workflows/node.js.yml +31 -0
- package/node_modules/stream-buffers/.mailmap +1 -0
- package/node_modules/stream-buffers/.nvmrc +1 -0
- package/node_modules/stream-buffers/README.md +65 -65
- package/node_modules/stream-buffers/lib/constants.js +8 -6
- package/node_modules/stream-buffers/lib/readable_streambuffer.js +114 -136
- package/node_modules/stream-buffers/lib/streambuffer.js +5 -3
- package/node_modules/stream-buffers/lib/writable_streambuffer.js +72 -97
- package/node_modules/stream-buffers/package.json +7 -5
- package/node_modules/tar-stream/package.json +7 -7
- package/node_modules/type-fest/index.d.ts +7 -7
- package/node_modules/type-fest/package.json +2 -1
- package/node_modules/type-fest/readme.md +7 -16
- package/node_modules/type-fest/source/all-extend.d.ts +9 -7
- package/node_modules/type-fest/source/array-reverse.d.ts +13 -12
- package/node_modules/type-fest/source/array-tail.d.ts +3 -3
- package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
- package/node_modules/type-fest/source/get.d.ts +1 -1
- package/node_modules/type-fest/source/int-closed-range.d.ts +4 -1
- package/node_modules/type-fest/source/int-range.d.ts +56 -9
- package/node_modules/type-fest/source/internal/array.d.ts +14 -13
- package/node_modules/type-fest/source/internal/numeric.d.ts +0 -38
- package/node_modules/type-fest/source/internal/object.d.ts +30 -1
- package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
- package/node_modules/type-fest/source/is-literal.d.ts +43 -269
- package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
- package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
- package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
- package/node_modules/type-fest/source/is-tuple.d.ts +3 -3
- package/node_modules/type-fest/source/jsonify.d.ts +1 -5
- package/node_modules/type-fest/source/merge-deep.d.ts +3 -3
- package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
- package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
- package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
- package/node_modules/type-fest/source/set-required.d.ts +10 -9
- package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +6 -4
- package/node_modules/type-fest/source/some-extend.d.ts +9 -7
- package/node_modules/type-fest/source/split-on-rest-element.d.ts +14 -13
- package/node_modules/type-fest/source/split.d.ts +22 -11
- package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
- package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
- package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
- package/node_modules/type-fest/source/typed-array.d.ts +6 -0
- package/node_modules/type-fest/source/union-max.d.ts +56 -0
- package/node_modules/type-fest/source/writable.d.ts +2 -2
- package/node_modules/xpath/LICENSE +22 -22
- package/node_modules/xpath/package.json +43 -43
- package/node_modules/xpath/xpath.d.ts +51 -51
- package/node_modules/xpath/xpath.js +17 -2
- package/package.json +5 -5
- package/node_modules/@appium/base-driver/node_modules/axios/CHANGELOG.md +0 -1872
- package/node_modules/@appium/base-driver/node_modules/axios/LICENSE +0 -7
- package/node_modules/@appium/base-driver/node_modules/axios/MIGRATION_GUIDE.md +0 -877
- package/node_modules/@appium/base-driver/node_modules/axios/README.md +0 -2623
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.js +0 -5509
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js +0 -5
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/axios/dist/browser/axios.cjs +0 -5469
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.js +0 -5490
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/axios/dist/node/axios.cjs +0 -6356
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.cts +0 -762
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.ts +0 -783
- package/node_modules/@appium/base-driver/node_modules/axios/index.js +0 -45
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/adapters.js +0 -132
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/fetch.js +0 -643
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/http.js +0 -1406
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/xhr.js +0 -228
- package/node_modules/@appium/base-driver/node_modules/axios/lib/axios.js +0 -89
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CancelToken.js +0 -135
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CanceledError.js +0 -22
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/Axios.js +0 -301
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosError.js +0 -219
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/InterceptorManager.js +0 -72
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/buildFullPath.js +0 -88
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/dispatchRequest.js +0 -89
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/mergeConfig.js +0 -174
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/settle.js +0 -27
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/transformData.js +0 -28
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/index.js +0 -177
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/transitional.js +0 -10
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/data.js +0 -1
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/bind.js +0 -14
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/callbackify.js +0 -18
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/combineURLs.js +0 -23
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/composeSignals.js +0 -68
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/cookies.js +0 -64
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/null.js +0 -2
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/spread.js +0 -28
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toFormData.js +0 -286
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/trackStream.js +0 -89
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/validator.js +0 -112
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/common/utils.js +0 -52
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/index.js +0 -37
- package/node_modules/@appium/base-driver/node_modules/axios/lib/utils.js +0 -1029
- package/node_modules/@appium/base-driver/node_modules/axios/package.json +0 -203
- package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +0 -1872
- package/node_modules/@appium/support/node_modules/axios/LICENSE +0 -7
- package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +0 -877
- package/node_modules/@appium/support/node_modules/axios/README.md +0 -2623
- package/node_modules/@appium/support/node_modules/axios/dist/axios.js +0 -5509
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +0 -5
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +0 -5469
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +0 -5490
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +0 -6356
- package/node_modules/@appium/support/node_modules/axios/index.d.cts +0 -762
- package/node_modules/@appium/support/node_modules/axios/index.d.ts +0 -783
- package/node_modules/@appium/support/node_modules/axios/index.js +0 -45
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +0 -132
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +0 -643
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +0 -1406
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +0 -228
- package/node_modules/@appium/support/node_modules/axios/lib/axios.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +0 -135
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +0 -22
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +0 -301
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +0 -219
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
- package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +0 -72
- package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +0 -88
- package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +0 -174
- package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
- package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +0 -27
- package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +0 -28
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +0 -177
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +0 -10
- package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +0 -1
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +0 -14
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +0 -18
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +0 -23
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +0 -68
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +0 -64
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +0 -2
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +0 -28
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +0 -286
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +0 -112
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +0 -52
- package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +0 -37
- package/node_modules/@appium/support/node_modules/axios/lib/utils.js +0 -1029
- package/node_modules/@appium/support/node_modules/axios/package.json +0 -203
- package/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.4.node +0 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -311
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
- package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
- package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -298
- package/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
- package/node_modules/asyncbox/lib/asyncbox.ts +0 -382
- package/node_modules/big-integer/BigInteger.d.ts +0 -2393
- package/node_modules/big-integer/BigInteger.js +0 -1453
- package/node_modules/big-integer/BigInteger.min.js +0 -1
- package/node_modules/big-integer/LICENSE +0 -24
- package/node_modules/big-integer/README.md +0 -589
- package/node_modules/big-integer/bower.json +0 -29
- package/node_modules/big-integer/package.json +0 -48
- package/node_modules/big-integer/tsconfig.json +0 -24
- package/node_modules/bplist-creator/bplistCreator.d.ts +0 -8
- package/node_modules/bplist-creator/bplistCreator.js +0 -460
- package/node_modules/bplist-creator/test/airplay.bplist +0 -0
- package/node_modules/bplist-creator/test/binaryData.bplist +0 -0
- package/node_modules/bplist-creator/test/creatorTest.js +0 -211
- package/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
- package/node_modules/bplist-creator/test/integers.bplist +0 -0
- package/node_modules/bplist-creator/test/sample1.bplist +0 -0
- package/node_modules/bplist-creator/test/sample2.bplist +0 -0
- package/node_modules/bplist-creator/test/uid.bplist +0 -0
- package/node_modules/bplist-creator/test/utf16.bplist +0 -0
- package/node_modules/bplist-parser/.editorconfig +0 -12
- package/node_modules/bplist-parser/.eslintignore +0 -1
- package/node_modules/bplist-parser/.eslintrc.js +0 -296
- package/node_modules/bplist-parser/bplistParser.d.ts +0 -8
- package/node_modules/io.appium.settings/build/lib/utils.d.ts.map +0 -1
- package/node_modules/io.appium.settings/build/lib/utils.js.map +0 -1
- package/node_modules/on-finished/HISTORY.md +0 -98
- package/node_modules/stream-buffers/.travis.yml +0 -28
- package/node_modules/stream-buffers/coverage/coverage.json +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/base.css +0 -182
- package/node_modules/stream-buffers/coverage/lcov-report/index.html +0 -73
- package/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +0 -63
- package/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +0 -112
- package/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +0 -453
- package/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +0 -54
- package/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +0 -336
- package/node_modules/stream-buffers/coverage/lcov-report/prettify.css +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/prettify.js +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/node_modules/stream-buffers/coverage/lcov-report/sorter.js +0 -156
- package/node_modules/stream-buffers/coverage/lcov.info +0 -305
- /package/node_modules/io.appium.settings/lib/{utils.ts → utils/apk-path.ts} +0 -0
|
@@ -35,6 +35,71 @@ export interface StartMediaProjectionRecordingOpts {
|
|
|
35
35
|
* invalid file name will fail to start the recording. */
|
|
36
36
|
filename?: string;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Options for choosing the local TCP port used to bridge a live stream's
|
|
40
|
+
* on-device socket to the host via `adb forward`. At most one of these may be
|
|
41
|
+
* provided; if neither is given, an OS-assigned ephemeral port is used.
|
|
42
|
+
*/
|
|
43
|
+
export interface LocalPortOpts {
|
|
44
|
+
/** Use this exact local TCP port. Throws if it's already in use. */
|
|
45
|
+
localPort?: number;
|
|
46
|
+
/** Pick the first free local TCP port from this inclusive [min, max] range. */
|
|
47
|
+
localPortRange?: [number, number];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Options for starting a live JPEG frame streaming session.
|
|
51
|
+
*/
|
|
52
|
+
export interface StartJpegStreamOpts extends LocalPortOpts {
|
|
53
|
+
/** Frames per second requested; actual rate may be lower on constrained devices. Default 60. */
|
|
54
|
+
fps?: number;
|
|
55
|
+
/** JPEG quality, 1-100. Default 80. */
|
|
56
|
+
quality?: number;
|
|
57
|
+
/** Percentage (1-100) to scale the captured frame to before JPEG encoding. Default 100. */
|
|
58
|
+
scale?: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Options for starting a live H.264/HEVC video streaming session.
|
|
62
|
+
*/
|
|
63
|
+
export interface StartVideoStreamOpts extends LocalPortOpts {
|
|
64
|
+
/** Default 'h264'. */
|
|
65
|
+
codec?: 'h264' | 'hevc';
|
|
66
|
+
/** Default 30. */
|
|
67
|
+
fps?: number;
|
|
68
|
+
/** Default 4000000 (4 Mbps). */
|
|
69
|
+
bitrate?: number;
|
|
70
|
+
/** Same "WxH" syntax/allowed values as StartMediaProjectionRecordingOpts.resolution. */
|
|
71
|
+
resolution?: string;
|
|
72
|
+
/** Interleave an AAC audio track captured via AudioPlaybackCaptureConfiguration. Default false. */
|
|
73
|
+
audio?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A single JPEG-encoded frame of the device screen.
|
|
77
|
+
*/
|
|
78
|
+
export interface JpegFrame {
|
|
79
|
+
/** The raw JPEG-encoded image bytes. */
|
|
80
|
+
data: Buffer;
|
|
81
|
+
/** Monotonically increasing frame sequence number. */
|
|
82
|
+
sequence: number;
|
|
83
|
+
/** Frame timestamp, in microseconds since the stream session started. */
|
|
84
|
+
timestampMicros: number;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A single encoded access unit from a live video stream: either a video NAL
|
|
88
|
+
* unit (Annex-B, H.264/HEVC) or an AAC audio unit (ADTS-framed).
|
|
89
|
+
*/
|
|
90
|
+
export interface AccessUnit {
|
|
91
|
+
track: 'video' | 'audio';
|
|
92
|
+
/** The raw access unit bytes. */
|
|
93
|
+
data: Buffer;
|
|
94
|
+
/** Monotonically increasing sequence number, per track. */
|
|
95
|
+
sequence: number;
|
|
96
|
+
/** Presentation timestamp, in microseconds since the stream session started. */
|
|
97
|
+
timestampMicros: number;
|
|
98
|
+
/** Whether this is a video keyframe (always false for audio units). */
|
|
99
|
+
isKeyFrame: boolean;
|
|
100
|
+
/** Whether this unit carries codec configuration data (e.g. SPS/PPS) rather than actual samples. */
|
|
101
|
+
isConfig: boolean;
|
|
102
|
+
}
|
|
38
103
|
/**
|
|
39
104
|
* Supported locale information.
|
|
40
105
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/commands/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,2GAA2G;IAC3G,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,+GAA+G;IAC/G,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,2QAA2Q;IAC3Q,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;sDAGkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;iCAC6B;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;uCAEmC;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACrC;;6DAEyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iBAA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AAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ADB } from 'appium-adb';
|
|
2
|
+
import type { SettingsApp } from '../client.js';
|
|
3
|
+
import type { AccessUnit, StartVideoStreamOpts } from './types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new instance of the live H.264/HEVC video streaming session.
|
|
6
|
+
* The stream only works since Android API 29+
|
|
7
|
+
*
|
|
8
|
+
* @returns The streaming session instance
|
|
9
|
+
*/
|
|
10
|
+
export declare function makeVideoStreamSession(this: SettingsApp): VideoStreamSession;
|
|
11
|
+
/**
|
|
12
|
+
* Live H.264/HEVC video streaming session for the device screen, with an
|
|
13
|
+
* optional interleaved AAC audio track.
|
|
14
|
+
*/
|
|
15
|
+
export declare class VideoStreamSession {
|
|
16
|
+
private readonly adb;
|
|
17
|
+
private transport;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new VideoStreamSession instance.
|
|
20
|
+
*
|
|
21
|
+
* @param adb - ADB instance for device communication
|
|
22
|
+
*/
|
|
23
|
+
constructor(adb: ADB);
|
|
24
|
+
/**
|
|
25
|
+
* Checks if the video stream is currently running.
|
|
26
|
+
*/
|
|
27
|
+
isRunning(): Promise<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Starts the live video stream.
|
|
30
|
+
* If a stream is already running, this method returns false without starting a new one.
|
|
31
|
+
*
|
|
32
|
+
* @param opts Streaming options including codec, fps, bitrate, resolution, audio, and the local port to use
|
|
33
|
+
* @returns True if the stream was started successfully, false if already running
|
|
34
|
+
* @throws {Error} If the stream fails to start within the timeout period
|
|
35
|
+
*/
|
|
36
|
+
start(opts?: StartVideoStreamOpts): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Yields access units (video NAL units and, if enabled, AAC audio units) as
|
|
39
|
+
* they arrive from the device. `start()` must be called before iterating.
|
|
40
|
+
*
|
|
41
|
+
* A CONFIG unit is normally seen only once, at the start of the stream, but a
|
|
42
|
+
* device rotation makes the on-device encoder restart mid-stream: a second (or
|
|
43
|
+
* later) CONFIG unit means the video's dimensions changed and the decoder must be
|
|
44
|
+
* reconfigured with these new SPS/PPS bytes, not treated as an error. `sequence`
|
|
45
|
+
* keeps increasing across such a restart, it is never reset.
|
|
46
|
+
*/
|
|
47
|
+
accessUnits(): AsyncGenerator<AccessUnit>;
|
|
48
|
+
/**
|
|
49
|
+
* Stops the currently running video stream.
|
|
50
|
+
*
|
|
51
|
+
* @returns True if the stream was stopped successfully, false if it was not running
|
|
52
|
+
* @throws {Error} If the stream fails to stop within the timeout period
|
|
53
|
+
*/
|
|
54
|
+
stop(): Promise<boolean>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=video-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-stream.d.ts","sourceRoot":"","sources":["../../../lib/commands/video-stream.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAS9C,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,YAAY,CAAC;AAKjE;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,GAAG,kBAAkB,CAE5E;AAgBD;;;GAGG;AACH,qBAAa,kBAAkB;IAQjB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAPhC,OAAO,CAAC,SAAS,CAAgC;IAEjD;;;;OAIG;gBAC0B,GAAG,EAAE,GAAG;IAErC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAKnC;;;;;;;OAOG;IACG,KAAK,CAAC,IAAI,GAAE,oBAAyB,GAAG,OAAO,CAAC,OAAO,CAAC;IAsD9D;;;;;;;;;OASG;IACI,WAAW,IAAI,cAAc,CAAC,UAAU,CAAC;IAgBhD;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;CAyB/B"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { waitForCondition } from 'asyncbox';
|
|
3
|
+
import { SETTINGS_HELPER_ID, STREAMING_ACTIVITY_NAME, VIDEO_STREAM_ACTION_START, VIDEO_STREAM_ACTION_STOP, VIDEO_STREAM_SERVICE_NAME, } from '../constants.js';
|
|
4
|
+
import { StreamTrack, StreamTransport, validateLocalPortOpts } from '../utils/index.js';
|
|
5
|
+
const STREAM_STARTUP_TIMEOUT_MS = 10 * 1000;
|
|
6
|
+
const STREAM_STOP_TIMEOUT_MS = 3 * 1000;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new instance of the live H.264/HEVC video streaming session.
|
|
9
|
+
* The stream only works since Android API 29+
|
|
10
|
+
*
|
|
11
|
+
* @returns The streaming session instance
|
|
12
|
+
*/
|
|
13
|
+
export function makeVideoStreamSession() {
|
|
14
|
+
return new VideoStreamSession(this.adb);
|
|
15
|
+
}
|
|
16
|
+
function validateVideoStreamOpts(opts) {
|
|
17
|
+
const { codec, fps, bitrate } = opts;
|
|
18
|
+
if (codec !== undefined && codec !== 'h264' && codec !== 'hevc') {
|
|
19
|
+
throw new TypeError(`codec must be either 'h264' or 'hevc', got ${codec}`);
|
|
20
|
+
}
|
|
21
|
+
if (fps !== undefined && (!Number.isInteger(fps) || fps <= 0)) {
|
|
22
|
+
throw new TypeError(`fps must be a positive integer, got ${fps}`);
|
|
23
|
+
}
|
|
24
|
+
if (bitrate !== undefined && (!Number.isInteger(bitrate) || bitrate <= 0)) {
|
|
25
|
+
throw new TypeError(`bitrate must be a positive integer, got ${bitrate}`);
|
|
26
|
+
}
|
|
27
|
+
validateLocalPortOpts(opts);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Live H.264/HEVC video streaming session for the device screen, with an
|
|
31
|
+
* optional interleaved AAC audio track.
|
|
32
|
+
*/
|
|
33
|
+
export class VideoStreamSession {
|
|
34
|
+
adb;
|
|
35
|
+
transport = null;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new VideoStreamSession instance.
|
|
38
|
+
*
|
|
39
|
+
* @param adb - ADB instance for device communication
|
|
40
|
+
*/
|
|
41
|
+
constructor(adb) {
|
|
42
|
+
this.adb = adb;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Checks if the video stream is currently running.
|
|
46
|
+
*/
|
|
47
|
+
async isRunning() {
|
|
48
|
+
const stdout = await this.adb.shell(['dumpsys', 'activity', 'services', VIDEO_STREAM_SERVICE_NAME]);
|
|
49
|
+
return stdout.includes(VIDEO_STREAM_SERVICE_NAME);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Starts the live video stream.
|
|
53
|
+
* If a stream is already running, this method returns false without starting a new one.
|
|
54
|
+
*
|
|
55
|
+
* @param opts Streaming options including codec, fps, bitrate, resolution, audio, and the local port to use
|
|
56
|
+
* @returns True if the stream was started successfully, false if already running
|
|
57
|
+
* @throws {Error} If the stream fails to start within the timeout period
|
|
58
|
+
*/
|
|
59
|
+
async start(opts = {}) {
|
|
60
|
+
validateVideoStreamOpts(opts);
|
|
61
|
+
if (await this.isRunning()) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
const { codec, fps, bitrate, resolution, audio, localPort, localPortRange } = opts;
|
|
65
|
+
// Socket names are validated on-device against ^[a-zA-Z0-9._-]{1,200}$, so this
|
|
66
|
+
// must not contain a "/" - unlike VIDEO_STREAM_SERVICE_NAME.
|
|
67
|
+
const socketName = `${SETTINGS_HELPER_ID}.videostream.${randomUUID()}`;
|
|
68
|
+
const args = [
|
|
69
|
+
'am',
|
|
70
|
+
'start',
|
|
71
|
+
'-n',
|
|
72
|
+
STREAMING_ACTIVITY_NAME,
|
|
73
|
+
'-a',
|
|
74
|
+
VIDEO_STREAM_ACTION_START,
|
|
75
|
+
'--es',
|
|
76
|
+
'socket_name',
|
|
77
|
+
socketName,
|
|
78
|
+
];
|
|
79
|
+
if (codec) {
|
|
80
|
+
args.push('--es', 'codec', codec);
|
|
81
|
+
}
|
|
82
|
+
if (fps) {
|
|
83
|
+
args.push('--es', 'fps', `${fps}`);
|
|
84
|
+
}
|
|
85
|
+
if (bitrate) {
|
|
86
|
+
args.push('--es', 'bitrate', `${bitrate}`);
|
|
87
|
+
}
|
|
88
|
+
if (resolution) {
|
|
89
|
+
args.push('--es', 'resolution', resolution);
|
|
90
|
+
}
|
|
91
|
+
if (audio !== undefined) {
|
|
92
|
+
args.push('--es', 'audio', audio ? 'true' : 'false');
|
|
93
|
+
}
|
|
94
|
+
await this.adb.shell(args);
|
|
95
|
+
try {
|
|
96
|
+
await waitForCondition(async () => await this.isRunning(), {
|
|
97
|
+
waitMs: STREAM_STARTUP_TIMEOUT_MS,
|
|
98
|
+
intervalMs: 300,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
catch {
|
|
102
|
+
throw new Error(`The video stream is not running after ${STREAM_STARTUP_TIMEOUT_MS}ms. ` +
|
|
103
|
+
`Please check the logcat output for more details.`);
|
|
104
|
+
}
|
|
105
|
+
this.transport = await StreamTransport.connect(this.adb, socketName, { localPort, localPortRange });
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Yields access units (video NAL units and, if enabled, AAC audio units) as
|
|
110
|
+
* they arrive from the device. `start()` must be called before iterating.
|
|
111
|
+
*
|
|
112
|
+
* A CONFIG unit is normally seen only once, at the start of the stream, but a
|
|
113
|
+
* device rotation makes the on-device encoder restart mid-stream: a second (or
|
|
114
|
+
* later) CONFIG unit means the video's dimensions changed and the decoder must be
|
|
115
|
+
* reconfigured with these new SPS/PPS bytes, not treated as an error. `sequence`
|
|
116
|
+
* keeps increasing across such a restart, it is never reset.
|
|
117
|
+
*/
|
|
118
|
+
async *accessUnits() {
|
|
119
|
+
if (!this.transport) {
|
|
120
|
+
throw new Error('The video stream has not been started. Call start() first.');
|
|
121
|
+
}
|
|
122
|
+
for await (const frame of this.transport.frames()) {
|
|
123
|
+
yield {
|
|
124
|
+
track: frame.track === StreamTrack.Audio ? 'audio' : 'video',
|
|
125
|
+
data: frame.data,
|
|
126
|
+
sequence: Number(frame.sequence),
|
|
127
|
+
timestampMicros: Number(frame.timestampMicros),
|
|
128
|
+
isKeyFrame: frame.isKeyFrame,
|
|
129
|
+
isConfig: frame.isConfig,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Stops the currently running video stream.
|
|
135
|
+
*
|
|
136
|
+
* @returns True if the stream was stopped successfully, false if it was not running
|
|
137
|
+
* @throws {Error} If the stream fails to stop within the timeout period
|
|
138
|
+
*/
|
|
139
|
+
async stop() {
|
|
140
|
+
try {
|
|
141
|
+
if (!(await this.isRunning())) {
|
|
142
|
+
// The on-device service may have already stopped itself (e.g. the client
|
|
143
|
+
// disconnected), leaving a local transport/adb-forward that still needs closing.
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
await this.adb.shell(['am', 'start', '-n', STREAMING_ACTIVITY_NAME, '-a', VIDEO_STREAM_ACTION_STOP]);
|
|
147
|
+
try {
|
|
148
|
+
await waitForCondition(async () => !(await this.isRunning()), {
|
|
149
|
+
waitMs: STREAM_STOP_TIMEOUT_MS,
|
|
150
|
+
intervalMs: 300,
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
throw new Error(`The attempt to stop the current video stream timed out after ${STREAM_STOP_TIMEOUT_MS}ms`);
|
|
155
|
+
}
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
finally {
|
|
159
|
+
if (this.transport) {
|
|
160
|
+
await this.transport.close();
|
|
161
|
+
this.transport = null;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=video-stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-stream.js","sourceRoot":"","sources":["../../../lib/commands/video-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAGvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAG1C,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAGtF,MAAM,yBAAyB,GAAG,EAAE,GAAG,IAAI,CAAC;AAC5C,MAAM,sBAAsB,GAAG,CAAC,GAAG,IAAI,CAAC;AAExC;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,IAAI,k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iFAAiF;gBACjF,OAAO,KAAK,CAAC;YACf,CAAC;YAED,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,wBAAwB,CAAC,CAAC,CAAC;YACrG,IAAI,CAAC;gBACH,MAAM,gBAAgB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE;oBAC5D,MAAM,EAAE,sBAAsB;oBAC9B,UAAU,EAAE,GAAG;iBAChB,CAAC,CAAC;YACL,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,IAAI,KAAK,CAAC,gEAAgE,sBAAsB,IAAI,CAAC,CAAC;YAC9G,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;gBAAS,CAAC;YACT,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACnB,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;gBAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -30,4 +30,11 @@ export declare const RECORDING_SERVICE_NAME = "io.appium.settings/.recorder.Reco
|
|
|
30
30
|
export declare const RECORDING_ACTIVITY_NAME = "io.appium.settings/io.appium.settings.Settings";
|
|
31
31
|
export declare const RECORDING_ACTION_START = "io.appium.settings.recording.ACTION_START";
|
|
32
32
|
export declare const RECORDING_ACTION_STOP = "io.appium.settings.recording.ACTION_STOP";
|
|
33
|
+
export declare const STREAMING_ACTIVITY_NAME = "io.appium.settings/io.appium.settings.Settings";
|
|
34
|
+
export declare const JPEG_STREAM_SERVICE_NAME = "io.appium.settings/.streaming.JpegStreamService";
|
|
35
|
+
export declare const JPEG_STREAM_ACTION_START = "io.appium.settings.streaming.jpeg.ACTION_START";
|
|
36
|
+
export declare const JPEG_STREAM_ACTION_STOP = "io.appium.settings.streaming.jpeg.ACTION_STOP";
|
|
37
|
+
export declare const VIDEO_STREAM_SERVICE_NAME = "io.appium.settings/.streaming.VideoStreamService";
|
|
38
|
+
export declare const VIDEO_STREAM_ACTION_START = "io.appium.settings.streaming.video.ACTION_START";
|
|
39
|
+
export declare const VIDEO_STREAM_ACTION_STOP = "io.appium.settings.streaming.video.ACTION_STOP";
|
|
33
40
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../lib/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAIzD,eAAO,MAAM,kBAAkB,oDAAuC,CAAC;AACvE,eAAO,MAAM,0BAA0B,qCAAwC,CAAC;AAEhF,eAAO,MAAM,UAAU,kCAAqC,CAAC;AAC7D,eAAO,MAAM,WAAW,mCAAsC,CAAC;AAC/D,eAAO,MAAM,SAAS,iCAAoC,CAAC;AAE3D,eAAO,MAAM,gCAAgC,gEAAmD,CAAC;AACjG,eAAO,MAAM,8BAA8B,4BAA+B,CAAC;AAC3E,eAAO,MAAM,0BAA0B,qEAAwD,CAAC;AAChG,eAAO,MAAM,wBAAwB,iCAAoC,CAAC;AAC1E,eAAO,MAAM,yBAAyB,iEAAoD,CAAC;AAC3F,eAAO,MAAM,uBAAuB,wCAA2C,CAAC;AAEhF,eAAO,MAAM,0BAA0B,2DAA8C,CAAC;AACtF,eAAO,MAAM,wBAAwB,iCAAoC,CAAC;AAE1E,eAAO,MAAM,uBAAuB,wDAA2C,CAAC;AAChF,eAAO,MAAM,qBAAqB,8BAAiC,CAAC;AAEpE,eAAO,MAAM,6BAA6B,gDAAmC,CAAC;AAC9E,eAAO,MAAM,2BAA2B,oCAAuC,CAAC;AAEhF,eAAO,MAAM,gBAAgB,wCAA2C,CAAC;AACzE,eAAO,MAAM,iBAAiB,uDAA0C,CAAC;AACzE,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EpE,eAAO,MAAM,6BAA6B,gDAAmC,CAAC;AAC9E,eAAO,MAAM,2BAA2B,oCAAuC,CAAC;AAEhF,eAAO,MAAM,gBAAgB,wCAA2C,CAAC;AACzE,eAAO,MAAM,iBAAiB,uDAA0C,CAAC;AACzE,eAAO,MAAM,yBAAyB,gCAAmC,CAAC;AAE1E,eAAO,MAAM,iBAAiB,4CAA+B,CAAC;AAC9D,eAAO,MAAM,yBAAyB,gCAAmC,CAAC;AAE1E,eAAO,MAAM,mBAAmB,uDAA0C,CAAC;AAC3E,eAAO,MAAM,iBAAiB,kCAAqC,CAAC;AAEpE,eAAO,MAAM,sCAAsC,kCAAqC,CAAC;AACzF,eAAO,MAAM,8BAA8B,qCAAwC,CAAC;AAEpF,eAAO,MAAM,sBAAsB,iDAAoD,CAAC;AACxF,eAAO,MAAM,uBAAuB,mDAAsD,CAAC;AAC3F,eAAO,MAAM,sBAAsB,8CAAiD,CAAC;AACrF,eAAO,MAAM,qBAAqB,6CAAgD,CAAC;AAEnF,eAAO,MAAM,uBAAuB,mDAA0B,CAAC;AAE/D,eAAO,MAAM,wBAAwB,oDAAuD,CAAC;AAC7F,eAAO,MAAM,wBAAwB,mDAAsD,CAAC;AAC5F,eAAO,MAAM,uBAAuB,kDAAqD,CAAC;AAE1F,eAAO,MAAM,yBAAyB,qDAAwD,CAAC;AAC/F,eAAO,MAAM,yBAAyB,oDAAuD,CAAC;AAC9F,eAAO,MAAM,wBAAwB,mDAAsD,CAAC"}
|
|
@@ -31,4 +31,11 @@ export const RECORDING_SERVICE_NAME = `${SETTINGS_HELPER_ID}/.recorder.RecorderS
|
|
|
31
31
|
export const RECORDING_ACTIVITY_NAME = `${SETTINGS_HELPER_ID}/io.appium.settings.Settings`;
|
|
32
32
|
export const RECORDING_ACTION_START = `${SETTINGS_HELPER_ID}.recording.ACTION_START`;
|
|
33
33
|
export const RECORDING_ACTION_STOP = `${SETTINGS_HELPER_ID}.recording.ACTION_STOP`;
|
|
34
|
+
export const STREAMING_ACTIVITY_NAME = RECORDING_ACTIVITY_NAME;
|
|
35
|
+
export const JPEG_STREAM_SERVICE_NAME = `${SETTINGS_HELPER_ID}/.streaming.JpegStreamService`;
|
|
36
|
+
export const JPEG_STREAM_ACTION_START = `${SETTINGS_HELPER_ID}.streaming.jpeg.ACTION_START`;
|
|
37
|
+
export const JPEG_STREAM_ACTION_STOP = `${SETTINGS_HELPER_ID}.streaming.jpeg.ACTION_STOP`;
|
|
38
|
+
export const VIDEO_STREAM_SERVICE_NAME = `${SETTINGS_HELPER_ID}/.streaming.VideoStreamService`;
|
|
39
|
+
export const VIDEO_STREAM_ACTION_START = `${SETTINGS_HELPER_ID}.streaming.video.ACTION_START`;
|
|
40
|
+
export const VIDEO_STREAM_ACTION_STOP = `${SETTINGS_HELPER_ID}.streaming.video.ACTION_STOP`;
|
|
34
41
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../lib/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AACvD,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAW,CAAC;AAEzD,MAAM,aAAa,GAAG,GAAG,kBAAkB,aAAa,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,aAAa,oBAAoB,CAAC;AACvE,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,kBAAkB,gBAAgB,CAAC;AAEhF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,kBAAkB,aAAa,CAAC;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,kBAAkB,cAAc,CAAC;AAC/D,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,kBAAkB,YAAY,CAAC;AAE3D,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,aAAa,gCAAgC,CAAC;AACjG,MAAM,CAAC,MAAM,8BAA8B,GAAG,G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C;AACrF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,kBAAkB,wBAAwB,CAAC;AAEnF,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;AAE/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,kBAAkB,+BAA+B,CAAC;AAC7F,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,kBAAkB,8BAA8B,CAAC;AAC5F,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,kBAAkB,6BAA6B,CAAC;AAE1F,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,kBAAkB,gCAAgC,CAAC;AAC/F,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,kBAAkB,+BAA+B,CAAC;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,kBAAkB,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,EAAE,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apk-path.d.ts","sourceRoot":"","sources":["../../../lib/utils/apk-path.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apk-path.js","sourceRoot":"","sources":["../../../lib/utils/apk-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAEzC;;;;GAIG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;GAKG;AACH,SAAS,iBAAiB;IACxB,IAAI,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9D,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,OAAO,CAAC,UAAU,EAAE,CAAC;QACnB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3D,IAAI,CAAC;YACH,IAAI,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;gBAC1G,OAAO,UAAU,CAAC;YACpB,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QACV,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACtC,UAAU,GAAG,UAAU,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;IACpE,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,+BAA+B,WAAW,iBAAiB,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getSettingsApkPath } from './apk-path.js';
|
|
2
|
+
export { createParserState, parseFrames, StreamTrack } from './streaming-protocol.js';
|
|
3
|
+
export type { FrameParserState, StreamFrame } from './streaming-protocol.js';
|
|
4
|
+
export { BoundedFrameQueue, resolveLocalPort, StreamTransport, validateLocalPortOpts } from './streaming-transport.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpF,YAAY,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAC,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { getSettingsApkPath } from './apk-path.js';
|
|
2
|
+
export { createParserState, parseFrames, StreamTrack } from './streaming-protocol.js';
|
|
3
|
+
export { BoundedFrameQueue, resolveLocalPort, StreamTransport, validateLocalPortOpts } from './streaming-transport.js';
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAEpF,OAAO,EAAC,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAC,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Track discriminator for a streamed frame, matching the on-device
|
|
3
|
+
* `io.appium.settings.streaming.Frame.Track` enum ordinals.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum StreamTrack {
|
|
6
|
+
Jpeg = 0,
|
|
7
|
+
Video = 1,
|
|
8
|
+
Audio = 2
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A single parsed frame/access-unit read off the streaming socket.
|
|
12
|
+
*/
|
|
13
|
+
export interface StreamFrame {
|
|
14
|
+
track: StreamTrack;
|
|
15
|
+
sequence: bigint;
|
|
16
|
+
timestampMicros: bigint;
|
|
17
|
+
data: Buffer;
|
|
18
|
+
isConfig: boolean;
|
|
19
|
+
isKeyFrame: boolean;
|
|
20
|
+
isEndOfStream: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Incremental parser state, carried across chunk boundaries.
|
|
24
|
+
*/
|
|
25
|
+
export interface FrameParserState {
|
|
26
|
+
buf: Buffer;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Creates a fresh, empty parser state for use with {@link parseFrames}.
|
|
30
|
+
*
|
|
31
|
+
* @returns A new, empty FrameParserState
|
|
32
|
+
*/
|
|
33
|
+
export declare function createParserState(): FrameParserState;
|
|
34
|
+
/**
|
|
35
|
+
* Parses as many complete frames as are available in `state.buf` + `chunk`,
|
|
36
|
+
* carrying over any trailing partial frame in `state` for the next call.
|
|
37
|
+
*
|
|
38
|
+
* Wire format (big-endian, matches `io.appium.settings.streaming.StreamProtocol`):
|
|
39
|
+
* offset 0 (4 bytes): magic "APST"; offset 4 (1 byte): version;
|
|
40
|
+
* offset 5 (1 byte): track; offset 6 (1 byte): flags; offset 7: reserved;
|
|
41
|
+
* offset 8 (8 bytes): sequence; offset 16 (8 bytes): timestampMicros;
|
|
42
|
+
* offset 24 (4 bytes): payloadLength; followed by `payloadLength` payload bytes.
|
|
43
|
+
*
|
|
44
|
+
* @throws {Error} If the stream desynchronizes (unexpected magic bytes)
|
|
45
|
+
*/
|
|
46
|
+
export declare function parseFrames(state: FrameParserState, chunk: Buffer): Generator<StreamFrame>;
|
|
47
|
+
//# sourceMappingURL=streaming-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming-protocol.d.ts","sourceRoot":"","sources":["../../../lib/utils/streaming-protocol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,WAAW;IACrB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,KAAK,IAAI;CACV;AAMD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB;AAKD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,gBAAgB,CAEpD;AAED;;;;;;;;;;;GAWG;AACH,wBAAiB,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,CAkC3F"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Track discriminator for a streamed frame, matching the on-device
|
|
3
|
+
* `io.appium.settings.streaming.Frame.Track` enum ordinals.
|
|
4
|
+
*/
|
|
5
|
+
export var StreamTrack;
|
|
6
|
+
(function (StreamTrack) {
|
|
7
|
+
StreamTrack[StreamTrack["Jpeg"] = 0] = "Jpeg";
|
|
8
|
+
StreamTrack[StreamTrack["Video"] = 1] = "Video";
|
|
9
|
+
StreamTrack[StreamTrack["Audio"] = 2] = "Audio";
|
|
10
|
+
})(StreamTrack || (StreamTrack = {}));
|
|
11
|
+
const FLAG_CONFIG = 0x01;
|
|
12
|
+
const FLAG_KEYFRAME = 0x02;
|
|
13
|
+
const FLAG_EOS = 0x04;
|
|
14
|
+
const HEADER_SIZE = 28;
|
|
15
|
+
const MAGIC = Buffer.from('APST', 'ascii');
|
|
16
|
+
/**
|
|
17
|
+
* Creates a fresh, empty parser state for use with {@link parseFrames}.
|
|
18
|
+
*
|
|
19
|
+
* @returns A new, empty FrameParserState
|
|
20
|
+
*/
|
|
21
|
+
export function createParserState() {
|
|
22
|
+
return { buf: Buffer.alloc(0) };
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Parses as many complete frames as are available in `state.buf` + `chunk`,
|
|
26
|
+
* carrying over any trailing partial frame in `state` for the next call.
|
|
27
|
+
*
|
|
28
|
+
* Wire format (big-endian, matches `io.appium.settings.streaming.StreamProtocol`):
|
|
29
|
+
* offset 0 (4 bytes): magic "APST"; offset 4 (1 byte): version;
|
|
30
|
+
* offset 5 (1 byte): track; offset 6 (1 byte): flags; offset 7: reserved;
|
|
31
|
+
* offset 8 (8 bytes): sequence; offset 16 (8 bytes): timestampMicros;
|
|
32
|
+
* offset 24 (4 bytes): payloadLength; followed by `payloadLength` payload bytes.
|
|
33
|
+
*
|
|
34
|
+
* @throws {Error} If the stream desynchronizes (unexpected magic bytes)
|
|
35
|
+
*/
|
|
36
|
+
export function* parseFrames(state, chunk) {
|
|
37
|
+
state.buf = state.buf.length ? Buffer.concat([state.buf, chunk]) : chunk;
|
|
38
|
+
for (;;) {
|
|
39
|
+
if (state.buf.length < HEADER_SIZE) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (!state.buf.subarray(0, 4).equals(MAGIC)) {
|
|
43
|
+
throw new Error('Stream desynchronized: unexpected magic bytes in the streaming protocol header');
|
|
44
|
+
}
|
|
45
|
+
const payloadLength = state.buf.readUInt32BE(24);
|
|
46
|
+
const totalLength = HEADER_SIZE + payloadLength;
|
|
47
|
+
if (state.buf.length < totalLength) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const track = state.buf.readUInt8(5);
|
|
51
|
+
const flags = state.buf.readUInt8(6);
|
|
52
|
+
const sequence = state.buf.readBigUInt64BE(8);
|
|
53
|
+
const timestampMicros = state.buf.readBigUInt64BE(16);
|
|
54
|
+
const data = Buffer.from(state.buf.subarray(HEADER_SIZE, totalLength));
|
|
55
|
+
state.buf = state.buf.subarray(totalLength);
|
|
56
|
+
yield {
|
|
57
|
+
track,
|
|
58
|
+
sequence,
|
|
59
|
+
timestampMicros,
|
|
60
|
+
data,
|
|
61
|
+
isConfig: (flags & FLAG_CONFIG) !== 0,
|
|
62
|
+
isKeyFrame: (flags & FLAG_KEYFRAME) !== 0,
|
|
63
|
+
isEndOfStream: (flags & FLAG_EOS) !== 0,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=streaming-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming-protocol.js","sourceRoot":"","sources":["../../../lib/utils/streaming-protocol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,6CAAQ,CAAA;IACR,+CAAS,CAAA;IACT,+CAAS,CAAA;AACX,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC;AAetB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAS3C;;;;GAIG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,EAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,SAAS,CAAC,CAAC,WAAW,CAAC,KAAuB,EAAE,KAAa;IACjE,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CA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