appium-uiautomator2-driver 8.7.0 → 8.7.2
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/README.md +36 -2
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts +12 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.d.ts.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js +33 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi-subscriptions.js.map +1 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +49 -9
- 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/driver.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/driver.js +2 -0
- package/node_modules/@appium/base-driver/build/lib/basedriver/driver.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/build/lib/express/middleware.d.ts +17 -6
- package/node_modules/@appium/base-driver/build/lib/express/middleware.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/express/middleware.js +11 -7
- package/node_modules/@appium/base-driver/build/lib/express/middleware.js.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/express/server.d.ts +1 -0
- package/node_modules/@appium/base-driver/build/lib/express/server.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/express/server.js +4 -3
- package/node_modules/@appium/base-driver/build/lib/express/server.js.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts +1 -2
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js +8 -3
- package/node_modules/@appium/base-driver/build/lib/protocol/bidi-commands.js.map +1 -1
- package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi-subscriptions.ts +36 -0
- package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi.ts +56 -9
- package/node_modules/@appium/base-driver/lib/basedriver/commands/timeout.ts +1 -1
- package/node_modules/@appium/base-driver/lib/basedriver/driver.ts +2 -0
- package/node_modules/@appium/base-driver/lib/basedriver/helpers.ts +41 -3
- package/node_modules/@appium/base-driver/lib/express/middleware.ts +32 -12
- package/node_modules/@appium/base-driver/lib/express/server.ts +7 -2
- package/node_modules/@appium/base-driver/lib/protocol/bidi-commands.ts +9 -3
- package/node_modules/@appium/base-driver/package.json +10 -10
- 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/npm.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/npm.js +2 -1
- package/node_modules/@appium/support/build/lib/npm.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 +23 -5
- package/node_modules/@appium/support/build/lib/util.js.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.d.ts +2 -1
- package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.js +195 -71
- 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/npm.ts +2 -1
- package/node_modules/@appium/support/lib/util.ts +22 -4
- package/node_modules/@appium/support/lib/zip.ts +234 -80
- package/node_modules/@appium/support/package.json +11 -11
- package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts +6 -4
- package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts.map +1 -1
- package/node_modules/@appium/types/lib/commands/basedriver.ts +4 -4
- package/node_modules/@appium/types/package.json +4 -4
- 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 +80 -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 +9 -1
- package/node_modules/appium-chromedriver/lib/commands/version.ts +10 -0
- package/node_modules/appium-chromedriver/package.json +10 -13
- package/node_modules/appium-uiautomator2-server/CHANGELOG.md +19 -0
- package/node_modules/appium-uiautomator2-server/README.md +5 -2
- package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk +0 -0
- package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk.idsig +0 -0
- package/node_modules/appium-uiautomator2-server/apks/{appium-uiautomator2-server-v10.6.6.apk → appium-uiautomator2-server-v10.7.1.apk} +0 -0
- package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v10.7.1.apk.idsig +0 -0
- package/node_modules/appium-uiautomator2-server/package.json +12 -14
- 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/darwin-arm64/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-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/darwin-arm64/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-x64/bare-url.bare +0 -0
- package/node_modules/body-parser/README.md +17 -13
- package/node_modules/body-parser/lib/read.js +74 -57
- package/node_modules/body-parser/lib/types/json.js +11 -11
- package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
- package/node_modules/body-parser/lib/utils.js +0 -15
- package/node_modules/body-parser/package.json +7 -12
- 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/brace-expansion/dist/commonjs/index.d.ts +4 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js +69 -25
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.d.ts +4 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +68 -24
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +2 -1
- package/node_modules/follow-redirects/README.md +27 -1
- package/node_modules/follow-redirects/index.js +11 -6
- 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/p-limit/index.d.ts +2 -0
- package/node_modules/p-limit/index.js +17 -1
- package/node_modules/p-limit/package.json +1 -1
- package/node_modules/p-limit/readme.md +2 -0
- package/node_modules/proxy-addr/HISTORY.md +60 -54
- package/node_modules/proxy-addr/README.md +1 -1
- package/node_modules/proxy-addr/index.js +32 -0
- package/node_modules/proxy-addr/package.json +8 -4
- package/node_modules/qs/.editorconfig +1 -1
- package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
- package/node_modules/qs/CHANGELOG.md +61 -14
- package/node_modules/qs/README.md +57 -4
- package/node_modules/qs/dist/qs.js +19 -19
- package/node_modules/qs/eslint.config.mjs +61 -50
- package/node_modules/qs/lib/formats.js +7 -2
- package/node_modules/qs/lib/parse.js +105 -8
- package/node_modules/qs/lib/stringify.js +9 -7
- package/node_modules/qs/lib/utils.js +145 -13
- package/node_modules/qs/package.json +8 -8
- package/node_modules/qs/test/parse.js +440 -2
- package/node_modules/qs/test/stringify.js +485 -33
- package/node_modules/qs/test/utils.js +245 -3
- 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/shell-quote/README.md +37 -4
- package/node_modules/shell-quote/package.json +10 -6
- package/node_modules/shell-quote/parse.d.ts +1 -1
- package/node_modules/shell-quote/parse.js +63 -11
- package/node_modules/shell-quote/quote.d.ts +2 -1
- package/node_modules/shell-quote/quote.js +23 -3
- package/node_modules/spdx-license-ids/index.json +13 -0
- package/node_modules/spdx-license-ids/package.json +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/uuid/package.json +17 -17
- package/node_modules/ws/lib/websocket.js +17 -3
- package/node_modules/ws/package.json +1 -1
- 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 +7 -7
- package/node_modules/@appium/base-driver/node_modules/asyncbox/LICENSE +0 -203
- package/node_modules/@appium/base-driver/node_modules/asyncbox/README.md +0 -215
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/package.json +0 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js +0 -2
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/package.json +0 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncbox.ts +0 -365
- package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/types.ts +0 -88
- package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +0 -74
- 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/asyncbox/LICENSE +0 -203
- package/node_modules/@appium/support/node_modules/asyncbox/README.md +0 -215
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -301
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts +0 -84
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js +0 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/types.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/package.json +0 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -288
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts +0 -84
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.d.ts.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js +0 -2
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/types.js.map +0 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/package.json +0 -3
- package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +0 -365
- package/node_modules/@appium/support/node_modules/asyncbox/lib/types.ts +0 -88
- package/node_modules/@appium/support/node_modules/asyncbox/package.json +0 -74
- 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/appium-uiautomator2-server/apks/appium-uiautomator2-server-v10.6.6.apk.idsig +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/shell-quote/.nycrc +0 -14
- package/node_modules/shell-quote/eslint.config.mjs +0 -29
- package/node_modules/shell-quote/security.md +0 -11
- package/node_modules/shell-quote/test/comment.js +0 -16
- package/node_modules/shell-quote/test/env.js +0 -52
- package/node_modules/shell-quote/test/env_fn.js +0 -21
- package/node_modules/shell-quote/test/op.js +0 -102
- package/node_modules/shell-quote/test/parse.js +0 -149
- package/node_modules/shell-quote/test/quote.js +0 -145
- package/node_modules/shell-quote/test/set.js +0 -31
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../lib/express/server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,IAAI,UAAU,EAAC,MAAM,WAAW,CAAC;AAMpD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,EACV,YAAY,EACZ,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAC,OAAO,EAAkB,MAAM,EAAC,MAAM,SAAS,CAAC;AA2B7D,uDAAuD;AACvD,MAAM,WAAW,4BAA4B;IAC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
|
|
|
38
38
|
const appiumServer = configureHttp({
|
|
39
39
|
httpServer,
|
|
40
40
|
reject,
|
|
41
|
+
allowCors,
|
|
41
42
|
keepAliveTimeout,
|
|
42
43
|
gracefulShutdownTimeout: cliArgs.shutdownTimeout,
|
|
43
44
|
});
|
|
@@ -99,7 +100,7 @@ function configureServer(opts) {
|
|
|
99
100
|
// When shouldUpgradeCallback is available, upgrades are handled directly on the HTTP server
|
|
100
101
|
// to avoid Express middleware timeout issues with long-lived connections
|
|
101
102
|
if (useLegacyUpgradeHandler) {
|
|
102
|
-
app.use((0, middleware_1.handleUpgrade)(webSocketsMapping));
|
|
103
|
+
app.use((0, middleware_1.handleUpgrade)(webSocketsMapping, allowCors));
|
|
103
104
|
}
|
|
104
105
|
if (allowCors) {
|
|
105
106
|
app.use(middleware_1.allowCrossDomain);
|
|
@@ -178,7 +179,7 @@ async function createServer(app, cliArgs) {
|
|
|
178
179
|
* @param opts - Configuration options
|
|
179
180
|
* @returns The same server instance typed as AppiumServer
|
|
180
181
|
*/
|
|
181
|
-
function configureHttp({ httpServer, reject, keepAliveTimeout, gracefulShutdownTimeout, }) {
|
|
182
|
+
function configureHttp({ httpServer, reject, allowCors, keepAliveTimeout, gracefulShutdownTimeout, }) {
|
|
182
183
|
const appiumServer = httpServer;
|
|
183
184
|
appiumServer.webSocketsMapping = {};
|
|
184
185
|
appiumServer.frontRouter = express_1.default.Router();
|
|
@@ -196,7 +197,7 @@ function configureHttp({ httpServer, reject, keepAliveTimeout, gracefulShutdownT
|
|
|
196
197
|
// shouldUpgradeCallback only returns a boolean to indicate if the upgrade should proceed
|
|
197
198
|
appiumServer.shouldUpgradeCallback = (req) => String(req.headers?.upgrade ?? '').toLowerCase() === 'websocket';
|
|
198
199
|
appiumServer.on('upgrade', (req, socket, head) => {
|
|
199
|
-
if (!(0, middleware_1.tryHandleWebSocketUpgrade)(req, socket, head, appiumServer.webSocketsMapping)) {
|
|
200
|
+
if (!(0, middleware_1.tryHandleWebSocketUpgrade)({ req, socket, head, webSocketsMapping: appiumServer.webSocketsMapping, allowCors })) {
|
|
200
201
|
socket.destroy();
|
|
201
202
|
}
|
|
202
203
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../lib/express/server.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../lib/express/server.ts"],"names":[],"mappings":";;;;;AA4GA,wBAuEC;AAOD,0CAmDC;AAQD,8CAeC;AApQD,0DAA6B;AAE7B,6CAA0C;AAE1C,wFAAwF;AACxF,4EAA4E;AAC5E,6CAA2C;AAS3C,8DAAqC;AACrC,sDAA8B;AAE9B,sEAA6C;AAE7C,4CAA+C;AAC/C,2CAA2D;AAC3D,uDAAqE;AACrE,qCAA6B;AAC7B,6CAUsB;AACtB,2CAKqB;AAErB,MAAM,qBAAqB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;AA8D3D;;;GAGG;AACI,KAAK,UAAU,MAAM,CAAC,IAAgB;IAC3C,MAAM,EACJ,wBAAwB,EACxB,IAAI,EACJ,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,SAAS,GAAG,IAAI,EAChB,QAAQ,GAAG,6BAAiB,EAC5B,cAAc,GAAG,EAAE,EACnB,cAAc,GAAG,EAAE,EACnB,gBAAgB,GAAG,qBAAqB,EACxC,cAAc,GACf,GAAG,IAAI,CAAC;IAET,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IACtB,MAAM,UAAU,GAAG,MAAM,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAEpD,OAAO,MAAM,IAAI,OAAO,CAAe,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACzD,qFAAqF;QACrF,uFAAuF;QACvF,oEAAoE;QACpE,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,IAAI,CAAC;gBACH,MAAM,YAAY,GAAG,aAAa,C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AC;IACxD,MAAM,YAAY,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,MAAkB;IAClD,6DAA6D;IAC7D,oEAAoE;IACpE,IAAI,CAAC;QACH,OAAO,OAAQ,MAAuD,CAAC,qBAAqB,KAAK,WAAW,CAAC;IAC/G,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -10,8 +10,7 @@ export declare const BIDI_COMMANDS: {
|
|
|
10
10
|
readonly unsubscribe: {
|
|
11
11
|
readonly command: "bidiUnsubscribe";
|
|
12
12
|
readonly params: {
|
|
13
|
-
readonly
|
|
14
|
-
readonly optional: readonly ["contexts"];
|
|
13
|
+
readonly optional: readonly ["events", "contexts", "subscriptions"];
|
|
15
14
|
};
|
|
16
15
|
};
|
|
17
16
|
readonly status: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bidi-commands.d.ts","sourceRoot":"","sources":["../../../lib/protocol/bidi-commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bidi-commands.d.ts","sourceRoot":"","sources":["../../../lib/protocol/bidi-commands.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBQ,CAAC"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BIDI_COMMANDS = void 0;
|
|
4
|
-
const
|
|
4
|
+
const SUBSCRIBE_PARAMS = {
|
|
5
5
|
required: ['events'],
|
|
6
6
|
optional: ['contexts'],
|
|
7
7
|
};
|
|
8
|
+
// `subscriptions` and `events` are alternative spec forms; `contexts` is a non-standard
|
|
9
|
+
// addition to `events`. `subscriptions` excludes the others, which bidiUnsubscribe validates.
|
|
10
|
+
const UNSUBSCRIBE_PARAMS = {
|
|
11
|
+
optional: ['events', 'contexts', 'subscriptions'],
|
|
12
|
+
};
|
|
8
13
|
exports.BIDI_COMMANDS = {
|
|
9
14
|
session: {
|
|
10
15
|
subscribe: {
|
|
11
16
|
command: 'bidiSubscribe',
|
|
12
|
-
params:
|
|
17
|
+
params: SUBSCRIBE_PARAMS,
|
|
13
18
|
},
|
|
14
19
|
unsubscribe: {
|
|
15
20
|
command: 'bidiUnsubscribe',
|
|
16
|
-
params:
|
|
21
|
+
params: UNSUBSCRIBE_PARAMS,
|
|
17
22
|
},
|
|
18
23
|
status: {
|
|
19
24
|
command: 'bidiStatus',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bidi-commands.js","sourceRoot":"","sources":["../../../lib/protocol/bidi-commands.ts"],"names":[],"mappings":";;;AAEA,MAAM,
|
|
1
|
+
{"version":3,"file":"bidi-commands.js","sourceRoot":"","sources":["../../../lib/protocol/bidi-commands.ts"],"names":[],"mappings":";;;AAEA,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACd,CAAC;AAEX,wFAAwF;AACxF,8FAA8F;AAC9F,MAAM,kBAAkB,GAAG;IACzB,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,eAAe,CAAC;CACzC,CAAC;AAEE,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE;QACP,SAAS,EAAE;YACT,OAAO,EAAE,eAAe;YACxB,MAAM,EAAE,gBAAgB;SACzB;QACD,WAAW,EAAE;YACX,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,kBAAkB;SAC3B;QACD,MAAM,EAAE;YACN,OAAO,EAAE,YAAY;YACrB,MAAM,EAAE,EAAE;SACX;KACF;IACD,eAAe,EAAE;QACf,QAAQ,EAAE;YACR,OAAO,EAAE,cAAc;YACvB,MAAM,EAAE;gBACN,QAAQ,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;gBAC5B,QAAQ,EAAE,CAAC,MAAM,CAAC;aACnB;SACF;KACF;CAC+B,CAAC;AAEnC,8CAA8C;AAC9C,mDAAmD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {util} from '@appium/support';
|
|
2
|
+
|
|
3
|
+
type BidiSubscriptionDriver = {bidiEventSubs: Record<string, string[]>};
|
|
4
|
+
|
|
5
|
+
// subscription id -> event name -> contexts; kept per id so removing one keeps overlapping ones
|
|
6
|
+
type Subscriptions = Map<string, Map<string, string[]>>;
|
|
7
|
+
|
|
8
|
+
const subscriptionsByDriver = new WeakMap<object, Subscriptions>();
|
|
9
|
+
|
|
10
|
+
/** Get (or lazily create) the subscription registry of the given driver */
|
|
11
|
+
export function getSubscriptions(driver: object): Subscriptions {
|
|
12
|
+
let subscriptions = subscriptionsByDriver.get(driver);
|
|
13
|
+
if (!subscriptions) {
|
|
14
|
+
subscriptions = new Map();
|
|
15
|
+
subscriptionsByDriver.set(driver, subscriptions);
|
|
16
|
+
}
|
|
17
|
+
return subscriptions;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Recompute `bidiEventSubs` as the union of all registered subscriptions */
|
|
21
|
+
export function refreshEventSubscriptions(driver: BidiSubscriptionDriver): void {
|
|
22
|
+
const events = new Map<string, string[]>();
|
|
23
|
+
for (const subscription of getSubscriptions(driver).values()) {
|
|
24
|
+
for (const [event, contexts] of subscription) {
|
|
25
|
+
events.set(event, util.uniq([...(events.get(event) ?? []), ...contexts]));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
// Object.fromEntries defines own properties, so names like '__proto__' stay safe
|
|
29
|
+
driver.bidiEventSubs = Object.fromEntries(events);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Forget all subscriptions, e.g. when the session ends */
|
|
33
|
+
export function clearBidiSubscriptions(driver: BidiSubscriptionDriver): void {
|
|
34
|
+
subscriptionsByDriver.delete(driver);
|
|
35
|
+
driver.bidiEventSubs = {};
|
|
36
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {util} from '@appium/support';
|
|
2
2
|
import type {Constraints, DriverStatus, IBidiCommands} from '@appium/types';
|
|
3
3
|
|
|
4
|
+
import {errors} from '../../protocol/errors';
|
|
4
5
|
import type {BaseDriver} from '../driver';
|
|
6
|
+
import {getSubscriptions, refreshEventSubscriptions} from './bidi-subscriptions';
|
|
5
7
|
import {mixin} from './mixin';
|
|
6
8
|
|
|
7
9
|
declare module '../driver' {
|
|
@@ -9,22 +11,67 @@ declare module '../driver' {
|
|
|
9
11
|
interface BaseDriver<C extends Constraints> extends IBidiCommands {}
|
|
10
12
|
}
|
|
11
13
|
|
|
14
|
+
function assertStringList(value: unknown, name: string): asserts value is string[] {
|
|
15
|
+
if (!Array.isArray(value) || !value.length || value.some((item) => typeof item !== 'string' || !item.length)) {
|
|
16
|
+
throw new errors.InvalidArgumentError(`${name} must be a non-empty array of non-empty strings`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function assertContexts(value: unknown): asserts value is string[] {
|
|
21
|
+
if (!Array.isArray(value) || value.some((context) => typeof context !== 'string')) {
|
|
22
|
+
throw new errors.InvalidArgumentError('contexts must be an array of strings');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
12
26
|
const BidiCommands: IBidiCommands = {
|
|
13
27
|
async bidiSubscribe<C extends Constraints>(this: BaseDriver<C>, events: string[], contexts: string[] = ['']) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
assertStringList(events, 'events');
|
|
29
|
+
assertContexts(contexts);
|
|
30
|
+
const subscription = util.uuidV4();
|
|
31
|
+
getSubscriptions(this).set(subscription, new Map(events.map((event) => [event, [...contexts]])));
|
|
32
|
+
refreshEventSubscriptions(this);
|
|
33
|
+
return {subscription};
|
|
17
34
|
},
|
|
18
35
|
|
|
19
|
-
async bidiUnsubscribe<C extends Constraints>(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
async bidiUnsubscribe<C extends Constraints>(
|
|
37
|
+
this: BaseDriver<C>,
|
|
38
|
+
events?: string[],
|
|
39
|
+
contexts?: string[],
|
|
40
|
+
subscriptions?: string[],
|
|
41
|
+
) {
|
|
42
|
+
const registered = getSubscriptions(this);
|
|
43
|
+
if (subscriptions === undefined) {
|
|
44
|
+
const contextsToRemove = contexts ?? [''];
|
|
45
|
+
assertStringList(events, 'events');
|
|
46
|
+
assertContexts(contextsToRemove);
|
|
47
|
+
for (const subscription of registered.values()) {
|
|
48
|
+
for (const event of events) {
|
|
49
|
+
const remaining = subscription.get(event)?.filter((c) => !contextsToRemove.includes(c));
|
|
50
|
+
if (remaining?.length) {
|
|
51
|
+
subscription.set(event, remaining);
|
|
52
|
+
} else {
|
|
53
|
+
subscription.delete(event);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
23
56
|
}
|
|
24
|
-
|
|
25
|
-
|
|
57
|
+
refreshEventSubscriptions(this);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
assertStringList(subscriptions, 'subscriptions');
|
|
62
|
+
if (events !== undefined || contexts !== undefined) {
|
|
63
|
+
throw new errors.InvalidArgumentError('subscriptions cannot be combined with events or contexts');
|
|
64
|
+
}
|
|
65
|
+
// validate everything before removing anything
|
|
66
|
+
for (const id of subscriptions) {
|
|
67
|
+
if (!registered.has(id)) {
|
|
68
|
+
throw new errors.InvalidArgumentError(`Unknown subscription id: ${id}`);
|
|
26
69
|
}
|
|
27
70
|
}
|
|
71
|
+
for (const id of subscriptions) {
|
|
72
|
+
registered.delete(id);
|
|
73
|
+
}
|
|
74
|
+
refreshEventSubscriptions(this);
|
|
28
75
|
},
|
|
29
76
|
|
|
30
77
|
async bidiStatus<C extends Constraints>(this: BaseDriver<C>): Promise<DriverStatus> {
|
|
@@ -127,7 +127,7 @@ const TimeoutCommands: ITimeoutCommands = {
|
|
|
127
127
|
parseTimeoutArgument<C extends Constraints>(this: BaseDriver<C>, ms: number | string) {
|
|
128
128
|
const duration = parseInt(String(ms), 10);
|
|
129
129
|
if (Number.isNaN(duration) || duration < MIN_TIMEOUT) {
|
|
130
|
-
throw new errors.
|
|
130
|
+
throw new errors.InvalidArgumentError(`Invalid timeout value '${ms}'`);
|
|
131
131
|
}
|
|
132
132
|
return duration;
|
|
133
133
|
},
|
|
@@ -26,6 +26,7 @@ import {calcSignature} from '../helpers/session';
|
|
|
26
26
|
import {DELETE_SESSION_COMMAND, determineProtocol, errors} from '../protocol';
|
|
27
27
|
import {mergePlainObjects} from '../utils';
|
|
28
28
|
import {processCapabilities, validateCaps} from './capabilities';
|
|
29
|
+
import {clearBidiSubscriptions} from './commands/bidi-subscriptions';
|
|
29
30
|
import {DriverCore} from './core';
|
|
30
31
|
import * as helpers from './helpers';
|
|
31
32
|
|
|
@@ -392,6 +393,7 @@ export class BaseDriver<
|
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
this.sessionId = null;
|
|
396
|
+
clearBidiSubscriptions(this);
|
|
395
397
|
}
|
|
396
398
|
|
|
397
399
|
logExtraCaps(caps: Capabilities<C>) {
|
|
@@ -38,6 +38,13 @@ const APPLICATIONS_CACHE_GUARD = new AsyncLock();
|
|
|
38
38
|
const SANITIZE_REPLACEMENT = '-';
|
|
39
39
|
const DEFAULT_BASENAME = 'appium-app';
|
|
40
40
|
const APP_DOWNLOAD_TIMEOUT_MS = 120 * 1000;
|
|
41
|
+
// RFC 5987: filename*=UTF-8''percent-encoded-name (language tag is optional)
|
|
42
|
+
const FILENAME_STAR_PATTERN = /(?:^|;)\s*filename\*\s*=\s*([^';\s]+)'[^']*'([^;]+)/i;
|
|
43
|
+
const QUOTED_FILENAME_PATTERN = /(?:^|;)\s*filename\s*=\s*"((?:\\.|[^"\\])*)"/i;
|
|
44
|
+
// unquoted token; stops at ';' so later parameters are not swallowed
|
|
45
|
+
const UNQUOTED_FILENAME_PATTERN = /(?:^|;)\s*filename\s*=\s*([^;\s]+)/i;
|
|
46
|
+
const SURROUNDING_QUOTES_PATTERN = /^["']|["']$/g;
|
|
47
|
+
const ESCAPED_CHAR_PATTERN = /\\(.)/g;
|
|
41
48
|
|
|
42
49
|
process.on('exit', () => {
|
|
43
50
|
if (APPLICATIONS_CACHE.size === 0) {
|
|
@@ -485,6 +492,37 @@ async function fetchApp(srcStream: Readable, dstPath: string): Promise<string> {
|
|
|
485
492
|
return dstPath;
|
|
486
493
|
}
|
|
487
494
|
|
|
495
|
+
/**
|
|
496
|
+
* Picks a download filename from a Content-Disposition header.
|
|
497
|
+
* Prefers RFC 5987 `filename*` over `filename`, and accepts both quoted and unquoted `filename`.
|
|
498
|
+
* @internal
|
|
499
|
+
*/
|
|
500
|
+
export function filenameFromContentDisposition(header: string): string | undefined {
|
|
501
|
+
const encoded = FILENAME_STAR_PATTERN.exec(header);
|
|
502
|
+
if (encoded?.[2]) {
|
|
503
|
+
try {
|
|
504
|
+
const value = decodeURIComponent(encoded[2].trim().replace(SURROUNDING_QUOTES_PATTERN, ''));
|
|
505
|
+
if (value) {
|
|
506
|
+
return value;
|
|
507
|
+
}
|
|
508
|
+
} catch {
|
|
509
|
+
// invalid percent-encoding; fall through to filename=
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// an empty quoted value is still the filename parameter, so it must not fall through to the
|
|
514
|
+
// token branch below, which would otherwise capture the quote characters themselves
|
|
515
|
+
const quoted = QUOTED_FILENAME_PATTERN.exec(header);
|
|
516
|
+
if (quoted) {
|
|
517
|
+
return quoted[1].replace(ESCAPED_CHAR_PATTERN, '$1') || undefined;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
const unquoted = UNQUOTED_FILENAME_PATTERN.exec(header);
|
|
521
|
+
if (unquoted?.[1]) {
|
|
522
|
+
return unquoted[1];
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
488
526
|
function determineFilename(
|
|
489
527
|
headers: AxiosResponseHeaders | RawAxiosRequestHeaders,
|
|
490
528
|
pathname: string,
|
|
@@ -496,9 +534,9 @@ function determineFilename(
|
|
|
496
534
|
const extname = path.extname(basename);
|
|
497
535
|
if (headers['content-disposition'] && /^attachment/i.test(String(headers['content-disposition']))) {
|
|
498
536
|
logger.debug(`Content-Disposition: ${headers['content-disposition']}`);
|
|
499
|
-
const
|
|
500
|
-
if (
|
|
501
|
-
return fs.sanitizeName(
|
|
537
|
+
const fromHeader = filenameFromContentDisposition(String(headers['content-disposition']));
|
|
538
|
+
if (fromHeader) {
|
|
539
|
+
return fs.sanitizeName(fromHeader, {replacement: SANITIZE_REPLACEMENT});
|
|
502
540
|
}
|
|
503
541
|
}
|
|
504
542
|
|
|
@@ -91,25 +91,44 @@ export function defaultToJSONContentType(req: Request, _res: Response, next: Nex
|
|
|
91
91
|
next();
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/** Options for {@linkcode tryHandleWebSocketUpgrade} */
|
|
95
|
+
export interface WebSocketUpgradeOpts {
|
|
96
|
+
/** Incoming HTTP request */
|
|
97
|
+
req: IncomingMessage;
|
|
98
|
+
/** Network socket */
|
|
99
|
+
socket: Duplex;
|
|
100
|
+
/** First packet of the upgraded stream */
|
|
101
|
+
head: Buffer;
|
|
102
|
+
/** Path-to-WebSocket-server mapping */
|
|
103
|
+
webSocketsMapping: StringRecord<WSServer>;
|
|
104
|
+
/** Whether upgrades carrying an `Origin` header are accepted */
|
|
105
|
+
allowCors?: boolean;
|
|
106
|
+
}
|
|
107
|
+
|
|
94
108
|
/**
|
|
95
109
|
* Attempts to handle a WebSocket upgrade by matching the request path against registered handlers.
|
|
96
110
|
*
|
|
97
|
-
* @param
|
|
98
|
-
* @param socket - Network socket
|
|
99
|
-
* @param head - First packet of the upgraded stream
|
|
100
|
-
* @param webSocketsMapping - Path-to-WebSocket-server mapping
|
|
111
|
+
* @param opts - Upgrade options
|
|
101
112
|
* @returns `true` if the upgrade was handled; `false` otherwise
|
|
102
113
|
*/
|
|
103
|
-
export function tryHandleWebSocketUpgrade(
|
|
104
|
-
req
|
|
105
|
-
socket
|
|
106
|
-
head
|
|
107
|
-
webSocketsMapping
|
|
108
|
-
|
|
114
|
+
export function tryHandleWebSocketUpgrade({
|
|
115
|
+
req,
|
|
116
|
+
socket,
|
|
117
|
+
head,
|
|
118
|
+
webSocketsMapping,
|
|
119
|
+
allowCors = false,
|
|
120
|
+
}: WebSocketUpgradeOpts): boolean {
|
|
109
121
|
if (String(req.headers?.upgrade ?? '').toLowerCase() !== 'websocket') {
|
|
110
122
|
return false;
|
|
111
123
|
}
|
|
112
124
|
|
|
125
|
+
// WebSocket handshakes are not subject to the Same-Origin Policy; browsers always send Origin
|
|
126
|
+
if (!allowCors && req.headers.origin !== undefined) {
|
|
127
|
+
log.warn(`Rejecting the WebSocket upgrade from the browser origin '${req.headers.origin}'`);
|
|
128
|
+
socket.end('HTTP/1.1 403 Forbidden\r\nConnection: close\r\nContent-Length: 0\r\n\r\n');
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
|
|
113
132
|
let currentPathname: string;
|
|
114
133
|
try {
|
|
115
134
|
currentPathname = new URL(req.url ?? '', 'http://localhost').pathname;
|
|
@@ -133,11 +152,12 @@ export function tryHandleWebSocketUpgrade(
|
|
|
133
152
|
* Delegates WebSocket upgrades to the mapping and falls through to `next()` otherwise.
|
|
134
153
|
*
|
|
135
154
|
* @param webSocketsMapping - Path-to-WebSocket-server mapping
|
|
155
|
+
* @param allowCors - Whether upgrades carrying an `Origin` header are accepted
|
|
136
156
|
* @returns Express request handler
|
|
137
157
|
*/
|
|
138
|
-
export function handleUpgrade(webSocketsMapping: StringRecord<WSServer
|
|
158
|
+
export function handleUpgrade(webSocketsMapping: StringRecord<WSServer>, allowCors = false): RequestHandler {
|
|
139
159
|
function handleUpgradeMiddleware(req: Request, res: Response, next: NextFunction): void {
|
|
140
|
-
if (tryHandleWebSocketUpgrade(req, req.socket, Buffer.from(''), webSocketsMapping)) {
|
|
160
|
+
if (tryHandleWebSocketUpgrade({req, socket: req.socket, head: Buffer.from(''), webSocketsMapping, allowCors})) {
|
|
141
161
|
return;
|
|
142
162
|
}
|
|
143
163
|
next();
|
|
@@ -88,6 +88,7 @@ export interface ConfigureServerInternalOpts extends ConfigureServerOpts {
|
|
|
88
88
|
export interface ConfigureHttpOpts {
|
|
89
89
|
httpServer: HttpServer;
|
|
90
90
|
reject: (error?: unknown) => void;
|
|
91
|
+
allowCors?: boolean;
|
|
91
92
|
keepAliveTimeout: number;
|
|
92
93
|
gracefulShutdownTimeout?: number;
|
|
93
94
|
}
|
|
@@ -131,6 +132,7 @@ export async function server(opts: ServerOpts): Promise<AppiumServer> {
|
|
|
131
132
|
const appiumServer = configureHttp({
|
|
132
133
|
httpServer,
|
|
133
134
|
reject,
|
|
135
|
+
allowCors,
|
|
134
136
|
keepAliveTimeout,
|
|
135
137
|
gracefulShutdownTimeout: cliArgs.shutdownTimeout,
|
|
136
138
|
});
|
|
@@ -207,7 +209,7 @@ export function configureServer(opts: ConfigureServerOpts): void {
|
|
|
207
209
|
// When shouldUpgradeCallback is available, upgrades are handled directly on the HTTP server
|
|
208
210
|
// to avoid Express middleware timeout issues with long-lived connections
|
|
209
211
|
if (useLegacyUpgradeHandler) {
|
|
210
|
-
app.use(handleUpgrade(webSocketsMapping));
|
|
212
|
+
app.use(handleUpgrade(webSocketsMapping, allowCors));
|
|
211
213
|
}
|
|
212
214
|
if (allowCors) {
|
|
213
215
|
app.use(allowCrossDomain);
|
|
@@ -309,6 +311,7 @@ async function createServer(app: Express, cliArgs?: Partial<ServerArgs>): Promis
|
|
|
309
311
|
function configureHttp({
|
|
310
312
|
httpServer,
|
|
311
313
|
reject,
|
|
314
|
+
allowCors,
|
|
312
315
|
keepAliveTimeout,
|
|
313
316
|
gracefulShutdownTimeout,
|
|
314
317
|
}: ConfigureHttpOpts): AppiumServer {
|
|
@@ -332,7 +335,9 @@ function configureHttp({
|
|
|
332
335
|
appiumServer as unknown as {shouldUpgradeCallback?: (req: http.IncomingMessage) => boolean}
|
|
333
336
|
).shouldUpgradeCallback = (req) => String(req.headers?.upgrade ?? '').toLowerCase() === 'websocket';
|
|
334
337
|
appiumServer.on('upgrade', (req, socket, head) => {
|
|
335
|
-
if (
|
|
338
|
+
if (
|
|
339
|
+
!tryHandleWebSocketUpgrade({req, socket, head, webSocketsMapping: appiumServer.webSocketsMapping, allowCors})
|
|
340
|
+
) {
|
|
336
341
|
socket.destroy();
|
|
337
342
|
}
|
|
338
343
|
});
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import type {BidiModuleMap} from '@appium/types';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const SUBSCRIBE_PARAMS = {
|
|
4
4
|
required: ['events'],
|
|
5
5
|
optional: ['contexts'],
|
|
6
6
|
} as const;
|
|
7
7
|
|
|
8
|
+
// `subscriptions` and `events` are alternative spec forms; `contexts` is a non-standard
|
|
9
|
+
// addition to `events`. `subscriptions` excludes the others, which bidiUnsubscribe validates.
|
|
10
|
+
const UNSUBSCRIBE_PARAMS = {
|
|
11
|
+
optional: ['events', 'contexts', 'subscriptions'],
|
|
12
|
+
} as const;
|
|
13
|
+
|
|
8
14
|
export const BIDI_COMMANDS = {
|
|
9
15
|
session: {
|
|
10
16
|
subscribe: {
|
|
11
17
|
command: 'bidiSubscribe',
|
|
12
|
-
params:
|
|
18
|
+
params: SUBSCRIBE_PARAMS,
|
|
13
19
|
},
|
|
14
20
|
unsubscribe: {
|
|
15
21
|
command: 'bidiUnsubscribe',
|
|
16
|
-
params:
|
|
22
|
+
params: UNSUBSCRIBE_PARAMS,
|
|
17
23
|
},
|
|
18
24
|
status: {
|
|
19
25
|
command: 'bidiStatus',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/base-driver",
|
|
3
|
-
"version": "10.8.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "10.8.2",
|
|
4
|
+
"gitHead": "2c2820242ffdbc450025d4963cff7b17a7e5a7d3",
|
|
5
5
|
"description": "Base driver class for Appium drivers",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"android",
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
"test:types": "tsd"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@appium/support": "7.2.
|
|
50
|
-
"@appium/types": "1.7.
|
|
49
|
+
"@appium/support": "7.2.9",
|
|
50
|
+
"@appium/types": "1.7.2",
|
|
51
51
|
"async-lock": "1.4.1",
|
|
52
|
-
"asyncbox": "6.
|
|
53
|
-
"axios": "1.
|
|
54
|
-
"body-parser": "2.
|
|
52
|
+
"asyncbox": "6.5.0",
|
|
53
|
+
"axios": "1.20.0",
|
|
54
|
+
"body-parser": "2.4.0",
|
|
55
55
|
"express": "5.2.1",
|
|
56
56
|
"fastest-levenshtein": "1.0.16",
|
|
57
57
|
"http-status-codes": "2.3.0",
|
|
58
|
-
"lru-cache": "11.5.
|
|
58
|
+
"lru-cache": "11.5.3",
|
|
59
59
|
"method-override": "3.0.0",
|
|
60
|
-
"morgan": "1.
|
|
60
|
+
"morgan": "1.12.1",
|
|
61
61
|
"path-to-regexp": "8.4.2",
|
|
62
62
|
"serve-favicon": "2.5.1",
|
|
63
|
-
"type-fest": "5.
|
|
63
|
+
"type-fest": "5.10.0"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
66
|
"spdy": "4.0.2"
|
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.12](https://github.com/appium/appium/compare/@appium/logger@2.0.11...@appium/logger@2.0.12) (2026-09-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @appium/logger
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.0.11](https://github.com/appium/appium/compare/@appium/logger@2.0.10...@appium/logger@2.0.11) (2026-08-24)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/logger",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "2.0.12",
|
|
4
|
+
"gitHead": "eb5ce47b17c6e3da79e57e0c2b3e4afa649878e4",
|
|
5
5
|
"description": "A Universal Logger For The Appium Ecosystem",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"android",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"test:unit": "node --test --enable-source-maps --test-timeout=5000 \"./build/test/unit/**/*.spec.js\""
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"lru-cache": "11.5.
|
|
47
|
+
"lru-cache": "11.5.3"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../lib/fs.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,SAAS,EACT,KAAK,WAAW,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,IAAI,EACJ,KAAK,QAAQ,EACb,QAAQ,IAAI,UAAU,EACtB,IAAI,EACJ,KAAK,gBAAgB,EAItB,MAAM,SAAS,CAAC;AAIjB,OAAO,CAAC,MAAM,UAAU,CAAC;AAEzB,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,MAAM,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AACjC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAwC,MA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AI,CAAC;IAO9F,oCAAoC;kBAChB,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9C;;OAEG;aACY,MAAM,MAAM,MAAM,SAAQ,SAAS,GAAQ,OAAO,CAAC,IAAI,CAAC;IAqEvE,0FAA0F;;IAG1F;;;OAGG;kBACW,MAAM,YAAY,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAI/D,kFAAkF;;IAGlF,sDAAsD;mBACjC,QAAQ,cAAa,MAAM,GAAY,OAAO,CAAC,MAAM,CAAC;IAY3E;;;OAGG;cACO,MAAM,SAAS,IAAI,CAAC,OAAO,GAAG,MAAM;IAI9C,sCAAsC;gBACpB,QAAQ,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIxD;;;;;;OAMG;iBAEgB,MAAM,aAAa,OAAO,YAAY,eAAe,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA6EjG;;;;;OAKG;6BACsB,MAAM,SAAQ,gBAAgB,GAAG;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAC,GAAQ,qBAAqB;IAWrG;;;;;;OAMG;kBACW,MAAM,GAAG,MAAM;;;;;;;;;IAmB7B;;;OAGG;;;;;;;;;;;;;;IAgBH,gDAAgD;;IAEhD,gDAAgD;;IAEhD,gDAAgD;;IAEhD,gDAAgD;;CAEjD,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
|
@@ -162,6 +162,13 @@ exports.fs = {
|
|
|
162
162
|
}
|
|
163
163
|
throw err;
|
|
164
164
|
}
|
|
165
|
+
// moving a path onto itself deletes it, and a destination inside the source never returns
|
|
166
|
+
if (await (0, util_1.isSameDestination)(from, to)) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (fromStat.isDirectory() && (0, util_1.isSubPath)(node_path_1.default.resolve(to), node_path_1.default.resolve(from))) {
|
|
170
|
+
throw new Error(`Cannot move '${from}' to '${to}' because the destination is inside the source`);
|
|
171
|
+
}
|
|
165
172
|
if (fromStat.isFile()) {
|
|
166
173
|
const dstRootWasCreated = await ensureDestination(node_path_1.default.dirname(to));
|
|
167
174
|
await renameFile(from, to, dstRootWasCreated);
|