appium-mac2-driver 4.4.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/WebDriverAgentMac/IntegrationTests/AMWindowTests.m +427 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Commands/AMWindowCommands.m +63 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Commands/FBDebugCommands.m +2 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Routing/FBCommandStatus.h +3 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Routing/FBCommandStatus.m +13 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMScreenUtils.h +4 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMScreenUtils.m +23 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMSnapshotUtils.h +18 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMSnapshotUtils.m +43 -28
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMWindowUtils.h +111 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMWindowUtils.m +780 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMXCTAccessibility.h +61 -0
- package/WebDriverAgentMac/WebDriverAgentLib/Utilities/AMXCTAccessibility.m +108 -0
- package/WebDriverAgentMac/WebDriverAgentMac.xcodeproj/project.pbxproj +20 -0
- package/build/lib/commands/native-record-screen.d.ts +2 -0
- package/build/lib/commands/native-record-screen.d.ts.map +1 -1
- package/build/lib/commands/native-record-screen.js.map +1 -1
- package/build/lib/commands/windows.d.ts +22 -0
- package/build/lib/commands/windows.d.ts.map +1 -0
- package/build/lib/commands/windows.js +32 -0
- package/build/lib/commands/windows.js.map +1 -0
- package/build/lib/driver.d.ts +12 -0
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +3 -0
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +9 -0
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +9 -0
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/session-claim-handler.d.ts.map +1 -1
- package/build/lib/session-claim-handler.js +1 -2
- package/build/lib/session-claim-handler.js.map +1 -1
- package/build/lib/types.d.ts +26 -0
- package/build/lib/types.d.ts.map +1 -1
- package/build/lib/wda-mac.d.ts +0 -1
- package/build/lib/wda-mac.d.ts.map +1 -1
- package/build/lib/wda-mac.js +1 -1
- package/lib/commands/native-record-screen.ts +2 -0
- package/lib/commands/windows.ts +44 -0
- package/lib/driver.ts +4 -0
- package/lib/execute-method-map.ts +9 -0
- package/lib/session-claim-handler.ts +1 -2
- package/lib/types.ts +28 -0
- package/lib/wda-mac.ts +1 -2
- 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 +13 -1
- 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 +193 -64
- package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
- package/node_modules/@appium/support/lib/npm.ts +2 -1
- package/node_modules/@appium/support/lib/util.ts +13 -1
- package/node_modules/@appium/support/lib/zip.ts +231 -71
- package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +1934 -0
- package/node_modules/@appium/support/node_modules/axios/LICENSE +7 -0
- package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/@appium/support/node_modules/axios/README.md +2851 -0
- package/node_modules/@appium/support/node_modules/axios/dist/axios.js +5807 -0
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +5 -0
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +5829 -0
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +5850 -0
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +6808 -0
- package/node_modules/@appium/support/node_modules/axios/index.d.cts +766 -0
- package/node_modules/@appium/support/node_modules/axios/index.d.ts +787 -0
- package/node_modules/@appium/support/node_modules/axios/index.js +45 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +36 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +696 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +1490 -0
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +277 -0
- package/node_modules/@appium/support/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +306 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +219 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +171 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +76 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +95 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +174 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +178 -0
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +10 -0
- package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +14 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +64 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +279 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +112 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +37 -0
- package/node_modules/@appium/support/node_modules/axios/lib/utils.js +1150 -0
- package/node_modules/@appium/support/node_modules/axios/package.json +203 -0
- package/node_modules/@appium/support/package.json +6 -6
- 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 +2 -2
- package/node_modules/appium-xcode/CHANGELOG.md +7 -0
- package/node_modules/appium-xcode/package.json +4 -4
- 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/axios/README.md +41 -106
- package/node_modules/axios/dist/axios.js +931 -278
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +948 -268
- package/node_modules/axios/dist/esm/axios.js +948 -268
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +925 -242
- package/node_modules/axios/index.d.cts +20 -1
- package/node_modules/axios/index.d.ts +18 -1
- package/node_modules/axios/lib/adapters/fetch.js +73 -20
- package/node_modules/axios/lib/adapters/http.js +145 -26
- package/node_modules/axios/lib/adapters/xhr.js +120 -13
- package/node_modules/axios/lib/core/Axios.js +67 -12
- package/node_modules/axios/lib/core/AxiosError.js +59 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +17 -4
- package/node_modules/axios/lib/core/InterceptorManager.js +13 -2
- package/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
- package/node_modules/axios/lib/core/createMultipartBody.js +37 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +20 -0
- package/node_modules/axios/lib/core/mergeConfig.js +183 -120
- package/node_modules/axios/lib/defaults/transitional.js +1 -0
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
- package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +6 -3
- package/node_modules/axios/lib/helpers/cookies.js +30 -6
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +34 -7
- package/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +25 -1
- package/node_modules/axios/lib/helpers/fromDataURI.js +8 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
- package/node_modules/axios/lib/helpers/parseHeaders.js +2 -1
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +16 -3
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +16 -1
- package/node_modules/axios/lib/utils.js +61 -10
- package/node_modules/axios/package.json +1 -2
- 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/follow-redirects/README.md +27 -1
- package/node_modules/follow-redirects/index.js +1 -5
- package/node_modules/follow-redirects/package.json +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/uuid/package.json +17 -17
- package/package.json +6 -7
- package/scripts/setup-accessibility.mjs +175 -0
- package/node_modules/async-lock/AUTHORS +0 -21
- package/node_modules/async-lock/History.md +0 -132
- package/node_modules/async-lock/LICENSE +0 -22
- package/node_modules/async-lock/README.md +0 -177
- package/node_modules/async-lock/index.js +0 -2
- package/node_modules/async-lock/lib/index.js +0 -312
- package/node_modules/async-lock/package.json +0 -48
- 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/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
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "axios",
|
|
3
|
+
"version": "1.20.0",
|
|
4
|
+
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
|
+
"main": "./dist/node/axios.cjs",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"types": "index.d.ts",
|
|
9
|
+
"jsdelivr": "dist/axios.min.js",
|
|
10
|
+
"unpkg": "dist/axios.min.js",
|
|
11
|
+
"typings": "./index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": {
|
|
15
|
+
"require": "./index.d.cts",
|
|
16
|
+
"default": "./index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"bun": {
|
|
19
|
+
"require": "./dist/node/axios.cjs",
|
|
20
|
+
"default": "./index.js"
|
|
21
|
+
},
|
|
22
|
+
"react-native": {
|
|
23
|
+
"require": "./dist/browser/axios.cjs",
|
|
24
|
+
"default": "./dist/esm/axios.js"
|
|
25
|
+
},
|
|
26
|
+
"browser": {
|
|
27
|
+
"require": "./dist/browser/axios.cjs",
|
|
28
|
+
"default": "./index.js"
|
|
29
|
+
},
|
|
30
|
+
"default": {
|
|
31
|
+
"require": "./dist/node/axios.cjs",
|
|
32
|
+
"default": "./index.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"./lib/adapters/http.js": "./lib/adapters/http.js",
|
|
36
|
+
"./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
|
|
37
|
+
"./unsafe/*": "./lib/*",
|
|
38
|
+
"./unsafe/core/settle.js": "./lib/core/settle.js",
|
|
39
|
+
"./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
|
|
40
|
+
"./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
|
|
41
|
+
"./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
|
|
42
|
+
"./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
|
|
43
|
+
"./unsafe/adapters/http.js": "./lib/adapters/http.js",
|
|
44
|
+
"./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
|
|
45
|
+
"./unsafe/utils.js": "./lib/utils.js",
|
|
46
|
+
"./package.json": "./package.json",
|
|
47
|
+
"./dist/browser/axios.cjs": "./dist/browser/axios.cjs",
|
|
48
|
+
"./dist/node/axios.cjs": "./dist/node/axios.cjs"
|
|
49
|
+
},
|
|
50
|
+
"browser": {
|
|
51
|
+
"./dist/node/axios.cjs": "./dist/browser/axios.cjs",
|
|
52
|
+
"./lib/adapters/http.js": "./lib/helpers/null.js",
|
|
53
|
+
"./lib/platform/node/index.js": "./lib/platform/browser/index.js",
|
|
54
|
+
"./lib/platform/node/classes/Buffer.js": "./lib/helpers/null.js",
|
|
55
|
+
"./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
|
|
56
|
+
},
|
|
57
|
+
"react-native": {
|
|
58
|
+
"./dist/node/axios.cjs": "./dist/browser/axios.cjs",
|
|
59
|
+
"./lib/adapters/http.js": "./lib/helpers/null.js",
|
|
60
|
+
"./lib/platform/node/index.js": "./lib/platform/browser/index.js",
|
|
61
|
+
"./lib/platform/node/classes/Buffer.js": "./lib/helpers/null.js",
|
|
62
|
+
"./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
|
|
63
|
+
},
|
|
64
|
+
"repository": {
|
|
65
|
+
"type": "git",
|
|
66
|
+
"url": "https://github.com/axios/axios.git"
|
|
67
|
+
},
|
|
68
|
+
"keywords": [
|
|
69
|
+
"xhr",
|
|
70
|
+
"http",
|
|
71
|
+
"ajax",
|
|
72
|
+
"promise",
|
|
73
|
+
"node",
|
|
74
|
+
"browser",
|
|
75
|
+
"fetch",
|
|
76
|
+
"rest",
|
|
77
|
+
"api",
|
|
78
|
+
"client"
|
|
79
|
+
],
|
|
80
|
+
"author": "Matt Zabriskie",
|
|
81
|
+
"contributors": [
|
|
82
|
+
"Matt Zabriskie (https://github.com/mzabriskie)",
|
|
83
|
+
"Jay (https://github.com/jasonsaayman)",
|
|
84
|
+
"Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
|
85
|
+
"Nick Uraltsev (https://github.com/nickuraltsev)",
|
|
86
|
+
"Emily Morehouse (https://github.com/emilyemorehouse)",
|
|
87
|
+
"Rubén Norte (https://github.com/rubennorte)",
|
|
88
|
+
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
89
|
+
"Martti Laine (https://github.com/codeclown)",
|
|
90
|
+
"Xianming Zhong (https://github.com/chinesedfan)",
|
|
91
|
+
"Shaan Majid (https://github.com/shaanmajid)",
|
|
92
|
+
"Remco Haszing (https://github.com/remcohaszing)",
|
|
93
|
+
"Willian Agostini (https://github.com/WillianAgostini)",
|
|
94
|
+
"Rikki Gibson (https://github.com/RikkiGibson)"
|
|
95
|
+
],
|
|
96
|
+
"sideEffects": false,
|
|
97
|
+
"license": "MIT",
|
|
98
|
+
"bugs": {
|
|
99
|
+
"url": "https://github.com/axios/axios/issues"
|
|
100
|
+
},
|
|
101
|
+
"homepage": "https://axios-http.com",
|
|
102
|
+
"files": [
|
|
103
|
+
"index.js",
|
|
104
|
+
"index.d.ts",
|
|
105
|
+
"index.d.cts",
|
|
106
|
+
"CHANGELOG.md",
|
|
107
|
+
"MIGRATION_GUIDE.md",
|
|
108
|
+
"lib/",
|
|
109
|
+
"dist/axios.js",
|
|
110
|
+
"dist/axios.min.js",
|
|
111
|
+
"dist/axios.min.js.map",
|
|
112
|
+
"dist/esm/axios.js",
|
|
113
|
+
"dist/esm/axios.min.js",
|
|
114
|
+
"dist/esm/axios.min.js.map",
|
|
115
|
+
"dist/browser/axios.cjs",
|
|
116
|
+
"dist/node/axios.cjs"
|
|
117
|
+
],
|
|
118
|
+
"scripts": {
|
|
119
|
+
"build": "gulp clear && cross-env NODE_ENV=production rollup -c",
|
|
120
|
+
"version": "npm run build && git add package.json",
|
|
121
|
+
"preversion": "gulp version",
|
|
122
|
+
"test": "npm run test:vitest",
|
|
123
|
+
"test:vitest": "vitest run",
|
|
124
|
+
"test:vitest:unit": "vitest run --project unit",
|
|
125
|
+
"test:vitest:browser": "vitest run --project browser",
|
|
126
|
+
"test:vitest:browser:headless": "vitest run --project browser-headless",
|
|
127
|
+
"test:vitest:watch": "vitest",
|
|
128
|
+
"test:smoke:cjs:vitest": "npm --prefix tests/smoke/cjs run test:smoke:cjs:mocha",
|
|
129
|
+
"test:smoke:esm:vitest": "npm --prefix tests/smoke/esm run test:smoke:esm:vitest",
|
|
130
|
+
"test:smoke:deno": "deno task --cwd tests/smoke/deno test",
|
|
131
|
+
"test:smoke:bun": "bun test --cwd tests/smoke/bun",
|
|
132
|
+
"test:module:cjs": "npm --prefix tests/module/cjs run test:module:cjs",
|
|
133
|
+
"test:module:esm": "npm --prefix tests/module/esm run test:module:esm",
|
|
134
|
+
"docs:dev": "cd docs && npm run docs:dev",
|
|
135
|
+
"start": "node ./sandbox/server.js",
|
|
136
|
+
"examples": "node ./examples/server.js",
|
|
137
|
+
"lint": "eslint lib/**/*.js",
|
|
138
|
+
"fix": "eslint --fix lib/**/*.js",
|
|
139
|
+
"prepare": "husky"
|
|
140
|
+
},
|
|
141
|
+
"dependencies": {
|
|
142
|
+
"follow-redirects": "^1.16.0",
|
|
143
|
+
"form-data": "^4.0.6",
|
|
144
|
+
"https-proxy-agent": "^5.0.1",
|
|
145
|
+
"proxy-from-env": "^2.1.0"
|
|
146
|
+
},
|
|
147
|
+
"devDependencies": {
|
|
148
|
+
"@babel/core": "^7.29.0",
|
|
149
|
+
"@babel/preset-env": "^7.29.5",
|
|
150
|
+
"@commitlint/cli": "^21.2.0",
|
|
151
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
152
|
+
"@eslint/js": "^10.0.1",
|
|
153
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
154
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
155
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
156
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
157
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
158
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
159
|
+
"@vitest/browser": "^4.1.9",
|
|
160
|
+
"@vitest/browser-playwright": "^4.1.9",
|
|
161
|
+
"abortcontroller-polyfill": "^1.7.8",
|
|
162
|
+
"acorn": "^8.17.0",
|
|
163
|
+
"body-parser": "^2.3.0",
|
|
164
|
+
"chalk": "^5.6.2",
|
|
165
|
+
"cross-env": "^10.1.0",
|
|
166
|
+
"dev-null": "^0.1.1",
|
|
167
|
+
"eslint": "^10.6.0",
|
|
168
|
+
"express": "^5.2.1",
|
|
169
|
+
"formdata-node": "^6.0.3",
|
|
170
|
+
"formidable": "^3.5.4",
|
|
171
|
+
"fs-extra": "^11.3.6",
|
|
172
|
+
"get-stream": "^9.0.1",
|
|
173
|
+
"globals": "^17.7.0",
|
|
174
|
+
"gulp": "^5.0.1",
|
|
175
|
+
"husky": "^9.1.7",
|
|
176
|
+
"lint-staged": "^17.0.8",
|
|
177
|
+
"minimist": "^1.2.8",
|
|
178
|
+
"multer": "^2.2.0",
|
|
179
|
+
"playwright": "^1.61.1",
|
|
180
|
+
"prettier": "^3.9.4",
|
|
181
|
+
"rollup": "^4.60.4",
|
|
182
|
+
"rollup-plugin-bundle-size": "^1.0.3",
|
|
183
|
+
"selfsigned": "^5.5.0",
|
|
184
|
+
"stream-throttle": "^0.1.3",
|
|
185
|
+
"typescript": "^5.9.3",
|
|
186
|
+
"vitest": "^4.1.9"
|
|
187
|
+
},
|
|
188
|
+
"commitlint": {
|
|
189
|
+
"rules": {
|
|
190
|
+
"header-max-length": [
|
|
191
|
+
2,
|
|
192
|
+
"always",
|
|
193
|
+
130
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"extends": [
|
|
197
|
+
"@commitlint/config-conventional"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"lint-staged": {
|
|
201
|
+
"*.{js,cjs,mjs,ts,json,md,yml,yaml}": "prettier --write"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/support",
|
|
3
|
-
"version": "7.2.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "7.2.9",
|
|
4
|
+
"gitHead": "2c2820242ffdbc450025d4963cff7b17a7e5a7d3",
|
|
5
5
|
"description": "Support libs used across Appium packages",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"android",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@appium/logger": "2.0.12",
|
|
48
|
-
"@appium/types": "1.7.
|
|
48
|
+
"@appium/types": "1.7.2",
|
|
49
49
|
"archiver": "8.0.0",
|
|
50
|
-
"asyncbox": "6.
|
|
50
|
+
"asyncbox": "6.5.0",
|
|
51
51
|
"axios": "1.20.0",
|
|
52
52
|
"bluebird": "3.7.2",
|
|
53
53
|
"bplist-creator": "0.3.0",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"pluralize": "8.0.0",
|
|
63
63
|
"sanitize-filename": "1.6.4",
|
|
64
64
|
"semver": "7.8.5",
|
|
65
|
-
"shell-quote": "1.
|
|
65
|
+
"shell-quote": "1.12.0",
|
|
66
66
|
"teen_process": "4.2.1",
|
|
67
67
|
"type-fest": "5.10.0",
|
|
68
|
-
"uuid": "14.0.
|
|
68
|
+
"uuid": "14.0.3",
|
|
69
69
|
"which": "6.0.1",
|
|
70
70
|
"yauzl": "3.4.0"
|
|
71
71
|
},
|
|
@@ -2,8 +2,10 @@ import type { DriverCaps, W3CDriverCaps } from '../capabilities';
|
|
|
2
2
|
import type { Constraints } from '../constraints';
|
|
3
3
|
import type { Element, StringRecord } from '../util';
|
|
4
4
|
export interface IBidiCommands {
|
|
5
|
-
bidiSubscribe(events: string[], contexts
|
|
6
|
-
|
|
5
|
+
bidiSubscribe(events: string[], contexts?: string[]): Promise<{
|
|
6
|
+
subscription: string;
|
|
7
|
+
}>;
|
|
8
|
+
bidiUnsubscribe(events?: string[], contexts?: string[], subscriptions?: string[]): Promise<void>;
|
|
7
9
|
bidiStatus(): Promise<DriverStatus>;
|
|
8
10
|
}
|
|
9
11
|
export interface DriverStatus {
|
|
@@ -134,7 +136,7 @@ export interface IFindCommands {
|
|
|
134
136
|
*/
|
|
135
137
|
findElement(strategy: string, selector: string): Promise<Element>;
|
|
136
138
|
/**
|
|
137
|
-
* Find a
|
|
139
|
+
* Find a list of all UI elements matching a given a locator strategy and a selector
|
|
138
140
|
* @see {@link https://w3c.github.io/webdriver/#find-elements}
|
|
139
141
|
*
|
|
140
142
|
* @param strategy - the locator strategy
|
|
@@ -157,7 +159,7 @@ export interface IFindCommands {
|
|
|
157
159
|
*/
|
|
158
160
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<Element>;
|
|
159
161
|
/**
|
|
160
|
-
* Find a
|
|
162
|
+
* Find a list of all UI elements matching a given a locator strategy and a selector. Only
|
|
161
163
|
* look for elements among the set of descendants of a given element
|
|
162
164
|
* @see {@link https://w3c.github.io/webdriver/#find-elements-from-element}
|
|
163
165
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basedriver.d.ts","sourceRoot":"","sources":["../../../lib/commands/basedriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"basedriver.d.ts","sourceRoot":"","sources":["../../../lib/commands/basedriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAEnD,MAAM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AAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,CAAC,SAAS,YAAY,GAAG,YAAY,IACnC,UAAU,CAAC,CAAC,CAAC,GAAG;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,CAAC,CAAC;AAEN;;;;GAIG;AACH,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IAC9E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CAC7B;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAAE,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI;IAC5G,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CAC7B,GAAG,CAAC,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAC9B,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,QAAQ,SAAS,YAAY,GAAG,YAAY,EAC5C,YAAY,GAAG,0BAA0B,CAAC,CAAC,CAAC,EAC5C,YAAY,GAAG,0BAA0B,EACzC,WAAW,SAAS,YAAY,GAAG,YAAY,IAC7C,aAAa,GACf,YAAY,GACZ,aAAa,GACb,iBAAiB,CAAC,QAAQ,CAAC,GAC3B,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -3,8 +3,8 @@ import type {Constraints} from '../constraints';
|
|
|
3
3
|
import type {Element, StringRecord} from '../util';
|
|
4
4
|
|
|
5
5
|
export interface IBidiCommands {
|
|
6
|
-
bidiSubscribe(events: string[], contexts
|
|
7
|
-
bidiUnsubscribe(events
|
|
6
|
+
bidiSubscribe(events: string[], contexts?: string[]): Promise<{subscription: string}>;
|
|
7
|
+
bidiUnsubscribe(events?: string[], contexts?: string[], subscriptions?: string[]): Promise<void>;
|
|
8
8
|
bidiStatus(): Promise<DriverStatus>;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -162,7 +162,7 @@ export interface IFindCommands {
|
|
|
162
162
|
findElement(strategy: string, selector: string): Promise<Element>;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* Find a
|
|
165
|
+
* Find a list of all UI elements matching a given a locator strategy and a selector
|
|
166
166
|
* @see {@link https://w3c.github.io/webdriver/#find-elements}
|
|
167
167
|
*
|
|
168
168
|
* @param strategy - the locator strategy
|
|
@@ -187,7 +187,7 @@ export interface IFindCommands {
|
|
|
187
187
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<Element>;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
* Find a
|
|
190
|
+
* Find a list of all UI elements matching a given a locator strategy and a selector. Only
|
|
191
191
|
* look for elements among the set of descendants of a given element
|
|
192
192
|
* @see {@link https://w3c.github.io/webdriver/#find-elements-from-element}
|
|
193
193
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/types",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.7.2",
|
|
4
|
+
"gitHead": "2c2820242ffdbc450025d4963cff7b17a7e5a7d3",
|
|
5
5
|
"description": "Various type declarations used across Appium",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"android",
|
|
@@ -3,6 +3,13 @@
|
|
|
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
|
+
## [7.2.4](https://github.com/appium/appium-ios/compare/appium-xcode@7.2.3...appium-xcode@7.2.4) (2026-10-23)
|
|
7
|
+
|
|
8
|
+
### Miscellaneous Chores
|
|
9
|
+
|
|
10
|
+
* use AsyncLock from asyncbox instead of async-lock ([#107](https://github.com/appium/appium-ios/issues/107)) ([c6f7784](https://github.com/appium/appium-ios/commit/c6f7784ce933cc5910103b756645e159453964a2))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [7.2.3](https://github.com/appium/appium-ios/compare/appium-xcode@7.2.2...appium-xcode@7.2.3) (2026-10-02)
|
|
7
14
|
|
|
8
15
|
### Miscellaneous Chores
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-xcode",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.4",
|
|
4
4
|
"description": "Interact with Xcode",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"appium",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@appium/support": "^7.2.8",
|
|
46
|
-
"asyncbox": "^6.
|
|
46
|
+
"asyncbox": "^6.5.0",
|
|
47
47
|
"semver": "^7.8.5",
|
|
48
48
|
"teen_process": "^4.2.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@appium/tsconfig": "^1.2.1",
|
|
52
52
|
"@appium/types": "^1.7.1",
|
|
53
|
-
"@types/node": "^26.6.
|
|
53
|
+
"@types/node": "^26.6.5",
|
|
54
54
|
"@types/semver": "^7.8.0"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
58
58
|
"npm": ">=10"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "81fb72dc3b3f23f23c804f1969f0c1eb19c8a7a2"
|
|
61
61
|
}
|
|
@@ -208,6 +208,49 @@ try {
|
|
|
208
208
|
}
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
+
### AsyncLock
|
|
212
|
+
|
|
213
|
+
A promise-based mutex keyed by string, derived from the unmaintained
|
|
214
|
+
[async-lock](https://github.com/rogierschouten/async-lock) (MIT). Tasks with the
|
|
215
|
+
same key run one at a time in FIFO order; different keys run concurrently.
|
|
216
|
+
|
|
217
|
+
Differences from `async-lock`: promises only (no callbacks, custom `Promise`
|
|
218
|
+
or domain support), and each task runs in the `AsyncLocalStorage` context of
|
|
219
|
+
its own `acquire` caller instead of the previous lock holder's one, so no
|
|
220
|
+
`AsyncResource.bind` is needed. A task that outlives `maxExecutionTime` can no
|
|
221
|
+
longer release the lock a second time, and queued tasks that time out are
|
|
222
|
+
removed from the queue.
|
|
223
|
+
|
|
224
|
+
```js
|
|
225
|
+
import {AsyncLock} from 'asyncbox';
|
|
226
|
+
|
|
227
|
+
const lock = new AsyncLock({maxPending: 10});
|
|
228
|
+
|
|
229
|
+
const result = await lock.acquire('key', async () => {
|
|
230
|
+
// runs exclusively for 'key'
|
|
231
|
+
return 42;
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// several keys are held together; they are acquired in sorted order, so overlapping calls cannot deadlock
|
|
235
|
+
await lock.acquire(['key1', 'key2'], () => {});
|
|
236
|
+
|
|
237
|
+
// per-call options: timeout, maxOccupationTime, maxExecutionTime, maxPending, skipQueue
|
|
238
|
+
await lock.acquire('key', () => {}, {timeout: 5000, skipQueue: true});
|
|
239
|
+
|
|
240
|
+
lock.getQueueLength('key'); // tasks waiting for the key (the running one is not counted)
|
|
241
|
+
lock.isBusy('key'); // running or pending tasks for the key
|
|
242
|
+
lock.isBusy(); // any key
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Options can be passed to the constructor and overridden per `acquire` call.
|
|
246
|
+
Times are in ms, up to 2147483647, and `0` means no limit.
|
|
247
|
+
|
|
248
|
+
- `timeout` (default `0`) - max wait in the queue (for all the keys of a multi-key call together) before the task is rejected and dropped
|
|
249
|
+
- `maxOccupationTime` (default `0`) - max time from `acquire` to completion, queue wait included; one budget is shared by all keys of a multi-key call
|
|
250
|
+
- `maxExecutionTime` (default `0`) - max time the task may run while holding the lock; the lock is released when exceeded (for a multi-key call, it counts from when all keys are held and releases all of them)
|
|
251
|
+
- `maxPending` (default `1000`) - max tasks waiting per key; further ones are rejected right away, so `0` rejects every task that would have to wait
|
|
252
|
+
- `skipQueue` (default `false`, per call only) - put the task at the front of the queue
|
|
253
|
+
|
|
211
254
|
### Run the tests
|
|
212
255
|
|
|
213
256
|
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MapFilterOptions } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Similar to `Array.prototype.filter`; runs in parallel, serial, or with custom concurrency pool
|
|
4
|
+
* @param coll - The collection to filter
|
|
5
|
+
* @param filter - The function to test each element
|
|
6
|
+
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
7
|
+
*/
|
|
8
|
+
export declare function asyncfilter<T>(coll: T[], filter: (value: T) => boolean | Promise<boolean>, options?: MapFilterOptions): Promise<T[]>;
|
|
9
|
+
//# sourceMappingURL=asyncfilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncfilter.d.ts","sourceRoot":"","sources":["../../../lib/asyncfilter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,IAAI,EAAE,CAAC,EAAE,EACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAChD,OAAO,GAAE,gBAAuB,GAC/B,OAAO,CAAC,CAAC,EAAE,CAAC,CAwBd"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.asyncfilter = asyncfilter;
|
|
4
|
+
const limit_function_js_1 = require("./limit-function.js");
|
|
5
|
+
/**
|
|
6
|
+
* Similar to `Array.prototype.filter`; runs in parallel, serial, or with custom concurrency pool
|
|
7
|
+
* @param coll - The collection to filter
|
|
8
|
+
* @param filter - The function to test each element
|
|
9
|
+
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
10
|
+
*/
|
|
11
|
+
async function asyncfilter(coll, filter, options = true) {
|
|
12
|
+
if (options === null) {
|
|
13
|
+
throw new Error('Options cannot be null');
|
|
14
|
+
}
|
|
15
|
+
// limitFunction requires the filter to always return a promise
|
|
16
|
+
const filterAsync = async (value) => filter(value);
|
|
17
|
+
if (options === false) {
|
|
18
|
+
return coll.reduce(async (accP, item) => {
|
|
19
|
+
const acc = await accP;
|
|
20
|
+
if (await filterAsync(item)) {
|
|
21
|
+
acc.push(item);
|
|
22
|
+
}
|
|
23
|
+
return acc;
|
|
24
|
+
}, Promise.resolve([]));
|
|
25
|
+
}
|
|
26
|
+
const adjustedFilter = options === true ? filterAsync : (await (0, limit_function_js_1.getLimitFunction)())(filterAsync, { concurrency: options.concurrency });
|
|
27
|
+
const bools = await Promise.all(coll.map(adjustedFilter));
|
|
28
|
+
return coll.reduce((acc, item, i) => {
|
|
29
|
+
if (bools[i]) {
|
|
30
|
+
acc.push(item);
|
|
31
|
+
}
|
|
32
|
+
return acc;
|
|
33
|
+
}, []);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=asyncfilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncfilter.js","sourceRoot":"","sources":["../../../lib/asyncfilter.ts"],"names":[],"mappings":";;AASA,kCA4BC;AArCD,2DAAqD;AAGrD;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,IAAS,EACT,MAAgD,EAChD,UAA4B,IAAI;IAEhC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,+DAA+D;IAC/D,MAAM,WAAW,GAAG,KAAK,EAAE,KAAQ,EAAoB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACxE,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC,MAAM,CAAe,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;YACpD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC;YACvB,IAAI,MAAM,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC5B,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACjB,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;IACD,MAAM,cAAc,GAClB,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,oCAAgB,GAAE,CAAC,CAAC,WAAW,EAAE,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAC,CAAC,CAAC;IAC/G,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC,MAAM,CAAM,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;QACvC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YACb,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MapFilterOptions } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Similar to `Array.prototype.map`; runs in parallel, serial, or with custom concurrency pool
|
|
4
|
+
* @param coll - The collection to map over
|
|
5
|
+
* @param mapper - The function to apply to each element
|
|
6
|
+
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
7
|
+
*/
|
|
8
|
+
export declare function asyncmap<T, R>(coll: T[], mapper: (value: T) => R | Promise<R>, options?: MapFilterOptions): Promise<R[]>;
|
|
9
|
+
//# sourceMappingURL=asyncmap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncmap.d.ts","sourceRoot":"","sources":["../../../lib/asyncmap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,CAAC,EACjC,IAAI,EAAE,CAAC,EAAE,EACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EACpC,OAAO,GAAE,gBAAuB,GAC/B,OAAO,CAAC,CAAC,EAAE,CAAC,CAed"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.asyncmap = asyncmap;
|
|
4
|
+
const limit_function_js_1 = require("./limit-function.js");
|
|
5
|
+
/**
|
|
6
|
+
* Similar to `Array.prototype.map`; runs in parallel, serial, or with custom concurrency pool
|
|
7
|
+
* @param coll - The collection to map over
|
|
8
|
+
* @param mapper - The function to apply to each element
|
|
9
|
+
* @param options - Options for controlling parallelism (default: true - fully parallel)
|
|
10
|
+
*/
|
|
11
|
+
async function asyncmap(coll, mapper, options = true) {
|
|
12
|
+
if (options === null) {
|
|
13
|
+
throw new Error('Options cannot be null');
|
|
14
|
+
}
|
|
15
|
+
// limitFunction requires the mapper to always return a promise
|
|
16
|
+
const mapperAsync = async (value) => mapper(value);
|
|
17
|
+
if (options === false) {
|
|
18
|
+
return coll.reduce(async (acc, item) => [...(await acc), await mapperAsync(item)], Promise.resolve([]));
|
|
19
|
+
}
|
|
20
|
+
const adjustedMapper = options === true ? mapperAsync : (await (0, limit_function_js_1.getLimitFunction)())(mapperAsync, { concurrency: options.concurrency });
|
|
21
|
+
return Promise.all(coll.map(adjustedMapper));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=asyncmap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncmap.js","sourceRoot":"","sources":["../../../lib/asyncmap.ts"],"names":[],"mappings":";;AASA,4BAmBC;AA5BD,2DAAqD;AAGrD;;;;;GAKG;AACI,KAAK,UAAU,QAAQ,CAC5B,IAAS,EACT,MAAoC,EACpC,UAA4B,IAAI;IAEhC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,+DAA+D;IAC/D,MAAM,WAAW,GAAG,KAAK,EAAE,KAAQ,EAAc,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClE,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC,MAAM,CAChB,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,EAC9D,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CACpB,CAAC;IACJ,CAAC;IACD,MAAM,cAAc,GAClB,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,oCAAgB,GAAE,CAAC,CAAC,WAAW,EAAE,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAC,CAAC,CAAC;IAC/G,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Error thrown by {@link withTimeout} when the deadline is exceeded. */
|
|
2
|
+
export declare class TimeoutError extends Error {
|
|
3
|
+
constructor(message?: string);
|
|
4
|
+
}
|
|
5
|
+
/** Thrown when a promise is cancelled via `cancel`. */
|
|
6
|
+
export declare class PromiseCancellationError extends Error {
|
|
7
|
+
constructor(message?: string);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../lib/errors.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,qBAAa,YAAa,SAAQ,KAAK;gBACzB,OAAO,CAAC,EAAE,MAAM;CAI7B;AAED,uDAAuD;AACvD,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,OAAO,GAAE,MAA4B;CAIlD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromiseCancellationError = exports.TimeoutError = void 0;
|
|
4
|
+
/** Error thrown by {@link withTimeout} when the deadline is exceeded. */
|
|
5
|
+
class TimeoutError extends Error {
|
|
6
|
+
constructor(message) {
|
|
7
|
+
super(message ?? 'Operation timed out');
|
|
8
|
+
this.name = 'TimeoutError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.TimeoutError = TimeoutError;
|
|
12
|
+
/** Thrown when a promise is cancelled via `cancel`. */
|
|
13
|
+
class PromiseCancellationError extends Error {
|
|
14
|
+
constructor(message = 'Promise cancelled') {
|
|
15
|
+
super(message);
|
|
16
|
+
this.name = 'PromiseCancellationError';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.PromiseCancellationError = PromiseCancellationError;
|
|
20
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../lib/errors.ts"],"names":[],"mappings":";;;AAAA,yEAAyE;AACzE,MAAa,YAAa,SAAQ,KAAK;IACrC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,IAAI,qBAAqB,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AALD,oCAKC;AAED,uDAAuD;AACvD,MAAa,wBAAyB,SAAQ,KAAK;IACjD,YAAY,UAAkB,mBAAmB;QAC/C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;CACF;AALD,4DAKC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { TimeoutError, PromiseCancellationError } from './errors.js';
|
|
2
|
+
export { sleep } from './sleep.js';
|
|
3
|
+
export { withTimeout } from './with-timeout.js';
|
|
4
|
+
export { longSleep } from './long-sleep.js';
|
|
5
|
+
export { retry, retryInterval } from './retry.js';
|
|
6
|
+
export { asyncmap } from './asyncmap.js';
|
|
7
|
+
export { asyncfilter } from './asyncfilter.js';
|
|
8
|
+
export { waitForCondition } from './wait-for-condition.js';
|
|
9
|
+
export { AsyncLock } from './lock.js';
|
|
10
|
+
export type { AsyncLockOptions, AcquireOptions } from './lock.js';
|
|
11
|
+
export type { CancellablePromise, Progress, ProgressCallback, LongSleepOptions, MapFilterOptions, SleepArg, SleepOptions, WaitForConditionOptions, } from './types.js';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,wBAAwB,EAAC,MAAM,aAAa,CAAC;AACnE,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAEpC,YAAY,EAAC,gBAAgB,EAAE,cAAc,EAAC,MAAM,WAAW,CAAC;AAChE,YAAY,EACV,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,uBAAuB,GACxB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AsyncLock = exports.waitForCondition = exports.asyncfilter = exports.asyncmap = exports.retryInterval = exports.retry = exports.longSleep = exports.withTimeout = exports.sleep = exports.PromiseCancellationError = exports.TimeoutError = void 0;
|
|
4
|
+
var errors_js_1 = require("./errors.js");
|
|
5
|
+
Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return errors_js_1.TimeoutError; } });
|
|
6
|
+
Object.defineProperty(exports, "PromiseCancellationError", { enumerable: true, get: function () { return errors_js_1.PromiseCancellationError; } });
|
|
7
|
+
var sleep_js_1 = require("./sleep.js");
|
|
8
|
+
Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return sleep_js_1.sleep; } });
|
|
9
|
+
var with_timeout_js_1 = require("./with-timeout.js");
|
|
10
|
+
Object.defineProperty(exports, "withTimeout", { enumerable: true, get: function () { return with_timeout_js_1.withTimeout; } });
|
|
11
|
+
var long_sleep_js_1 = require("./long-sleep.js");
|
|
12
|
+
Object.defineProperty(exports, "longSleep", { enumerable: true, get: function () { return long_sleep_js_1.longSleep; } });
|
|
13
|
+
var retry_js_1 = require("./retry.js");
|
|
14
|
+
Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_js_1.retry; } });
|
|
15
|
+
Object.defineProperty(exports, "retryInterval", { enumerable: true, get: function () { return retry_js_1.retryInterval; } });
|
|
16
|
+
var asyncmap_js_1 = require("./asyncmap.js");
|
|
17
|
+
Object.defineProperty(exports, "asyncmap", { enumerable: true, get: function () { return asyncmap_js_1.asyncmap; } });
|
|
18
|
+
var asyncfilter_js_1 = require("./asyncfilter.js");
|
|
19
|
+
Object.defineProperty(exports, "asyncfilter", { enumerable: true, get: function () { return asyncfilter_js_1.asyncfilter; } });
|
|
20
|
+
var wait_for_condition_js_1 = require("./wait-for-condition.js");
|
|
21
|
+
Object.defineProperty(exports, "waitForCondition", { enumerable: true, get: function () { return wait_for_condition_js_1.waitForCondition; } });
|
|
22
|
+
var lock_js_1 = require("./lock.js");
|
|
23
|
+
Object.defineProperty(exports, "AsyncLock", { enumerable: true, get: function () { return lock_js_1.AsyncLock; } });
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":";;;AAAA,yCAAmE;AAA3D,yGAAA,YAAY,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAC9C,uCAAiC;AAAzB,iGAAA,KAAK,OAAA;AACb,qDAA8C;AAAtC,8GAAA,WAAW,OAAA;AACnB,iDAA0C;AAAlC,0GAAA,SAAS,OAAA;AACjB,uCAAgD;AAAxC,iGAAA,KAAK,OAAA;AAAE,yGAAA,aAAa,OAAA;AAC5B,6CAAuC;AAA/B,uGAAA,QAAQ,OAAA;AAChB,mDAA6C;AAArC,6GAAA,WAAW,OAAA;AACnB,iEAAyD;AAAjD,yHAAA,gBAAgB,OAAA;AACxB,qCAAoC;AAA5B,oGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limit-function.d.ts","sourceRoot":"","sources":["../../../lib/limit-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAc3C,wBAAsB,gBAAgB,kCAGrC"}
|