appium-espresso-driver 9.3.7 → 9.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/lib/commands/context.d.ts +1 -1
- package/build/lib/commands/context.js +1 -1
- package/build/lib/commands/element.d.ts +10 -10
- package/build/lib/commands/element.js +10 -10
- package/build/lib/commands/idling-resources.d.ts +1 -1
- package/build/lib/commands/idling-resources.js +1 -1
- package/build/lib/commands/misc.d.ts +5 -4
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js +3 -3
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/server/runner.d.ts.map +1 -1
- package/build/lib/commands/server/runner.js +3 -1
- package/build/lib/commands/server/runner.js.map +1 -1
- package/build/lib/commands/services.d.ts +2 -2
- package/build/lib/commands/services.js +2 -2
- package/build/lib/driver.js +1 -1
- package/build/lib/driver.js.map +1 -1
- package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
- package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
- package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/lib/commands/context.ts +1 -1
- package/lib/commands/element.ts +10 -10
- package/lib/commands/idling-resources.ts +1 -1
- package/lib/commands/misc.ts +5 -4
- package/lib/commands/server/runner.ts +3 -1
- package/lib/commands/services.ts +2 -2
- package/lib/driver.ts +1 -1
- 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 -12
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.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/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 -12
- package/node_modules/@appium/base-driver/lib/basedriver/driver.ts +2 -0
- 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/node_modules/axios/CHANGELOG.md +1934 -0
- package/node_modules/@appium/base-driver/node_modules/axios/LICENSE +7 -0
- package/node_modules/@appium/base-driver/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/@appium/base-driver/node_modules/axios/README.md +2851 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.js +5807 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js +5 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/browser/axios.cjs +5829 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.js +5850 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/@appium/base-driver/node_modules/axios/dist/node/axios.cjs +6808 -0
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.cts +766 -0
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.ts +787 -0
- package/node_modules/@appium/base-driver/node_modules/axios/index.js +45 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/README.md +36 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/fetch.js +696 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/http.js +1490 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/xhr.js +277 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/Axios.js +306 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosError.js +219 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/InterceptorManager.js +171 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/buildFullPath.js +76 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/dispatchRequest.js +95 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/mergeConfig.js +174 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/index.js +178 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/transitional.js +10 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/bind.js +14 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/cookies.js +64 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toFormData.js +279 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/validator.js +112 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/index.js +37 -0
- package/node_modules/@appium/base-driver/node_modules/axios/lib/utils.js +1150 -0
- package/node_modules/@appium/base-driver/node_modules/axios/package.json +203 -0
- package/node_modules/@appium/base-driver/package.json +6 -6
- 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-android-driver/CHANGELOG.md +6 -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 +9 -5
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.js.map +1 -1
- package/node_modules/appium-android-driver/lib/commands/context/exports.ts +9 -5
- package/node_modules/appium-android-driver/package.json +1 -1
- package/node_modules/appium-chromedriver/CHANGELOG.md +14 -0
- 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 +1 -0
- package/node_modules/appium-chromedriver/lib/commands/version.ts +10 -0
- package/node_modules/appium-chromedriver/package.json +2 -2
- 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/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/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/io.appium.settings/CHANGELOG.md +7 -0
- package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
- package/node_modules/io.appium.settings/package.json +2 -2
- package/node_modules/on-finished/index.js +14 -2
- package/node_modules/on-finished/package.json +11 -7
- package/node_modules/qs/.editorconfig +1 -1
- package/node_modules/qs/CHANGELOG.md +45 -22
- package/node_modules/qs/README.md +26 -1
- package/node_modules/qs/dist/qs.js +27 -27
- 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 +13 -6
- package/node_modules/qs/lib/stringify.js +5 -3
- package/node_modules/qs/lib/utils.js +15 -7
- package/node_modules/qs/package.json +6 -6
- package/node_modules/qs/test/parse.js +266 -2
- package/node_modules/qs/test/stringify.js +222 -0
- package/node_modules/qs/test/utils.js +61 -3
- 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/node_modules/ws/lib/websocket.js +17 -3
- package/node_modules/ws/package.json +1 -1
- package/package.json +5 -5
- 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/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
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
const LOOPBACK_HOSTNAMES = new Set(['localhost', '0.0.0.0']);
|
|
2
|
+
|
|
3
|
+
const trimTrailingDots = (value) => {
|
|
4
|
+
let end = value.length;
|
|
5
|
+
|
|
6
|
+
while (end && value.charCodeAt(end - 1) === 46) {
|
|
7
|
+
end--;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return end === value.length ? value : value.slice(0, end);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const isIPv4Loopback = (host) => {
|
|
14
|
+
const parts = host.split('.');
|
|
15
|
+
if (parts.length !== 4) return false;
|
|
16
|
+
if (parts[0] !== '127') return false;
|
|
17
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Canonicalize an IPv4 address written in shorthand, octal, or hex form into
|
|
22
|
+
* dotted-decimal. IPv6 addresses and non-IP strings are returned unchanged so
|
|
23
|
+
* the existing IPv4-mapped IPv6 unmap path and the isLoopback path can still
|
|
24
|
+
* see them.
|
|
25
|
+
*
|
|
26
|
+
* Shorthand expansion mirrors Node's URL parser: literal parts fill from the
|
|
27
|
+
* left, the final part fills the remaining octets from the right with
|
|
28
|
+
* zero-padding on the left.
|
|
29
|
+
* 127.1 -> 127.0.0.1
|
|
30
|
+
* 127.0.1 -> 127.0.0.1
|
|
31
|
+
* 1.2.3 -> 1.2.0.3
|
|
32
|
+
*
|
|
33
|
+
* Each octet is parsed with an explicit base: 16 for `0x`/`0X` prefix, 8 for
|
|
34
|
+
* zero-prefixed multi-digit all-`0-7` parts, 10 otherwise. Zero-prefixed
|
|
35
|
+
* decimal-looking parts that contain `8` or `9` are rejected to match Node's
|
|
36
|
+
* URL parser, and the comparison layer falls through to non-bypass if either
|
|
37
|
+
* side rejects the form (fail-safe).
|
|
38
|
+
*
|
|
39
|
+
* Returns the input unchanged on any parse failure, out-of-range octet, or
|
|
40
|
+
* unusual shape (1-part, 5+ parts) so the comparison layer fails closed.
|
|
41
|
+
*/
|
|
42
|
+
const parseIPv4Octet = (text) => {
|
|
43
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
|
|
44
|
+
const n = parseInt(text.slice(2), 16);
|
|
45
|
+
return Number.isFinite(n) ? n : null;
|
|
46
|
+
}
|
|
47
|
+
if (text.length > 1 && /^0[0-7]+$/.test(text)) {
|
|
48
|
+
const n = parseInt(text, 8);
|
|
49
|
+
return Number.isFinite(n) ? n : null;
|
|
50
|
+
}
|
|
51
|
+
if (text.length > 1 && /^0[0-9]+$/.test(text)) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
if (/^[0-9]+$/.test(text)) {
|
|
55
|
+
const n = parseInt(text, 10);
|
|
56
|
+
return Number.isFinite(n) ? n : null;
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const normalizeIPAddress = (host) => {
|
|
62
|
+
if (typeof host !== 'string' || !host || host.indexOf(':') !== -1) {
|
|
63
|
+
return host;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
let h = host;
|
|
67
|
+
if (h.charAt(0) === '[' && h.charAt(h.length - 1) === ']') {
|
|
68
|
+
h = h.slice(1, -1);
|
|
69
|
+
}
|
|
70
|
+
h = trimTrailingDots(h);
|
|
71
|
+
|
|
72
|
+
// Allowed characters for any IPv4 shape: digits, dot, 'x', 'X', hex digits.
|
|
73
|
+
if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
|
|
74
|
+
|
|
75
|
+
const parts = h.split('.');
|
|
76
|
+
|
|
77
|
+
// No part may be empty (e.g. "127..0.1" or "127.0.0."). Trailing dots are
|
|
78
|
+
// already stripped above; this guards against the empty-middle case.
|
|
79
|
+
if (parts.some((p) => p === '')) return host;
|
|
80
|
+
|
|
81
|
+
if (parts.length === 4) {
|
|
82
|
+
// Full IPv4 form: each part is an octet.
|
|
83
|
+
const octets = parts.map(parseIPv4Octet);
|
|
84
|
+
if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
85
|
+
return octets.join('.');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (parts.length > 4) {
|
|
89
|
+
return host;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Shorthand: 1..3 parts. Node's URL parser treats a 1-part input as a 32-bit
|
|
93
|
+
// integer split into octets, which has surprising semantics (e.g. "127" ->
|
|
94
|
+
// "0.0.0.127"). Reject 1-part inputs to keep the helper predictable: the
|
|
95
|
+
// fail-safe returns the input unchanged and the comparison layer falls
|
|
96
|
+
// through to non-bypass.
|
|
97
|
+
if (parts.length === 1) return host;
|
|
98
|
+
|
|
99
|
+
// 2..3 parts: literal parts fill from the left, tail fills remaining octets
|
|
100
|
+
// from the right with zero-padding.
|
|
101
|
+
const literalOctets = parts.slice(0, -1);
|
|
102
|
+
const tail = parts[parts.length - 1];
|
|
103
|
+
const tailSlots = 4 - literalOctets.length;
|
|
104
|
+
|
|
105
|
+
// Tail is parsed as a full IPv4 number (hex/octal/decimal) and packed
|
|
106
|
+
// low-byte-right into the remaining octets, matching Node's URL parser.
|
|
107
|
+
// e.g. 127.65535 (tail 0xFFFF into 3 slots) -> 127.0.255.255;
|
|
108
|
+
// 127.0x00ff (tail 0xFF into 3 slots) -> 127.0.0.255;
|
|
109
|
+
// 127.0.65535 (tail 0xFFFF into 2 slots) -> 127.0.255.255.
|
|
110
|
+
const tailValue = parseIPv4Octet(tail);
|
|
111
|
+
if (tailValue === null) return host;
|
|
112
|
+
const maxTail = (1 << (8 * tailSlots)) - 1;
|
|
113
|
+
if (tailValue < 0 || tailValue > maxTail) return host;
|
|
114
|
+
|
|
115
|
+
const tailOctets = new Array(tailSlots).fill(0);
|
|
116
|
+
for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
|
|
117
|
+
tailOctets[i] = v & 0xff;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const literal = literalOctets.map(parseIPv4Octet);
|
|
121
|
+
if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
122
|
+
|
|
123
|
+
return [...literal, ...tailOctets].join('.');
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
127
|
+
|
|
128
|
+
// The unspecified address (IPv4 0.0.0.0 / IPv6 ::) resolves to the local host
|
|
129
|
+
// for outbound connections, so treat it as loopback-equivalent for NO_PROXY
|
|
130
|
+
// matching. 0.0.0.0 is covered by LOOPBACK_HOSTNAMES; this handles compressed
|
|
131
|
+
// and full IPv6 all-zero forms so both families bypass symmetrically.
|
|
132
|
+
const isIPv6Unspecified = (host) => {
|
|
133
|
+
if (host === '::') return true;
|
|
134
|
+
|
|
135
|
+
const compressionIndex = host.indexOf('::');
|
|
136
|
+
|
|
137
|
+
if (compressionIndex !== -1) {
|
|
138
|
+
if (compressionIndex !== host.lastIndexOf('::')) return false;
|
|
139
|
+
|
|
140
|
+
const left = host.slice(0, compressionIndex);
|
|
141
|
+
const right = host.slice(compressionIndex + 2);
|
|
142
|
+
const leftGroups = left ? left.split(':') : [];
|
|
143
|
+
const rightGroups = right ? right.split(':') : [];
|
|
144
|
+
const explicitGroups = leftGroups.length + rightGroups.length;
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup)
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const groups = host.split(':');
|
|
152
|
+
return groups.length === 8 && groups.every(isIPv6ZeroGroup);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const isIPv6Loopback = (host) => {
|
|
156
|
+
// Collapse all-zero groups: any form of ::1 / 0:0:...:0:1
|
|
157
|
+
// First, strip any leading "::" by normalising with Set lookup of common forms,
|
|
158
|
+
// then fall back to structural check.
|
|
159
|
+
if (host === '::1') return true;
|
|
160
|
+
|
|
161
|
+
// Check IPv4-mapped IPv6 loopback: ::ffff:<v4-loopback> or ::ffff:<hex-v4-loopback>
|
|
162
|
+
// Node's URL parser normalises ::ffff:127.0.0.1 → ::ffff:7f00:1
|
|
163
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
164
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
165
|
+
|
|
166
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
167
|
+
if (v4MappedHex) {
|
|
168
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
169
|
+
// High 16 bits must start with 127 (0x7f) — i.e. 0x7f00..0x7fff
|
|
170
|
+
return high >= 0x7f00 && high <= 0x7fff;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Full-form ::1 variants: any number of zero groups followed by trailing 1
|
|
174
|
+
// e.g. 0:0:0:0:0:0:0:1, 0000:...:0001
|
|
175
|
+
const groups = host.split(':');
|
|
176
|
+
if (groups.length === 8) {
|
|
177
|
+
for (let i = 0; i < 7; i++) {
|
|
178
|
+
if (!/^0+$/.test(groups[i])) return false;
|
|
179
|
+
}
|
|
180
|
+
return /^0*1$/.test(groups[7]);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return false;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const isLoopback = (host) => {
|
|
187
|
+
if (!host) return false;
|
|
188
|
+
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
189
|
+
if (isIPv4Loopback(host)) return true;
|
|
190
|
+
if (isIPv6Unspecified(host)) return true;
|
|
191
|
+
return isIPv6Loopback(host);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
const DEFAULT_PORTS = {
|
|
195
|
+
http: 80,
|
|
196
|
+
https: 443,
|
|
197
|
+
ws: 80,
|
|
198
|
+
wss: 443,
|
|
199
|
+
ftp: 21,
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
const parseNoProxyEntry = (entry) => {
|
|
203
|
+
let entryHost = entry;
|
|
204
|
+
let entryPort = 0;
|
|
205
|
+
|
|
206
|
+
if (entryHost.charAt(0) === '[') {
|
|
207
|
+
const bracketIndex = entryHost.indexOf(']');
|
|
208
|
+
|
|
209
|
+
if (bracketIndex !== -1) {
|
|
210
|
+
const host = entryHost.slice(1, bracketIndex);
|
|
211
|
+
const rest = entryHost.slice(bracketIndex + 1);
|
|
212
|
+
|
|
213
|
+
if (rest.charAt(0) === ':' && /^\d+$/.test(rest.slice(1))) {
|
|
214
|
+
entryPort = Number.parseInt(rest.slice(1), 10);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
return [host, entryPort];
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const firstColon = entryHost.indexOf(':');
|
|
222
|
+
const lastColon = entryHost.lastIndexOf(':');
|
|
223
|
+
|
|
224
|
+
if (
|
|
225
|
+
firstColon !== -1 &&
|
|
226
|
+
firstColon === lastColon &&
|
|
227
|
+
/^\d+$/.test(entryHost.slice(lastColon + 1))
|
|
228
|
+
) {
|
|
229
|
+
entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
|
|
230
|
+
entryHost = entryHost.slice(0, lastColon);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
return [entryHost, entryPort];
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
// Convert IPv4-mapped IPv6 (::ffff:0:0/96 prefix) to IPv4 dotted form so both
|
|
237
|
+
// sides of a NO_PROXY comparison see the same canonical address. Without this,
|
|
238
|
+
// `NO_PROXY=192.168.1.5` would not match a request to `http://[::ffff:192.168.1.5]/`
|
|
239
|
+
// (Node's URL parser normalises that to `[::ffff:c0a8:105]`), and vice-versa,
|
|
240
|
+
// allowing the proxy-bypass policy to be circumvented by using the alternate
|
|
241
|
+
// representation. Returns the input unchanged when not IPv4-mapped.
|
|
242
|
+
const IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
243
|
+
const IPV4_MAPPED_HEX_RE =
|
|
244
|
+
/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
245
|
+
|
|
246
|
+
const unmapIPv4MappedIPv6 = (host) => {
|
|
247
|
+
if (typeof host !== 'string' || host.indexOf(':') === -1) return host;
|
|
248
|
+
|
|
249
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
250
|
+
if (dotted) return dotted[1];
|
|
251
|
+
|
|
252
|
+
const hex = host.match(IPV4_MAPPED_HEX_RE);
|
|
253
|
+
if (hex) {
|
|
254
|
+
const high = parseInt(hex[1], 16);
|
|
255
|
+
const low = parseInt(hex[2], 16);
|
|
256
|
+
return `${high >> 8}.${high & 0xff}.${low >> 8}.${low & 0xff}`;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
return host;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
const IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
|
|
263
|
+
|
|
264
|
+
const ipv4ToBytes = (host) => {
|
|
265
|
+
const parts = host.split('.');
|
|
266
|
+
|
|
267
|
+
return parts.length === 4 &&
|
|
268
|
+
parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255)
|
|
269
|
+
? parts.map(Number)
|
|
270
|
+
: null;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
const IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
|
|
274
|
+
|
|
275
|
+
const ipv6ToBytes = (host) => {
|
|
276
|
+
const halves = host.split('::');
|
|
277
|
+
|
|
278
|
+
if (halves.length > 2) {
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
const groups = halves[0] ? halves[0].split(':') : [];
|
|
283
|
+
|
|
284
|
+
if (halves.length === 2) {
|
|
285
|
+
const rear = halves[1] ? halves[1].split(':') : [];
|
|
286
|
+
const missing = 8 - groups.length - rear.length;
|
|
287
|
+
|
|
288
|
+
if (missing < 1) {
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
groups.push(...new Array(missing).fill('0'), ...rear);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
|
|
296
|
+
return null;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return groups.flatMap((group) => {
|
|
300
|
+
const value = Number.parseInt(group, 16);
|
|
301
|
+
return [(value >> 8) & 0xff, value & 0xff];
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
const ipToBytes = (host) => {
|
|
306
|
+
if (typeof host !== 'string' || !host) {
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
return host.indexOf(':') !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
const normalizeNoProxyHost = (hostname) => {
|
|
314
|
+
if (!hostname) {
|
|
315
|
+
return hostname;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (hostname.charAt(0) === '[' && hostname.charAt(hostname.length - 1) === ']') {
|
|
319
|
+
hostname = hostname.slice(1, -1);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const trimmed = trimTrailingDots(hostname);
|
|
323
|
+
|
|
324
|
+
// IPv4 shorthand/octal/hex → dotted-decimal; helper is a no-op for inputs
|
|
325
|
+
// containing ':' (IPv6 and IPv4-mapped IPv6) so we fall through to unmap.
|
|
326
|
+
const ipv4 = normalizeIPAddress(trimmed);
|
|
327
|
+
if (ipv4 !== trimmed) {
|
|
328
|
+
return ipv4;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return unmapIPv4MappedIPv6(trimmed);
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
const normalizeCidrBase = (input) => {
|
|
335
|
+
let base = input;
|
|
336
|
+
const startsBracket = base.charAt(0) === '[';
|
|
337
|
+
const endsBracket = base.charAt(base.length - 1) === ']';
|
|
338
|
+
const hasBracket = base.includes('[') || base.includes(']');
|
|
339
|
+
|
|
340
|
+
if (startsBracket || endsBracket) {
|
|
341
|
+
if (!startsBracket || !endsBracket) {
|
|
342
|
+
return null;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
base = base.slice(1, -1);
|
|
346
|
+
|
|
347
|
+
if (base.indexOf(':') === -1 || base.includes('[') || base.includes(']')) {
|
|
348
|
+
return null;
|
|
349
|
+
}
|
|
350
|
+
} else if (hasBracket) {
|
|
351
|
+
return null;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
if (!base || base.charAt(base.length - 1) === '.') {
|
|
355
|
+
return null;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
const wasIPv6 = base.indexOf(':') !== -1;
|
|
359
|
+
|
|
360
|
+
if (wasIPv6) {
|
|
361
|
+
try {
|
|
362
|
+
base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
|
|
363
|
+
} catch (_err) {
|
|
364
|
+
return null;
|
|
365
|
+
}
|
|
366
|
+
} else {
|
|
367
|
+
base = normalizeIPAddress(base);
|
|
368
|
+
|
|
369
|
+
if (!ipv4ToBytes(base)) {
|
|
370
|
+
return null;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
const CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
|
|
378
|
+
|
|
379
|
+
const parseCidrEntry = (entry) => {
|
|
380
|
+
if (entry.indexOf('/') === -1) {
|
|
381
|
+
return undefined;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const match = CIDR_ENTRY_RE.exec(entry);
|
|
385
|
+
|
|
386
|
+
if (!match) {
|
|
387
|
+
return null;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
let prefix = Number(match[2]);
|
|
391
|
+
const parsedBase = normalizeCidrBase(match[1]);
|
|
392
|
+
|
|
393
|
+
if (!parsedBase) {
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
const { normalized, wasIPv6 } = parsedBase;
|
|
398
|
+
|
|
399
|
+
if (wasIPv6 && normalized.indexOf(':') === -1) {
|
|
400
|
+
if (prefix < 96) {
|
|
401
|
+
return null;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
prefix -= 96;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
const bytes = ipToBytes(normalized);
|
|
408
|
+
|
|
409
|
+
if (!bytes || prefix > bytes.length * 8) {
|
|
410
|
+
return null;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return { bytes, prefix };
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
const isInSubnet = (addressBytes, networkBytes, prefix) => {
|
|
417
|
+
const fullBytes = prefix >> 3;
|
|
418
|
+
|
|
419
|
+
for (let i = 0; i < fullBytes; i++) {
|
|
420
|
+
if (addressBytes[i] !== networkBytes[i]) {
|
|
421
|
+
return false;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
const remainingBits = prefix & 7;
|
|
426
|
+
|
|
427
|
+
if (remainingBits) {
|
|
428
|
+
const mask = (0xff << (8 - remainingBits)) & 0xff;
|
|
429
|
+
|
|
430
|
+
if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
|
|
431
|
+
return false;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return true;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
export default function shouldBypassProxy(location) {
|
|
439
|
+
let parsed;
|
|
440
|
+
|
|
441
|
+
try {
|
|
442
|
+
parsed = new URL(location);
|
|
443
|
+
} catch (_err) {
|
|
444
|
+
return false;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
const noProxy = (process.env.no_proxy || process.env.NO_PROXY || '').toLowerCase();
|
|
448
|
+
|
|
449
|
+
if (!noProxy) {
|
|
450
|
+
return false;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
if (noProxy === '*') {
|
|
454
|
+
return true;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
const port =
|
|
458
|
+
Number.parseInt(parsed.port, 10) || DEFAULT_PORTS[parsed.protocol.split(':', 1)[0]] || 0;
|
|
459
|
+
|
|
460
|
+
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
461
|
+
const hostnameBytes = ipToBytes(hostname);
|
|
462
|
+
|
|
463
|
+
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
464
|
+
if (!entry) {
|
|
465
|
+
return false;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
if (entry === '*') {
|
|
469
|
+
return true;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
const cidr = parseCidrEntry(entry);
|
|
473
|
+
|
|
474
|
+
if (cidr !== undefined) {
|
|
475
|
+
return (
|
|
476
|
+
cidr !== null &&
|
|
477
|
+
!!hostnameBytes &&
|
|
478
|
+
hostnameBytes.length === cidr.bytes.length &&
|
|
479
|
+
isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix)
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
484
|
+
|
|
485
|
+
entryHost = normalizeNoProxyHost(entryHost);
|
|
486
|
+
|
|
487
|
+
if (!entryHost) {
|
|
488
|
+
return false;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
if (entryPort && entryPort !== port) {
|
|
492
|
+
return false;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
if (entryHost.charAt(0) === '*') {
|
|
496
|
+
entryHost = entryHost.slice(1);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
if (entryHost.charAt(0) === '.') {
|
|
500
|
+
return hostname.endsWith(entryHost);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
return hostname === entryHost || (isLoopback(hostname) && isLoopback(entryHost));
|
|
504
|
+
});
|
|
505
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Calculate data maxRate
|
|
5
|
+
* @param {Number} [samplesCount= 10]
|
|
6
|
+
* @param {Number} [min= 1000]
|
|
7
|
+
* @returns {Function}
|
|
8
|
+
*/
|
|
9
|
+
function speedometer(samplesCount, min) {
|
|
10
|
+
samplesCount = samplesCount || 10;
|
|
11
|
+
const bytes = new Array(samplesCount);
|
|
12
|
+
const timestamps = new Array(samplesCount);
|
|
13
|
+
let head = 0;
|
|
14
|
+
let tail = 0;
|
|
15
|
+
let firstSampleTS;
|
|
16
|
+
|
|
17
|
+
min = min !== undefined ? min : 1000;
|
|
18
|
+
|
|
19
|
+
return function push(chunkLength) {
|
|
20
|
+
const now = Date.now();
|
|
21
|
+
|
|
22
|
+
const startedAt = timestamps[tail];
|
|
23
|
+
|
|
24
|
+
if (!firstSampleTS) {
|
|
25
|
+
firstSampleTS = now;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
bytes[head] = chunkLength;
|
|
29
|
+
timestamps[head] = now;
|
|
30
|
+
|
|
31
|
+
let i = tail;
|
|
32
|
+
let bytesCount = 0;
|
|
33
|
+
|
|
34
|
+
while (i !== head) {
|
|
35
|
+
bytesCount += bytes[i++];
|
|
36
|
+
i = i % samplesCount;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
head = (head + 1) % samplesCount;
|
|
40
|
+
|
|
41
|
+
if (head === tail) {
|
|
42
|
+
tail = (tail + 1) % samplesCount;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (now - firstSampleTS < min) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const passed = startedAt && now - startedAt;
|
|
50
|
+
|
|
51
|
+
return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default speedometer;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
5
|
+
*
|
|
6
|
+
* Common use case would be to use `Function.prototype.apply`.
|
|
7
|
+
*
|
|
8
|
+
* ```js
|
|
9
|
+
* function f(x, y, z) {}
|
|
10
|
+
* const args = [1, 2, 3];
|
|
11
|
+
* f.apply(null, args);
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* With `spread` this example can be re-written.
|
|
15
|
+
*
|
|
16
|
+
* ```js
|
|
17
|
+
* spread(function(x, y, z) {})([1, 2, 3]);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param {Function} callback
|
|
21
|
+
*
|
|
22
|
+
* @returns {Function}
|
|
23
|
+
*/
|
|
24
|
+
export default function spread(callback) {
|
|
25
|
+
return function wrap(arr) {
|
|
26
|
+
return callback.apply(null, arr);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Throttle decorator
|
|
3
|
+
* @param {Function} fn
|
|
4
|
+
* @param {Number} freq
|
|
5
|
+
* @return {Array<Function>}
|
|
6
|
+
*/
|
|
7
|
+
function throttle(fn, freq) {
|
|
8
|
+
let timestamp = 0;
|
|
9
|
+
let threshold = 1000 / freq;
|
|
10
|
+
let lastArgs;
|
|
11
|
+
let timer;
|
|
12
|
+
|
|
13
|
+
const invoke = (args, now = Date.now()) => {
|
|
14
|
+
timestamp = now;
|
|
15
|
+
lastArgs = null;
|
|
16
|
+
if (timer) {
|
|
17
|
+
clearTimeout(timer);
|
|
18
|
+
timer = null;
|
|
19
|
+
}
|
|
20
|
+
fn(...args);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const throttled = (...args) => {
|
|
24
|
+
const now = Date.now();
|
|
25
|
+
const passed = now - timestamp;
|
|
26
|
+
if (passed >= threshold) {
|
|
27
|
+
invoke(args, now);
|
|
28
|
+
} else {
|
|
29
|
+
lastArgs = args;
|
|
30
|
+
if (!timer) {
|
|
31
|
+
timer = setTimeout(() => {
|
|
32
|
+
timer = null;
|
|
33
|
+
invoke(lastArgs);
|
|
34
|
+
}, threshold - passed);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
40
|
+
const flushWith = (...args) => invoke(args);
|
|
41
|
+
|
|
42
|
+
return [throttled, flush, flushWith];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default throttle;
|