pixivflow 2.16.0 → 2.17.0
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/dist/auth/PixivAuth.d.ts +12 -0
- package/dist/auth/PixivAuth.d.ts.map +1 -1
- package/dist/auth/PixivAuth.js +26 -0
- package/dist/auth/PixivAuth.js.map +1 -1
- package/dist/batch/executionResult.d.ts +85 -0
- package/dist/batch/executionResult.d.ts.map +1 -0
- package/dist/batch/executionResult.js +102 -0
- package/dist/batch/executionResult.js.map +1 -0
- package/dist/batch/runDiagnostics.d.ts +48 -0
- package/dist/batch/runDiagnostics.d.ts.map +1 -0
- package/dist/batch/runDiagnostics.js +103 -0
- package/dist/batch/runDiagnostics.js.map +1 -0
- package/dist/commands/Command.d.ts +5 -0
- package/dist/commands/Command.d.ts.map +1 -1
- package/dist/commands/Command.js +7 -0
- package/dist/commands/Command.js.map +1 -1
- package/dist/commands/ExecuteSlotCommand.d.ts +37 -0
- package/dist/commands/ExecuteSlotCommand.d.ts.map +1 -0
- package/dist/commands/ExecuteSlotCommand.js +267 -0
- package/dist/commands/ExecuteSlotCommand.js.map +1 -0
- package/dist/commands/index.d.ts +2 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +4 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/scheduler-runtime.d.ts +37 -1
- package/dist/commands/scheduler-runtime.d.ts.map +1 -1
- package/dist/commands/scheduler-runtime.js +52 -19
- package/dist/commands/scheduler-runtime.js.map +1 -1
- package/dist/commands/types.d.ts +6 -0
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/config/types.d.ts +33 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/validation.d.ts +14 -1
- package/dist/config/validation.d.ts.map +1 -1
- package/dist/config/validation.js +109 -33
- package/dist/config/validation.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/delivery/DeliveryDispatcher.d.ts.map +1 -1
- package/dist/delivery/DeliveryDispatcher.js +7 -0
- package/dist/delivery/DeliveryDispatcher.js.map +1 -1
- package/dist/delivery/HttpMultipartDelivery.d.ts +12 -0
- package/dist/delivery/HttpMultipartDelivery.d.ts.map +1 -1
- package/dist/delivery/HttpMultipartDelivery.js +89 -70
- package/dist/delivery/HttpMultipartDelivery.js.map +1 -1
- package/dist/delivery/TelegramReviewDelivery.d.ts +49 -0
- package/dist/delivery/TelegramReviewDelivery.d.ts.map +1 -0
- package/dist/delivery/TelegramReviewDelivery.js +307 -0
- package/dist/delivery/TelegramReviewDelivery.js.map +1 -0
- package/dist/download/DownloadManager.d.ts +10 -0
- package/dist/download/DownloadManager.d.ts.map +1 -1
- package/dist/download/DownloadManager.js +21 -0
- package/dist/download/DownloadManager.js.map +1 -1
- package/dist/download/plan/DownloadPlanner.d.ts +10 -0
- package/dist/download/plan/DownloadPlanner.d.ts.map +1 -1
- package/dist/download/plan/DownloadPlanner.js +19 -0
- package/dist/download/plan/DownloadPlanner.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/notification/NotificationPolicy.d.ts.map +1 -1
- package/dist/notification/NotificationPolicy.js +4 -1
- package/dist/notification/NotificationPolicy.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/pixiv-token-getter-adapter.d.ts +27 -7
- package/dist/pixiv-token-getter-adapter.d.ts.map +1 -1
- package/dist/pixiv-token-getter-adapter.js +44 -27
- package/dist/pixiv-token-getter-adapter.js.map +1 -1
- package/dist/utils/concurrency.d.ts.map +1 -1
- package/dist/utils/concurrency.js +9 -2
- package/dist/utils/concurrency.js.map +1 -1
- package/dist/utils/config-validator-unified.d.ts.map +1 -1
- package/dist/utils/config-validator-unified.js +15 -1
- package/dist/utils/config-validator-unified.js.map +1 -1
- package/dist/utils/token-maintenance.d.ts +0 -4
- package/dist/utils/token-maintenance.d.ts.map +1 -1
- package/dist/utils/token-maintenance.js +5 -25
- package/dist/utils/token-maintenance.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/webui/package.json +1 -1
- package/node_modules/@redtidev/pixiv-client/LICENSE +21 -0
- package/node_modules/@redtidev/pixiv-client/README.md +103 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/exports.d.ts +6 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/exports.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/exports.js +14 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/exports.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/illustrations.d.ts +30 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/illustrations.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/illustrations.js +137 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/illustrations.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/media.d.ts +16 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/media.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/media.js +25 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/media.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/novels.d.ts +43 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/novels.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/novels.js +250 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/novels.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/options.d.ts +42 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/options.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/options.js +7 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/options.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/tags.d.ts +9 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/tags.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/tags.js +22 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/tags.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/users.d.ts +17 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/users.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/users.js +23 -0
- package/node_modules/@redtidev/pixiv-client/dist/app-api/users.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/auth/types.d.ts +25 -0
- package/node_modules/@redtidev/pixiv-client/dist/auth/types.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/auth/types.js +24 -0
- package/node_modules/@redtidev/pixiv-client/dist/auth/types.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/client.d.ts +42 -0
- package/node_modules/@redtidev/pixiv-client/dist/client.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/client.js +86 -0
- package/node_modules/@redtidev/pixiv-client/dist/client.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/errors/errors.d.ts +117 -0
- package/node_modules/@redtidev/pixiv-client/dist/errors/errors.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/errors/errors.js +169 -0
- package/node_modules/@redtidev/pixiv-client/dist/errors/errors.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/index.d.ts +25 -0
- package/node_modules/@redtidev/pixiv-client/dist/index.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/index.js +50 -0
- package/node_modules/@redtidev/pixiv-client/dist/index.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/logger.d.ts +13 -0
- package/node_modules/@redtidev/pixiv-client/dist/logger.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/logger.js +10 -0
- package/node_modules/@redtidev/pixiv-client/dist/logger.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/models/index.d.ts +112 -0
- package/node_modules/@redtidev/pixiv-client/dist/models/index.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/models/index.js +8 -0
- package/node_modules/@redtidev/pixiv-client/dist/models/index.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/pagination.d.ts +22 -0
- package/node_modules/@redtidev/pixiv-client/dist/pagination.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/pagination.js +41 -0
- package/node_modules/@redtidev/pixiv-client/dist/pagination.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/rate-limit/RateLimitGate.d.ts +95 -0
- package/node_modules/@redtidev/pixiv-client/dist/rate-limit/RateLimitGate.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/rate-limit/RateLimitGate.js +344 -0
- package/node_modules/@redtidev/pixiv-client/dist/rate-limit/RateLimitGate.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/transport/transport.d.ts +65 -0
- package/node_modules/@redtidev/pixiv-client/dist/transport/transport.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/transport/transport.js +410 -0
- package/node_modules/@redtidev/pixiv-client/dist/transport/transport.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/types.d.ts +186 -0
- package/node_modules/@redtidev/pixiv-client/dist/types.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/types.js +3 -0
- package/node_modules/@redtidev/pixiv-client/dist/types.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/web-api/types.d.ts +19 -0
- package/node_modules/@redtidev/pixiv-client/dist/web-api/types.d.ts.map +1 -0
- package/node_modules/@redtidev/pixiv-client/dist/web-api/types.js +3 -0
- package/node_modules/@redtidev/pixiv-client/dist/web-api/types.js.map +1 -0
- package/node_modules/@redtidev/pixiv-client/package.json +55 -0
- package/node_modules/@redtidev/pixiv-client/src/__tests__/independence.test.ts +75 -0
- package/node_modules/@redtidev/pixiv-client/src/__tests__/integration.test.ts +268 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/__tests__/services.test.ts +199 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/exports.ts +5 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/illustrations.ts +144 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/media.ts +20 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/novels.ts +269 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/options.ts +73 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/tags.ts +21 -0
- package/node_modules/@redtidev/pixiv-client/src/app-api/users.ts +22 -0
- package/node_modules/@redtidev/pixiv-client/src/auth/types.ts +33 -0
- package/node_modules/@redtidev/pixiv-client/src/client.ts +105 -0
- package/node_modules/@redtidev/pixiv-client/src/errors/errors.ts +180 -0
- package/node_modules/@redtidev/pixiv-client/src/index.ts +91 -0
- package/node_modules/@redtidev/pixiv-client/src/logger.ts +18 -0
- package/node_modules/@redtidev/pixiv-client/src/models/index.ts +117 -0
- package/node_modules/@redtidev/pixiv-client/src/pagination.ts +46 -0
- package/node_modules/@redtidev/pixiv-client/src/rate-limit/RateLimitGate.ts +365 -0
- package/node_modules/@redtidev/pixiv-client/src/rate-limit/__tests__/RateLimitGate.test.ts +258 -0
- package/node_modules/@redtidev/pixiv-client/src/transport/__tests__/transport.test.ts +282 -0
- package/node_modules/@redtidev/pixiv-client/src/transport/transport.ts +500 -0
- package/node_modules/@redtidev/pixiv-client/src/types.ts +168 -0
- package/node_modules/@redtidev/pixiv-client/src/web-api/types.ts +19 -0
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/README.md +69 -0
- package/node_modules/agent-base/dist/helpers.d.ts +15 -0
- package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/node_modules/agent-base/dist/index.d.ts +41 -0
- package/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/agent-base/dist/index.js.map +1 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +63 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/axios/CHANGELOG.md +1934 -0
- package/node_modules/axios/LICENSE +7 -0
- package/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/axios/README.md +2851 -0
- package/node_modules/axios/dist/axios.js +5807 -0
- package/node_modules/axios/dist/axios.min.js +5 -0
- package/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/axios/dist/browser/axios.cjs +5829 -0
- package/node_modules/axios/dist/esm/axios.js +5850 -0
- package/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/axios/dist/node/axios.cjs +6808 -0
- package/node_modules/axios/index.d.cts +766 -0
- package/node_modules/axios/index.d.ts +787 -0
- package/node_modules/axios/index.js +45 -0
- package/node_modules/axios/lib/adapters/README.md +36 -0
- package/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/axios/lib/adapters/fetch.js +696 -0
- package/node_modules/axios/lib/adapters/http.js +1490 -0
- package/node_modules/axios/lib/adapters/xhr.js +277 -0
- package/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/axios/lib/core/Axios.js +306 -0
- package/node_modules/axios/lib/core/AxiosError.js +219 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +171 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/buildFullPath.js +76 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +95 -0
- package/node_modules/axios/lib/core/mergeConfig.js +174 -0
- package/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/axios/lib/defaults/index.js +178 -0
- package/node_modules/axios/lib/defaults/transitional.js +10 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/axios/lib/helpers/bind.js +14 -0
- package/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/node_modules/axios/lib/helpers/cookies.js +64 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
- package/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
- package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
- package/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/node_modules/axios/lib/helpers/toFormData.js +279 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/axios/lib/helpers/validator.js +112 -0
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/node/index.js +37 -0
- package/node_modules/axios/lib/utils.js +1150 -0
- package/node_modules/axios/node_modules/agent-base/README.md +145 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.d.ts +78 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.js +203 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.js.map +1 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- package/node_modules/axios/node_modules/agent-base/package.json +64 -0
- package/node_modules/axios/node_modules/agent-base/src/index.ts +345 -0
- package/node_modules/axios/node_modules/agent-base/src/promisify.ts +33 -0
- package/node_modules/axios/node_modules/debug/LICENSE +20 -0
- package/node_modules/axios/node_modules/debug/README.md +481 -0
- package/node_modules/axios/node_modules/debug/package.json +64 -0
- package/node_modules/axios/node_modules/debug/src/browser.js +272 -0
- package/node_modules/axios/node_modules/debug/src/common.js +292 -0
- package/node_modules/axios/node_modules/debug/src/index.js +10 -0
- package/node_modules/axios/node_modules/debug/src/node.js +263 -0
- package/node_modules/axios/node_modules/https-proxy-agent/README.md +137 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/package.json +56 -0
- package/node_modules/axios/node_modules/ms/index.js +162 -0
- package/node_modules/axios/node_modules/ms/license.md +21 -0
- package/node_modules/axios/node_modules/ms/package.json +38 -0
- package/node_modules/axios/node_modules/ms/readme.md +59 -0
- package/node_modules/axios/package.json +203 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +25 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +27 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +157 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +709 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/form-data/CHANGELOG.md +686 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md +355 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +4 -0
- package/node_modules/form-data/lib/form_data.js +506 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +82 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +58 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/README.md +308 -0
- package/node_modules/ip-address/dist/address-error.d.ts +15 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/address-error.js.map +1 -0
- package/node_modules/ip-address/dist/common.d.ts +69 -0
- package/node_modules/ip-address/dist/common.js +142 -0
- package/node_modules/ip-address/dist/common.js.map +1 -0
- package/node_modules/ip-address/dist/ip-address.d.ts +7 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ip-address.js.map +1 -0
- package/node_modules/ip-address/dist/ipv4.d.ts +340 -0
- package/node_modules/ip-address/dist/ipv4.js +580 -0
- package/node_modules/ip-address/dist/ipv4.js.map +1 -0
- package/node_modules/ip-address/dist/ipv6.d.ts +630 -0
- package/node_modules/ip-address/dist/ipv6.js +1443 -0
- package/node_modules/ip-address/dist/ipv6.js.map +1 -0
- package/node_modules/ip-address/dist/v4/constants.d.ts +16 -0
- package/node_modules/ip-address/dist/v4/constants.js +51 -0
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/constants.d.ts +58 -0
- package/node_modules/ip-address/dist/v6/constants.js +128 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
- package/node_modules/ip-address/dist/v6/helpers.js +54 -0
- package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +5 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
- package/node_modules/ip-address/package.json +90 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/proxy-from-env/LICENSE +20 -0
- package/node_modules/proxy-from-env/README.md +163 -0
- package/node_modules/proxy-from-env/index.cjs +105 -0
- package/node_modules/proxy-from-env/index.js +103 -0
- package/node_modules/proxy-from-env/package.json +43 -0
- package/node_modules/smart-buffer/.prettierrc.yaml +5 -0
- package/node_modules/smart-buffer/.travis.yml +13 -0
- package/node_modules/smart-buffer/LICENSE +20 -0
- package/node_modules/smart-buffer/README.md +633 -0
- package/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/node_modules/smart-buffer/build/smartbuffer.js.map +1 -0
- package/node_modules/smart-buffer/build/utils.js +108 -0
- package/node_modules/smart-buffer/build/utils.js.map +1 -0
- package/node_modules/smart-buffer/docs/CHANGELOG.md +70 -0
- package/node_modules/smart-buffer/docs/README_v3.md +367 -0
- package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
- package/node_modules/smart-buffer/package.json +79 -0
- package/node_modules/smart-buffer/typings/smartbuffer.d.ts +755 -0
- package/node_modules/smart-buffer/typings/utils.d.ts +66 -0
- package/node_modules/socks/.eslintrc.cjs +11 -0
- package/node_modules/socks/.prettierrc.yaml +7 -0
- package/node_modules/socks/LICENSE +20 -0
- package/node_modules/socks/README.md +686 -0
- package/node_modules/socks/build/client/socksclient.js +793 -0
- package/node_modules/socks/build/client/socksclient.js.map +1 -0
- package/node_modules/socks/build/common/constants.js +108 -0
- package/node_modules/socks/build/common/constants.js.map +1 -0
- package/node_modules/socks/build/common/helpers.js +167 -0
- package/node_modules/socks/build/common/helpers.js.map +1 -0
- package/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/node_modules/socks/build/common/receivebuffer.js.map +1 -0
- package/node_modules/socks/build/common/util.js +25 -0
- package/node_modules/socks/build/common/util.js.map +1 -0
- package/node_modules/socks/build/index.js +18 -0
- package/node_modules/socks/build/index.js.map +1 -0
- package/node_modules/socks/docs/examples/index.md +17 -0
- package/node_modules/socks/docs/examples/javascript/associateExample.md +90 -0
- package/node_modules/socks/docs/examples/javascript/bindExample.md +83 -0
- package/node_modules/socks/docs/examples/javascript/connectExample.md +258 -0
- package/node_modules/socks/docs/examples/typescript/associateExample.md +93 -0
- package/node_modules/socks/docs/examples/typescript/bindExample.md +86 -0
- package/node_modules/socks/docs/examples/typescript/connectExample.md +265 -0
- package/node_modules/socks/docs/index.md +5 -0
- package/node_modules/socks/docs/migratingFromV1.md +86 -0
- package/node_modules/socks/package.json +58 -0
- package/node_modules/socks/typings/client/socksclient.d.ts +162 -0
- package/node_modules/socks/typings/common/constants.d.ts +151 -0
- package/node_modules/socks/typings/common/helpers.d.ts +17 -0
- package/node_modules/socks/typings/common/receivebuffer.d.ts +12 -0
- package/node_modules/socks/typings/common/util.d.ts +14 -0
- package/node_modules/socks/typings/index.d.ts +1 -0
- package/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/node_modules/socks-proxy-agent/README.md +50 -0
- package/node_modules/socks-proxy-agent/dist/index.d.ts +27 -0
- package/node_modules/socks-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/node_modules/socks-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/socks-proxy-agent/node_modules/debug/LICENSE +20 -0
- package/node_modules/socks-proxy-agent/node_modules/debug/README.md +481 -0
- package/node_modules/socks-proxy-agent/node_modules/debug/package.json +64 -0
- package/node_modules/socks-proxy-agent/node_modules/debug/src/browser.js +272 -0
- package/node_modules/socks-proxy-agent/node_modules/debug/src/common.js +292 -0
- package/node_modules/socks-proxy-agent/node_modules/debug/src/index.js +10 -0
- package/node_modules/socks-proxy-agent/node_modules/debug/src/node.js +263 -0
- package/node_modules/socks-proxy-agent/node_modules/ms/index.js +162 -0
- package/node_modules/socks-proxy-agent/node_modules/ms/license.md +21 -0
- package/node_modules/socks-proxy-agent/node_modules/ms/package.json +38 -0
- package/node_modules/socks-proxy-agent/node_modules/ms/readme.md +59 -0
- package/node_modules/socks-proxy-agent/package.json +142 -0
- package/node_modules/undici/LICENSE +21 -0
- package/node_modules/undici/README.md +473 -0
- package/node_modules/undici/docs/docs/api/Agent.md +80 -0
- package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/node_modules/undici/docs/docs/api/Client.md +277 -0
- package/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
- package/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +204 -0
- package/node_modules/undici/docs/docs/api/DispatchInterceptor.md +60 -0
- package/node_modules/undici/docs/docs/api/Dispatcher.md +1347 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +162 -0
- package/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +52 -0
- package/node_modules/undici/docs/docs/api/MockAgent.md +540 -0
- package/node_modules/undici/docs/docs/api/MockClient.md +77 -0
- package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/node_modules/undici/docs/docs/api/MockPool.md +547 -0
- package/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/node_modules/undici/docs/docs/api/ProxyAgent.md +131 -0
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +96 -0
- package/node_modules/undici/docs/docs/api/RetryAgent.md +45 -0
- package/node_modules/undici/docs/docs/api/RetryHandler.md +117 -0
- package/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/node_modules/undici/docs/docs/api/WebSocket.md +51 -0
- package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/node_modules/undici/docs/docs/best-practices/mocking-request.md +136 -0
- package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/node_modules/undici/docs/docs/best-practices/writing-tests.md +20 -0
- package/node_modules/undici/index-fetch.js +35 -0
- package/node_modules/undici/index.d.ts +3 -0
- package/node_modules/undici/index.js +169 -0
- package/node_modules/undici/lib/api/abort-signal.js +57 -0
- package/node_modules/undici/lib/api/api-connect.js +108 -0
- package/node_modules/undici/lib/api/api-pipeline.js +251 -0
- package/node_modules/undici/lib/api/api-request.js +214 -0
- package/node_modules/undici/lib/api/api-stream.js +220 -0
- package/node_modules/undici/lib/api/api-upgrade.js +108 -0
- package/node_modules/undici/lib/api/index.js +7 -0
- package/node_modules/undici/lib/api/readable.js +385 -0
- package/node_modules/undici/lib/api/util.js +93 -0
- package/node_modules/undici/lib/core/connect.js +240 -0
- package/node_modules/undici/lib/core/constants.js +118 -0
- package/node_modules/undici/lib/core/diagnostics.js +202 -0
- package/node_modules/undici/lib/core/errors.js +425 -0
- package/node_modules/undici/lib/core/request.js +416 -0
- package/node_modules/undici/lib/core/symbols.js +67 -0
- package/node_modules/undici/lib/core/tree.js +152 -0
- package/node_modules/undici/lib/core/util.js +719 -0
- package/node_modules/undici/lib/dispatcher/agent.js +129 -0
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
- package/node_modules/undici/lib/dispatcher/client-h1.js +1496 -0
- package/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
- package/node_modules/undici/lib/dispatcher/client.js +623 -0
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
- package/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
- package/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
- package/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
- package/node_modules/undici/lib/dispatcher/pool.js +107 -0
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
- package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/node_modules/undici/lib/global.js +32 -0
- package/node_modules/undici/lib/handler/decorator-handler.js +44 -0
- package/node_modules/undici/lib/handler/redirect-handler.js +232 -0
- package/node_modules/undici/lib/handler/retry-handler.js +408 -0
- package/node_modules/undici/lib/interceptor/dns.js +375 -0
- package/node_modules/undici/lib/interceptor/dump.js +123 -0
- package/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
- package/node_modules/undici/lib/interceptor/redirect.js +24 -0
- package/node_modules/undici/lib/interceptor/response-error.js +86 -0
- package/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/node_modules/undici/lib/llhttp/constants.js +278 -0
- package/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/utils.js +15 -0
- package/node_modules/undici/lib/mock/mock-agent.js +160 -0
- package/node_modules/undici/lib/mock/mock-client.js +59 -0
- package/node_modules/undici/lib/mock/mock-errors.js +28 -0
- package/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
- package/node_modules/undici/lib/mock/mock-pool.js +59 -0
- package/node_modules/undici/lib/mock/mock-symbols.js +23 -0
- package/node_modules/undici/lib/mock/mock-utils.js +367 -0
- package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/node_modules/undici/lib/mock/pluralizer.js +29 -0
- package/node_modules/undici/lib/util/timers.js +423 -0
- package/node_modules/undici/lib/web/cache/cache.js +859 -0
- package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/node_modules/undici/lib/web/cache/symbols.js +5 -0
- package/node_modules/undici/lib/web/cache/util.js +45 -0
- package/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/node_modules/undici/lib/web/cookies/index.js +184 -0
- package/node_modules/undici/lib/web/cookies/parse.js +310 -0
- package/node_modules/undici/lib/web/cookies/util.js +352 -0
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
- package/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
- package/node_modules/undici/lib/web/eventsource/util.js +37 -0
- package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/node_modules/undici/lib/web/fetch/body.js +529 -0
- package/node_modules/undici/lib/web/fetch/constants.js +124 -0
- package/node_modules/undici/lib/web/fetch/data-url.js +744 -0
- package/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
- package/node_modules/undici/lib/web/fetch/file.js +126 -0
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
- package/node_modules/undici/lib/web/fetch/formdata.js +252 -0
- package/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/node_modules/undici/lib/web/fetch/headers.js +687 -0
- package/node_modules/undici/lib/web/fetch/index.js +2272 -0
- package/node_modules/undici/lib/web/fetch/request.js +1037 -0
- package/node_modules/undici/lib/web/fetch/response.js +610 -0
- package/node_modules/undici/lib/web/fetch/symbols.js +9 -0
- package/node_modules/undici/lib/web/fetch/util.js +1632 -0
- package/node_modules/undici/lib/web/fetch/webidl.js +695 -0
- package/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
- package/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
- package/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
- package/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
- package/node_modules/undici/lib/web/fileapi/util.js +391 -0
- package/node_modules/undici/lib/web/websocket/connection.js +371 -0
- package/node_modules/undici/lib/web/websocket/constants.js +66 -0
- package/node_modules/undici/lib/web/websocket/events.js +329 -0
- package/node_modules/undici/lib/web/websocket/frame.js +96 -0
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +513 -0
- package/node_modules/undici/lib/web/websocket/sender.js +104 -0
- package/node_modules/undici/lib/web/websocket/symbols.js +12 -0
- package/node_modules/undici/lib/web/websocket/util.js +322 -0
- package/node_modules/undici/lib/web/websocket/websocket.js +595 -0
- package/node_modules/undici/package.json +160 -0
- package/node_modules/undici/scripts/strip-comments.js +8 -0
- package/node_modules/undici/types/README.md +6 -0
- package/node_modules/undici/types/agent.d.ts +31 -0
- package/node_modules/undici/types/api.d.ts +43 -0
- package/node_modules/undici/types/balanced-pool.d.ts +29 -0
- package/node_modules/undici/types/cache.d.ts +36 -0
- package/node_modules/undici/types/client.d.ts +125 -0
- package/node_modules/undici/types/connector.d.ts +34 -0
- package/node_modules/undici/types/content-type.d.ts +21 -0
- package/node_modules/undici/types/cookies.d.ts +28 -0
- package/node_modules/undici/types/diagnostics-channel.d.ts +66 -0
- package/node_modules/undici/types/dispatcher.d.ts +256 -0
- package/node_modules/undici/types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/undici/types/errors.d.ts +155 -0
- package/node_modules/undici/types/eventsource.d.ts +61 -0
- package/node_modules/undici/types/fetch.d.ts +209 -0
- package/node_modules/undici/types/file.d.ts +39 -0
- package/node_modules/undici/types/filereader.d.ts +54 -0
- package/node_modules/undici/types/formdata.d.ts +108 -0
- package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici/types/global-origin.d.ts +7 -0
- package/node_modules/undici/types/handlers.d.ts +15 -0
- package/node_modules/undici/types/header.d.ts +4 -0
- package/node_modules/undici/types/index.d.ts +71 -0
- package/node_modules/undici/types/interceptors.d.ts +32 -0
- package/node_modules/undici/types/mock-agent.d.ts +50 -0
- package/node_modules/undici/types/mock-client.d.ts +25 -0
- package/node_modules/undici/types/mock-errors.d.ts +12 -0
- package/node_modules/undici/types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici/types/mock-pool.d.ts +25 -0
- package/node_modules/undici/types/patch.d.ts +33 -0
- package/node_modules/undici/types/pool-stats.d.ts +19 -0
- package/node_modules/undici/types/pool.d.ts +39 -0
- package/node_modules/undici/types/proxy-agent.d.ts +29 -0
- package/node_modules/undici/types/readable.d.ts +65 -0
- package/node_modules/undici/types/retry-agent.d.ts +8 -0
- package/node_modules/undici/types/retry-handler.d.ts +116 -0
- package/node_modules/undici/types/util.d.ts +18 -0
- package/node_modules/undici/types/webidl.d.ts +228 -0
- package/node_modules/undici/types/websocket.d.ts +150 -0
- package/package.json +5 -2
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
// TypeScript Version: 4.7
|
|
2
|
+
type StringLiteralsOrString<Literals extends string> = Literals | (string & {});
|
|
3
|
+
|
|
4
|
+
export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
|
5
|
+
|
|
6
|
+
export type AxiosHeaderParameters = Record<string, string>;
|
|
7
|
+
|
|
8
|
+
export interface RawAxiosHeaders {
|
|
9
|
+
[key: string]: AxiosHeaderValue;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type MethodsHeaders = Partial<
|
|
13
|
+
{
|
|
14
|
+
[Key in Method as Lowercase<Key>]: AxiosHeaders;
|
|
15
|
+
} & { common: AxiosHeaders }
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
type AxiosHeaderMatcher =
|
|
19
|
+
| string
|
|
20
|
+
| RegExp
|
|
21
|
+
| ((this: AxiosHeaders, value: string, name: string) => boolean);
|
|
22
|
+
|
|
23
|
+
type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any;
|
|
24
|
+
|
|
25
|
+
export class AxiosHeaders {
|
|
26
|
+
constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
|
|
27
|
+
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
|
|
30
|
+
set(
|
|
31
|
+
headerName?: string,
|
|
32
|
+
value?: AxiosHeaderValue,
|
|
33
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
34
|
+
): AxiosHeaders;
|
|
35
|
+
set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
|
|
36
|
+
set(headers?: Iterable<[string, AxiosHeaderValue]>, rewrite?: boolean): AxiosHeaders;
|
|
37
|
+
|
|
38
|
+
get(headerName: string, parser: typeof AxiosHeaders.parseParameters): AxiosHeaderParameters;
|
|
39
|
+
get(headerName: string, parser: RegExp): RegExpExecArray | null;
|
|
40
|
+
get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
|
|
41
|
+
|
|
42
|
+
has(header: string, matcher?: AxiosHeaderMatcher): boolean;
|
|
43
|
+
|
|
44
|
+
delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
|
|
45
|
+
|
|
46
|
+
clear(matcher?: AxiosHeaderMatcher): boolean;
|
|
47
|
+
|
|
48
|
+
normalize(format: boolean): AxiosHeaders;
|
|
49
|
+
|
|
50
|
+
concat(
|
|
51
|
+
...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
|
|
52
|
+
): AxiosHeaders;
|
|
53
|
+
|
|
54
|
+
toJSON(asStrings: true): Record<string, string>;
|
|
55
|
+
toJSON(asStrings?: false): Record<string, string | string[]>;
|
|
56
|
+
toJSON(asStrings?: boolean): Record<string, string | string[]>;
|
|
57
|
+
|
|
58
|
+
static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
|
|
59
|
+
|
|
60
|
+
static parseParameters(value: AxiosHeaderValue): AxiosHeaderParameters;
|
|
61
|
+
|
|
62
|
+
static accessor(header: string | string[]): AxiosHeaders;
|
|
63
|
+
|
|
64
|
+
static concat(
|
|
65
|
+
...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
|
|
66
|
+
): AxiosHeaders;
|
|
67
|
+
|
|
68
|
+
setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
69
|
+
getContentType(parser?: RegExp): RegExpExecArray | null;
|
|
70
|
+
getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
71
|
+
hasContentType(matcher?: AxiosHeaderMatcher): boolean;
|
|
72
|
+
|
|
73
|
+
setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
74
|
+
getContentLength(parser?: RegExp): RegExpExecArray | null;
|
|
75
|
+
getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
76
|
+
hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
|
|
77
|
+
|
|
78
|
+
setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
79
|
+
getAccept(parser?: RegExp): RegExpExecArray | null;
|
|
80
|
+
getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
81
|
+
hasAccept(matcher?: AxiosHeaderMatcher): boolean;
|
|
82
|
+
|
|
83
|
+
setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
84
|
+
getUserAgent(parser?: RegExp): RegExpExecArray | null;
|
|
85
|
+
getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
86
|
+
hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
|
|
87
|
+
|
|
88
|
+
setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
89
|
+
getContentEncoding(parser?: RegExp): RegExpExecArray | null;
|
|
90
|
+
getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
91
|
+
hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
|
|
92
|
+
|
|
93
|
+
setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
94
|
+
getAuthorization(parser?: RegExp): RegExpExecArray | null;
|
|
95
|
+
getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
96
|
+
hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
|
|
97
|
+
|
|
98
|
+
getSetCookie(): string[];
|
|
99
|
+
|
|
100
|
+
toString(): string;
|
|
101
|
+
|
|
102
|
+
[Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type CommonRequestHeadersList =
|
|
106
|
+
| 'Accept'
|
|
107
|
+
| 'Content-Length'
|
|
108
|
+
| 'User-Agent'
|
|
109
|
+
| 'Content-Encoding'
|
|
110
|
+
| 'Authorization'
|
|
111
|
+
| 'Location';
|
|
112
|
+
|
|
113
|
+
type ContentType =
|
|
114
|
+
| AxiosHeaderValue
|
|
115
|
+
| 'text/html'
|
|
116
|
+
| 'text/plain'
|
|
117
|
+
| 'multipart/form-data'
|
|
118
|
+
| 'application/json'
|
|
119
|
+
| 'application/x-www-form-urlencoded'
|
|
120
|
+
| 'application/octet-stream';
|
|
121
|
+
|
|
122
|
+
export type RawAxiosRequestHeaders = Partial<
|
|
123
|
+
RawAxiosHeaders & {
|
|
124
|
+
[Key in CommonRequestHeadersList]: AxiosHeaderValue;
|
|
125
|
+
} & {
|
|
126
|
+
'Content-Type': ContentType;
|
|
127
|
+
}
|
|
128
|
+
>;
|
|
129
|
+
|
|
130
|
+
export type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
|
|
131
|
+
|
|
132
|
+
type CommonResponseHeadersList =
|
|
133
|
+
| 'Server'
|
|
134
|
+
| 'Content-Type'
|
|
135
|
+
| 'Content-Length'
|
|
136
|
+
| 'Cache-Control'
|
|
137
|
+
| 'Content-Encoding';
|
|
138
|
+
|
|
139
|
+
type CommonResponseHeaderKey = CommonResponseHeadersList | Lowercase<CommonResponseHeadersList>;
|
|
140
|
+
|
|
141
|
+
type RawCommonResponseHeaders = {
|
|
142
|
+
[Key in CommonResponseHeaderKey]: AxiosHeaderValue;
|
|
143
|
+
} & {
|
|
144
|
+
'set-cookie': string[];
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
|
|
148
|
+
|
|
149
|
+
export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
|
|
150
|
+
|
|
151
|
+
export interface AxiosRequestTransformer {
|
|
152
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface AxiosResponseTransformer {
|
|
156
|
+
(
|
|
157
|
+
this: InternalAxiosRequestConfig,
|
|
158
|
+
data: any,
|
|
159
|
+
headers: AxiosResponseHeaders,
|
|
160
|
+
status?: number
|
|
161
|
+
): any;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface AxiosAdapter {
|
|
165
|
+
(config: InternalAxiosRequestConfig): AxiosPromise;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface AxiosBasicCredentials {
|
|
169
|
+
username: string;
|
|
170
|
+
password: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface AxiosProxyConfig {
|
|
174
|
+
host: string;
|
|
175
|
+
port: number;
|
|
176
|
+
auth?: AxiosBasicCredentials;
|
|
177
|
+
protocol?: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export enum HttpStatusCode {
|
|
181
|
+
Continue = 100,
|
|
182
|
+
SwitchingProtocols = 101,
|
|
183
|
+
Processing = 102,
|
|
184
|
+
EarlyHints = 103,
|
|
185
|
+
Ok = 200,
|
|
186
|
+
Created = 201,
|
|
187
|
+
Accepted = 202,
|
|
188
|
+
NonAuthoritativeInformation = 203,
|
|
189
|
+
NoContent = 204,
|
|
190
|
+
ResetContent = 205,
|
|
191
|
+
PartialContent = 206,
|
|
192
|
+
MultiStatus = 207,
|
|
193
|
+
AlreadyReported = 208,
|
|
194
|
+
ImUsed = 226,
|
|
195
|
+
MultipleChoices = 300,
|
|
196
|
+
MovedPermanently = 301,
|
|
197
|
+
Found = 302,
|
|
198
|
+
SeeOther = 303,
|
|
199
|
+
NotModified = 304,
|
|
200
|
+
UseProxy = 305,
|
|
201
|
+
Unused = 306,
|
|
202
|
+
TemporaryRedirect = 307,
|
|
203
|
+
PermanentRedirect = 308,
|
|
204
|
+
BadRequest = 400,
|
|
205
|
+
Unauthorized = 401,
|
|
206
|
+
PaymentRequired = 402,
|
|
207
|
+
Forbidden = 403,
|
|
208
|
+
NotFound = 404,
|
|
209
|
+
MethodNotAllowed = 405,
|
|
210
|
+
NotAcceptable = 406,
|
|
211
|
+
ProxyAuthenticationRequired = 407,
|
|
212
|
+
RequestTimeout = 408,
|
|
213
|
+
Conflict = 409,
|
|
214
|
+
Gone = 410,
|
|
215
|
+
LengthRequired = 411,
|
|
216
|
+
PreconditionFailed = 412,
|
|
217
|
+
/** @deprecated Use `ContentTooLarge` instead. */
|
|
218
|
+
PayloadTooLarge = 413,
|
|
219
|
+
ContentTooLarge = 413,
|
|
220
|
+
UriTooLong = 414,
|
|
221
|
+
UnsupportedMediaType = 415,
|
|
222
|
+
RangeNotSatisfiable = 416,
|
|
223
|
+
ExpectationFailed = 417,
|
|
224
|
+
ImATeapot = 418,
|
|
225
|
+
MisdirectedRequest = 421,
|
|
226
|
+
/** @deprecated Use `UnprocessableContent` instead. */
|
|
227
|
+
UnprocessableEntity = 422,
|
|
228
|
+
UnprocessableContent = 422,
|
|
229
|
+
Locked = 423,
|
|
230
|
+
FailedDependency = 424,
|
|
231
|
+
TooEarly = 425,
|
|
232
|
+
UpgradeRequired = 426,
|
|
233
|
+
PreconditionRequired = 428,
|
|
234
|
+
TooManyRequests = 429,
|
|
235
|
+
RequestHeaderFieldsTooLarge = 431,
|
|
236
|
+
UnavailableForLegalReasons = 451,
|
|
237
|
+
InternalServerError = 500,
|
|
238
|
+
NotImplemented = 501,
|
|
239
|
+
BadGateway = 502,
|
|
240
|
+
ServiceUnavailable = 503,
|
|
241
|
+
GatewayTimeout = 504,
|
|
242
|
+
HttpVersionNotSupported = 505,
|
|
243
|
+
VariantAlsoNegotiates = 506,
|
|
244
|
+
InsufficientStorage = 507,
|
|
245
|
+
LoopDetected = 508,
|
|
246
|
+
NotExtended = 510,
|
|
247
|
+
NetworkAuthenticationRequired = 511,
|
|
248
|
+
WebServerReturnsAnUnknownError = 520,
|
|
249
|
+
WebServerIsDown = 521,
|
|
250
|
+
ConnectionTimedOut = 522,
|
|
251
|
+
OriginIsUnreachable = 523,
|
|
252
|
+
TimeoutOccurred = 524,
|
|
253
|
+
SslHandshakeFailed = 525,
|
|
254
|
+
InvalidSslCertificate = 526,
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
type UppercaseMethod =
|
|
258
|
+
| 'GET'
|
|
259
|
+
| 'DELETE'
|
|
260
|
+
| 'HEAD'
|
|
261
|
+
| 'OPTIONS'
|
|
262
|
+
| 'POST'
|
|
263
|
+
| 'PUT'
|
|
264
|
+
| 'PATCH'
|
|
265
|
+
| 'PURGE'
|
|
266
|
+
| 'LINK'
|
|
267
|
+
| 'UNLINK'
|
|
268
|
+
| 'QUERY';
|
|
269
|
+
|
|
270
|
+
export type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
|
|
271
|
+
|
|
272
|
+
export type ResponseType =
|
|
273
|
+
| 'arraybuffer'
|
|
274
|
+
| 'blob'
|
|
275
|
+
| 'document'
|
|
276
|
+
| 'json'
|
|
277
|
+
| 'text'
|
|
278
|
+
| 'stream'
|
|
279
|
+
| 'formdata';
|
|
280
|
+
|
|
281
|
+
type UppercaseResponseEncoding =
|
|
282
|
+
| 'ASCII'
|
|
283
|
+
| 'ANSI'
|
|
284
|
+
| 'BINARY'
|
|
285
|
+
| 'BASE64'
|
|
286
|
+
| 'BASE64URL'
|
|
287
|
+
| 'HEX'
|
|
288
|
+
| 'LATIN1'
|
|
289
|
+
| 'UCS-2'
|
|
290
|
+
| 'UCS2'
|
|
291
|
+
| 'UTF-8'
|
|
292
|
+
| 'UTF8'
|
|
293
|
+
| 'UTF16LE';
|
|
294
|
+
|
|
295
|
+
export type responseEncoding = (
|
|
296
|
+
| UppercaseResponseEncoding
|
|
297
|
+
| Lowercase<UppercaseResponseEncoding>
|
|
298
|
+
) & {};
|
|
299
|
+
|
|
300
|
+
export interface TransitionalOptions {
|
|
301
|
+
silentJSONParsing?: boolean;
|
|
302
|
+
forcedJSONParsing?: boolean;
|
|
303
|
+
clarifyTimeoutError?: boolean;
|
|
304
|
+
legacyInterceptorReqResOrdering?: boolean;
|
|
305
|
+
advertiseZstdAcceptEncoding?: boolean;
|
|
306
|
+
validateStatusUndefinedResolves?: boolean;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export interface GenericAbortSignal {
|
|
310
|
+
readonly aborted: boolean;
|
|
311
|
+
onabort?: ((...args: any) => any) | null;
|
|
312
|
+
addEventListener?: (...args: any) => any;
|
|
313
|
+
removeEventListener?: (...args: any) => any;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface FormDataVisitorHelpers {
|
|
317
|
+
defaultVisitor: SerializerVisitor;
|
|
318
|
+
convertValue: (value: any) => any;
|
|
319
|
+
isVisitable: (value: any) => boolean;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export interface SerializerVisitor {
|
|
323
|
+
(
|
|
324
|
+
this: GenericFormData,
|
|
325
|
+
value: any,
|
|
326
|
+
key: string | number,
|
|
327
|
+
path: null | Array<string | number>,
|
|
328
|
+
helpers: FormDataVisitorHelpers
|
|
329
|
+
): boolean;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface SerializerOptions {
|
|
333
|
+
visitor?: SerializerVisitor;
|
|
334
|
+
dots?: boolean;
|
|
335
|
+
metaTokens?: boolean;
|
|
336
|
+
indexes?: boolean | null;
|
|
337
|
+
maxDepth?: number;
|
|
338
|
+
Blob?: { new (...args: any[]): any };
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// tslint:disable-next-line
|
|
342
|
+
export interface FormSerializerOptions extends SerializerOptions {}
|
|
343
|
+
|
|
344
|
+
export interface ParamEncoder {
|
|
345
|
+
(value: any, defaultEncoder: (value: any) => any): any;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export interface CustomParamsSerializer<P = Record<string, any>> {
|
|
349
|
+
(params: P, options?: ParamsSerializerOptions<P>): string;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export interface ParamsSerializerOptions<P = Record<string, any>> extends SerializerOptions {
|
|
353
|
+
encode?: ParamEncoder;
|
|
354
|
+
serialize?: CustomParamsSerializer<P>;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
type MaxUploadRate = number;
|
|
358
|
+
|
|
359
|
+
type MaxDownloadRate = number;
|
|
360
|
+
|
|
361
|
+
type BrowserProgressEvent = any;
|
|
362
|
+
|
|
363
|
+
export interface AxiosProgressEvent {
|
|
364
|
+
loaded: number;
|
|
365
|
+
total?: number;
|
|
366
|
+
progress?: number;
|
|
367
|
+
bytes: number;
|
|
368
|
+
rate?: number;
|
|
369
|
+
estimated?: number;
|
|
370
|
+
upload?: boolean;
|
|
371
|
+
download?: boolean;
|
|
372
|
+
event?: BrowserProgressEvent;
|
|
373
|
+
lengthComputable: boolean;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
type Milliseconds = number;
|
|
377
|
+
|
|
378
|
+
type AxiosAdapterName = StringLiteralsOrString<'xhr' | 'http' | 'fetch'>;
|
|
379
|
+
|
|
380
|
+
type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
|
|
381
|
+
|
|
382
|
+
export type AddressFamily = 4 | 6 | undefined;
|
|
383
|
+
|
|
384
|
+
export interface LookupAddressEntry {
|
|
385
|
+
address: string;
|
|
386
|
+
family?: AddressFamily;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export type LookupAddress = string | LookupAddressEntry;
|
|
390
|
+
|
|
391
|
+
export interface AxiosRequestConfig<D = any, P = any> {
|
|
392
|
+
url?: string;
|
|
393
|
+
method?: StringLiteralsOrString<Method>;
|
|
394
|
+
baseURL?: string;
|
|
395
|
+
allowAbsoluteUrls?: boolean;
|
|
396
|
+
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
|
|
397
|
+
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
|
|
398
|
+
headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
|
|
399
|
+
params?: P;
|
|
400
|
+
paramsSerializer?:
|
|
401
|
+
| ParamsSerializerOptions<unknown extends P ? Record<string, any> : P>
|
|
402
|
+
| CustomParamsSerializer<unknown extends P ? Record<string, any> : P>;
|
|
403
|
+
data?: D;
|
|
404
|
+
timeout?: Milliseconds;
|
|
405
|
+
timeoutErrorMessage?: string;
|
|
406
|
+
withCredentials?: boolean;
|
|
407
|
+
adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
|
|
408
|
+
auth?: AxiosBasicCredentials;
|
|
409
|
+
responseType?: ResponseType;
|
|
410
|
+
responseEncoding?: StringLiteralsOrString<responseEncoding>;
|
|
411
|
+
xsrfCookieName?: string;
|
|
412
|
+
xsrfHeaderName?: string;
|
|
413
|
+
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
414
|
+
onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
415
|
+
maxContentLength?: number;
|
|
416
|
+
validateStatus?: ((status: number) => boolean) | null;
|
|
417
|
+
maxBodyLength?: number;
|
|
418
|
+
maxRedirects?: number;
|
|
419
|
+
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
|
420
|
+
beforeRedirect?: (
|
|
421
|
+
options: Record<string, any>,
|
|
422
|
+
responseDetails: {
|
|
423
|
+
headers: Record<string, string>;
|
|
424
|
+
statusCode: HttpStatusCode;
|
|
425
|
+
},
|
|
426
|
+
requestDetails: {
|
|
427
|
+
headers: Record<string, string>;
|
|
428
|
+
url: string;
|
|
429
|
+
method: string;
|
|
430
|
+
},
|
|
431
|
+
) => void;
|
|
432
|
+
socketPath?: string | null;
|
|
433
|
+
allowedSocketPaths?: string | string[] | null;
|
|
434
|
+
transport?: any;
|
|
435
|
+
httpAgent?: any;
|
|
436
|
+
httpsAgent?: any;
|
|
437
|
+
proxy?: AxiosProxyConfig | false;
|
|
438
|
+
cancelToken?: CancelToken | undefined;
|
|
439
|
+
decompress?: boolean;
|
|
440
|
+
transitional?: TransitionalOptions;
|
|
441
|
+
signal?: GenericAbortSignal;
|
|
442
|
+
insecureHTTPParser?: boolean;
|
|
443
|
+
env?: {
|
|
444
|
+
FormData?: new (...args: any[]) => object;
|
|
445
|
+
fetch?: (input: URL | Request | string, init?: RequestInit) => Promise<Response>;
|
|
446
|
+
Request?: new (input: URL | Request | string, init?: RequestInit) => Request;
|
|
447
|
+
Response?: new (
|
|
448
|
+
body?: ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams | string | null,
|
|
449
|
+
init?: ResponseInit
|
|
450
|
+
) => Response;
|
|
451
|
+
};
|
|
452
|
+
formSerializer?: FormSerializerOptions;
|
|
453
|
+
family?: AddressFamily;
|
|
454
|
+
lookup?:
|
|
455
|
+
| ((
|
|
456
|
+
hostname: string,
|
|
457
|
+
options: object,
|
|
458
|
+
cb: (
|
|
459
|
+
err: Error | null,
|
|
460
|
+
address: LookupAddress | LookupAddress[],
|
|
461
|
+
family?: AddressFamily
|
|
462
|
+
) => void
|
|
463
|
+
) => void)
|
|
464
|
+
| ((
|
|
465
|
+
hostname: string,
|
|
466
|
+
options: object
|
|
467
|
+
) => Promise<
|
|
468
|
+
[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress
|
|
469
|
+
>);
|
|
470
|
+
withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig<D, P>) => boolean | undefined);
|
|
471
|
+
parseReviver?: (this: any, key: string, value: any, context?: { source?: string }) => any;
|
|
472
|
+
fetchOptions?: Omit<RequestInit, 'body' | 'headers' | 'method' | 'signal'> | Record<string, any>;
|
|
473
|
+
httpVersion?: 1 | 2;
|
|
474
|
+
http2Options?: Record<string, any> & {
|
|
475
|
+
sessionTimeout?: number;
|
|
476
|
+
};
|
|
477
|
+
formDataHeaderPolicy?: 'legacy' | 'content-only';
|
|
478
|
+
redact?: string[];
|
|
479
|
+
sensitiveHeaders?: string[];
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// Alias
|
|
483
|
+
export type RawAxiosRequestConfig<D = any, P = any> = AxiosRequestConfig<D, P>;
|
|
484
|
+
|
|
485
|
+
export interface InternalAxiosRequestConfig<D = any, P = any> extends AxiosRequestConfig<D, P> {
|
|
486
|
+
headers: AxiosRequestHeaders;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface HeadersDefaults {
|
|
490
|
+
common: RawAxiosRequestHeaders;
|
|
491
|
+
delete: RawAxiosRequestHeaders;
|
|
492
|
+
get: RawAxiosRequestHeaders;
|
|
493
|
+
head: RawAxiosRequestHeaders;
|
|
494
|
+
post: RawAxiosRequestHeaders;
|
|
495
|
+
put: RawAxiosRequestHeaders;
|
|
496
|
+
patch: RawAxiosRequestHeaders;
|
|
497
|
+
options?: RawAxiosRequestHeaders;
|
|
498
|
+
purge?: RawAxiosRequestHeaders;
|
|
499
|
+
link?: RawAxiosRequestHeaders;
|
|
500
|
+
unlink?: RawAxiosRequestHeaders;
|
|
501
|
+
query?: RawAxiosRequestHeaders;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface AxiosDefaults<D = any, P = any> extends Omit<AxiosRequestConfig<D, P>, 'headers'> {
|
|
505
|
+
headers: HeadersDefaults;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface CreateAxiosDefaults<D = any, P = any> extends Omit<
|
|
509
|
+
AxiosRequestConfig<D, P>,
|
|
510
|
+
'headers'
|
|
511
|
+
> {
|
|
512
|
+
headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export interface AxiosResponse<T = any, D = any, H = {}, P = any> {
|
|
516
|
+
data: T;
|
|
517
|
+
status: number;
|
|
518
|
+
statusText: string;
|
|
519
|
+
headers: (H & RawAxiosResponseHeaders) | AxiosResponseHeaders;
|
|
520
|
+
config: InternalAxiosRequestConfig<D, P>;
|
|
521
|
+
request?: any;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export class AxiosError<T = unknown, D = any, P = any> extends Error {
|
|
525
|
+
constructor(
|
|
526
|
+
message?: string,
|
|
527
|
+
code?: string,
|
|
528
|
+
config?: InternalAxiosRequestConfig<D, P>,
|
|
529
|
+
request?: any,
|
|
530
|
+
response?: AxiosResponse<T, D, {}, P>
|
|
531
|
+
);
|
|
532
|
+
|
|
533
|
+
config?: InternalAxiosRequestConfig<D, P>;
|
|
534
|
+
code?: string;
|
|
535
|
+
request?: any;
|
|
536
|
+
response?: AxiosResponse<T, D, {}, P>;
|
|
537
|
+
isAxiosError: boolean;
|
|
538
|
+
status?: number;
|
|
539
|
+
toJSON: () => object;
|
|
540
|
+
cause?: Error;
|
|
541
|
+
event?: BrowserProgressEvent;
|
|
542
|
+
static from<T = unknown, D = any, P = any>(
|
|
543
|
+
error: Error | unknown,
|
|
544
|
+
code?: string,
|
|
545
|
+
config?: InternalAxiosRequestConfig<D, P>,
|
|
546
|
+
request?: any,
|
|
547
|
+
response?: AxiosResponse<T, D, {}, P>,
|
|
548
|
+
customProps?: object
|
|
549
|
+
): AxiosError<T, D, P>;
|
|
550
|
+
static readonly ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
551
|
+
static readonly ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
552
|
+
static readonly ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
553
|
+
static readonly ERR_NETWORK = 'ERR_NETWORK';
|
|
554
|
+
static readonly ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
555
|
+
static readonly ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
556
|
+
static readonly ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
557
|
+
static readonly ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
558
|
+
static readonly ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
559
|
+
static readonly ERR_CANCELED = 'ERR_CANCELED';
|
|
560
|
+
static readonly ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
|
|
561
|
+
static readonly ECONNABORTED = 'ECONNABORTED';
|
|
562
|
+
static readonly ECONNREFUSED = 'ECONNREFUSED';
|
|
563
|
+
static readonly ETIMEDOUT = 'ETIMEDOUT';
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export class CanceledError<T, D = any, P = any> extends AxiosError<T, D, P> {
|
|
567
|
+
constructor(message?: string, config?: InternalAxiosRequestConfig<D, P>, request?: any);
|
|
568
|
+
readonly name: 'CanceledError';
|
|
569
|
+
__CANCEL__?: boolean;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare const axiosResponseDefault: unique symbol;
|
|
573
|
+
|
|
574
|
+
type AxiosResponseDefault = typeof axiosResponseDefault;
|
|
575
|
+
|
|
576
|
+
type AxiosResponseResult<T, R, D, P> = R extends AxiosResponseDefault
|
|
577
|
+
? AxiosResponse<T, D, {}, P>
|
|
578
|
+
: R;
|
|
579
|
+
|
|
580
|
+
export type AxiosPromise<T = any, D = any, P = any> = Promise<AxiosResponse<T, D, {}, P>>;
|
|
581
|
+
|
|
582
|
+
export interface CancelStatic {
|
|
583
|
+
new (message?: string): Cancel;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export interface Cancel {
|
|
587
|
+
message: string | undefined;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export interface Canceler {
|
|
591
|
+
(message?: string, config?: AxiosRequestConfig, request?: any): void;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface CancelTokenStatic {
|
|
595
|
+
new (executor: (cancel: Canceler) => void): CancelToken;
|
|
596
|
+
source(): CancelTokenSource;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export interface CancelToken {
|
|
600
|
+
promise: Promise<Cancel>;
|
|
601
|
+
reason?: Cancel;
|
|
602
|
+
throwIfRequested(): void;
|
|
603
|
+
subscribe(listener: (cancel: Cancel | any) => void): void;
|
|
604
|
+
unsubscribe(listener: (cancel: Cancel | any) => void): void;
|
|
605
|
+
toAbortSignal(): AbortSignal;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export interface CancelTokenSource {
|
|
609
|
+
token: CancelToken;
|
|
610
|
+
cancel: Canceler;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export interface AxiosInterceptorOptions {
|
|
614
|
+
synchronous?: boolean;
|
|
615
|
+
runWhen?: ((config: InternalAxiosRequestConfig) => boolean) | null;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
type AxiosInterceptorFulfilled<T> = (value: T) => T | Promise<T>;
|
|
619
|
+
type AxiosInterceptorRejected = (error: any) => any;
|
|
620
|
+
|
|
621
|
+
type AxiosRequestInterceptorUse<T> = (
|
|
622
|
+
onFulfilled?: AxiosInterceptorFulfilled<T> | null,
|
|
623
|
+
onRejected?: AxiosInterceptorRejected | null,
|
|
624
|
+
options?: AxiosInterceptorOptions
|
|
625
|
+
) => number;
|
|
626
|
+
|
|
627
|
+
type AxiosResponseInterceptorUse<T> = (
|
|
628
|
+
onFulfilled?: AxiosInterceptorFulfilled<T> | null,
|
|
629
|
+
onRejected?: AxiosInterceptorRejected | null
|
|
630
|
+
) => number;
|
|
631
|
+
|
|
632
|
+
interface AxiosInterceptorHandler<T> {
|
|
633
|
+
fulfilled: AxiosInterceptorFulfilled<T>;
|
|
634
|
+
rejected?: AxiosInterceptorRejected;
|
|
635
|
+
synchronous: boolean;
|
|
636
|
+
runWhen?: ((config: InternalAxiosRequestConfig) => boolean) | null;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export interface AxiosInterceptorManager<V> {
|
|
640
|
+
use: V extends AxiosResponse ? AxiosResponseInterceptorUse<V> : AxiosRequestInterceptorUse<V>;
|
|
641
|
+
eject(id: number): void;
|
|
642
|
+
clear(): void;
|
|
643
|
+
handlers?: Array<AxiosInterceptorHandler<V>>;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export class Axios {
|
|
647
|
+
constructor(config?: AxiosRequestConfig);
|
|
648
|
+
defaults: AxiosDefaults;
|
|
649
|
+
interceptors: {
|
|
650
|
+
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
651
|
+
response: AxiosInterceptorManager<AxiosResponse>;
|
|
652
|
+
};
|
|
653
|
+
getUri(config?: AxiosRequestConfig): string;
|
|
654
|
+
request<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
655
|
+
config: AxiosRequestConfig<D, P>
|
|
656
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
657
|
+
get<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
658
|
+
url: string,
|
|
659
|
+
config?: AxiosRequestConfig<D, P>
|
|
660
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
661
|
+
delete<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
662
|
+
url: string,
|
|
663
|
+
config?: AxiosRequestConfig<D, P>
|
|
664
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
665
|
+
head<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
666
|
+
url: string,
|
|
667
|
+
config?: AxiosRequestConfig<D, P>
|
|
668
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
669
|
+
options<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
670
|
+
url: string,
|
|
671
|
+
config?: AxiosRequestConfig<D, P>
|
|
672
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
673
|
+
post<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
674
|
+
url: string,
|
|
675
|
+
data?: D,
|
|
676
|
+
config?: AxiosRequestConfig<D, P>
|
|
677
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
678
|
+
put<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
679
|
+
url: string,
|
|
680
|
+
data?: D,
|
|
681
|
+
config?: AxiosRequestConfig<D, P>
|
|
682
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
683
|
+
patch<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
684
|
+
url: string,
|
|
685
|
+
data?: D,
|
|
686
|
+
config?: AxiosRequestConfig<D, P>
|
|
687
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
688
|
+
postForm<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
689
|
+
url: string,
|
|
690
|
+
data?: D,
|
|
691
|
+
config?: AxiosRequestConfig<D, P>
|
|
692
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
693
|
+
putForm<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
694
|
+
url: string,
|
|
695
|
+
data?: D,
|
|
696
|
+
config?: AxiosRequestConfig<D, P>
|
|
697
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
698
|
+
patchForm<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
699
|
+
url: string,
|
|
700
|
+
data?: D,
|
|
701
|
+
config?: AxiosRequestConfig<D, P>
|
|
702
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
703
|
+
query<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
704
|
+
url: string,
|
|
705
|
+
data?: D,
|
|
706
|
+
config?: AxiosRequestConfig<D, P>
|
|
707
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export interface AxiosInstance extends Axios {
|
|
711
|
+
<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
712
|
+
config: AxiosRequestConfig<D, P>
|
|
713
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
714
|
+
<T = any, R = AxiosResponseDefault, D = any, P = any>(
|
|
715
|
+
url: string,
|
|
716
|
+
config?: AxiosRequestConfig<D, P>
|
|
717
|
+
): Promise<AxiosResponseResult<T, R, D, P>>;
|
|
718
|
+
|
|
719
|
+
create(config?: CreateAxiosDefaults): AxiosInstance;
|
|
720
|
+
defaults: Omit<AxiosDefaults, 'headers'> & {
|
|
721
|
+
headers: HeadersDefaults & {
|
|
722
|
+
[key: string]: AxiosHeaderValue;
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export interface GenericFormData {
|
|
728
|
+
append(name: string, value: any, options?: any): any;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
export interface GenericHTMLFormElement {
|
|
732
|
+
name: string;
|
|
733
|
+
method: string;
|
|
734
|
+
submit(): void;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export function getAdapter(
|
|
738
|
+
adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined
|
|
739
|
+
): AxiosAdapter;
|
|
740
|
+
|
|
741
|
+
export function toFormData(
|
|
742
|
+
sourceObj: object,
|
|
743
|
+
targetFormData?: GenericFormData,
|
|
744
|
+
options?: FormSerializerOptions
|
|
745
|
+
): GenericFormData;
|
|
746
|
+
|
|
747
|
+
export function formToJSON(form: GenericFormData | GenericHTMLFormElement): object;
|
|
748
|
+
|
|
749
|
+
export function isAxiosError<T = any, D = any, P = any>(
|
|
750
|
+
payload: any
|
|
751
|
+
): payload is AxiosError<T, D, P>;
|
|
752
|
+
|
|
753
|
+
export function spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
|
|
754
|
+
|
|
755
|
+
export function isCancel<T = any, D = any, P = any>(value: any): value is CanceledError<T, D, P>;
|
|
756
|
+
|
|
757
|
+
export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
|
758
|
+
|
|
759
|
+
export function mergeConfig<D = any, P = any>(
|
|
760
|
+
config1: AxiosRequestConfig<D, P>,
|
|
761
|
+
config2: AxiosRequestConfig<D, P>
|
|
762
|
+
): AxiosRequestConfig<D, P>;
|
|
763
|
+
|
|
764
|
+
export function create(config?: CreateAxiosDefaults): AxiosInstance;
|
|
765
|
+
|
|
766
|
+
export interface AxiosStatic extends AxiosInstance {
|
|
767
|
+
Cancel: typeof CanceledError;
|
|
768
|
+
CancelToken: CancelTokenStatic;
|
|
769
|
+
Axios: typeof Axios;
|
|
770
|
+
AxiosError: typeof AxiosError;
|
|
771
|
+
HttpStatusCode: typeof HttpStatusCode;
|
|
772
|
+
readonly VERSION: string;
|
|
773
|
+
isCancel: typeof isCancel;
|
|
774
|
+
all: typeof all;
|
|
775
|
+
spread: typeof spread;
|
|
776
|
+
isAxiosError: typeof isAxiosError;
|
|
777
|
+
toFormData: typeof toFormData;
|
|
778
|
+
formToJSON: typeof formToJSON;
|
|
779
|
+
getAdapter: typeof getAdapter;
|
|
780
|
+
CanceledError: typeof CanceledError;
|
|
781
|
+
AxiosHeaders: typeof AxiosHeaders;
|
|
782
|
+
mergeConfig: typeof mergeConfig;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
declare const axios: AxiosStatic;
|
|
786
|
+
|
|
787
|
+
export default axios;
|