@teammy/server 0.1.4 → 0.1.5
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/main.js +682 -24
- package/dist/web/assets/Assistant-Dm_p8EZl.js +1 -0
- package/dist/web/assets/{Dashboard-dCu2Cdxd.js → Dashboard-fwW9NxcC.js} +1 -1
- package/dist/web/assets/{Files-cRhoWviM.js → Files-D-KCDWmO.js} +1 -1
- package/dist/web/assets/{Markdown-Bq8P_NBV.js → Markdown-oZagG-wy.js} +1 -1
- package/dist/web/assets/{Sessions-BxHsX1C5.js → Sessions-BQhGiLvz.js} +1 -1
- package/dist/web/assets/{WorkspaceTree-CD94JsaJ.js → WorkspaceTree-B9733pV3.js} +1 -1
- package/dist/web/assets/{file-links-CFCIacLV.js → file-links-CD346_jf.js} +1 -1
- package/dist/web/assets/{index-B-MqU_88.css → index-Be5hGscJ.css} +1 -1
- package/dist/web/assets/index-BiiPuwDi.js +66 -0
- package/dist/web/index.html +2 -2
- package/node_modules/@wecom/aibot-node-sdk/README.md +786 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/api.d.ts +17 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/client.d.ts +217 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/crypto.d.ts +12 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.cjs.js +1563 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.cjs.js.map +1 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.d.ts +1324 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.esm.js +1544 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.esm.js.map +1 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/logger.d.ts +14 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/message-handler.d.ts +29 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/api.d.ts +466 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/common.d.ts +30 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/config.d.ts +34 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/event.d.ts +109 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/index.d.ts +10 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/message.d.ts +158 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/utils.d.ts +19 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/wecom-crypto/index.d.ts +46 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/ws.d.ts +161 -0
- package/node_modules/@wecom/aibot-node-sdk/package.json +43 -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 +2786 -0
- package/node_modules/axios/dist/axios.js +6460 -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 +6509 -0
- package/node_modules/axios/dist/esm/axios.js +6530 -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 +7491 -0
- package/node_modules/axios/index.d.cts +785 -0
- package/node_modules/axios/index.d.ts +804 -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 +749 -0
- package/node_modules/axios/lib/adapters/http.js +1609 -0
- package/node_modules/axios/lib/adapters/xhr.js +384 -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 +361 -0
- package/node_modules/axios/lib/core/AxiosError.js +278 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +487 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +182 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
- package/node_modules/axios/lib/core/buildFullPath.js +76 -0
- package/node_modules/axios/lib/core/createMultipartBody.js +37 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +115 -0
- package/node_modules/axios/lib/core/mergeConfig.js +237 -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 +11 -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 +165 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/node_modules/axios/lib/helpers/Http2Sessions.js +122 -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 +71 -0
- package/node_modules/axios/lib/helpers/cookies.js +88 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +193 -0
- package/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +149 -0
- package/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +75 -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 +11 -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 +72 -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 +120 -0
- package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +520 -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 +1201 -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/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/package.json +202 -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 +44 -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 +79 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +7 -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/eventemitter3/LICENSE +21 -0
- package/node_modules/eventemitter3/README.md +85 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.js +355 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.js +363 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
- package/node_modules/eventemitter3/index.d.ts +135 -0
- package/node_modules/eventemitter3/index.js +336 -0
- package/node_modules/eventemitter3/index.mjs +4 -0
- package/node_modules/eventemitter3/package.json +62 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +183 -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 +714 -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/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/package.json +2 -1
- package/dist/web/assets/Assistant-DSQAdSiW.js +0 -1
- package/dist/web/assets/index-BXpTaAUz.js +0 -66
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import utils from '../utils.js';
|
|
4
|
+
import AxiosError from '../core/AxiosError.js';
|
|
5
|
+
import transitionalDefaults from './transitional.js';
|
|
6
|
+
import toFormData from '../helpers/toFormData.js';
|
|
7
|
+
import toURLEncodedForm from '../helpers/toURLEncodedForm.js';
|
|
8
|
+
import platform from '../platform/index.js';
|
|
9
|
+
import formDataToJSON from '../helpers/formDataToJSON.js';
|
|
10
|
+
import methodList from '../core/methodList.js';
|
|
11
|
+
|
|
12
|
+
const own = (obj, key) => (obj != null && utils.hasOwnProp(obj, key) ? obj[key] : undefined);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
16
|
+
* of the input
|
|
17
|
+
*
|
|
18
|
+
* @param {any} rawValue - The value to be stringified.
|
|
19
|
+
* @param {Function} parser - A function that parses a string into a JavaScript object.
|
|
20
|
+
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
21
|
+
*
|
|
22
|
+
* @returns {string} A stringified version of the rawValue.
|
|
23
|
+
*/
|
|
24
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
25
|
+
if (utils.isString(rawValue)) {
|
|
26
|
+
try {
|
|
27
|
+
(parser || JSON.parse)(rawValue);
|
|
28
|
+
return utils.trim(rawValue);
|
|
29
|
+
} catch (e) {
|
|
30
|
+
if (e.name !== 'SyntaxError') {
|
|
31
|
+
throw e;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const defaults = {
|
|
40
|
+
transitional: transitionalDefaults,
|
|
41
|
+
|
|
42
|
+
adapter: ['xhr', 'http', 'fetch'],
|
|
43
|
+
|
|
44
|
+
transformRequest: [
|
|
45
|
+
function transformRequest(data, headers) {
|
|
46
|
+
const contentType = headers.getContentType() || '';
|
|
47
|
+
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
48
|
+
const isObjectPayload = utils.isObject(data);
|
|
49
|
+
|
|
50
|
+
if (isObjectPayload && utils.isHTMLForm(data)) {
|
|
51
|
+
data = new FormData(data);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const isFormData = utils.isFormData(data);
|
|
55
|
+
|
|
56
|
+
if (isFormData) {
|
|
57
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (
|
|
61
|
+
utils.isArrayBuffer(data) ||
|
|
62
|
+
utils.isBuffer(data) ||
|
|
63
|
+
utils.isStream(data) ||
|
|
64
|
+
utils.isFile(data) ||
|
|
65
|
+
utils.isBlob(data) ||
|
|
66
|
+
utils.isReadableStream(data)
|
|
67
|
+
) {
|
|
68
|
+
return data;
|
|
69
|
+
}
|
|
70
|
+
if (utils.isArrayBufferView(data)) {
|
|
71
|
+
return data.buffer;
|
|
72
|
+
}
|
|
73
|
+
if (utils.isURLSearchParams(data)) {
|
|
74
|
+
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
75
|
+
return data.toString();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
let isFileList;
|
|
79
|
+
|
|
80
|
+
if (isObjectPayload) {
|
|
81
|
+
const formSerializer = own(this, 'formSerializer');
|
|
82
|
+
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
|
83
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (
|
|
87
|
+
(isFileList = utils.isFileList(data)) ||
|
|
88
|
+
contentType.indexOf('multipart/form-data') > -1
|
|
89
|
+
) {
|
|
90
|
+
const env = own(this, 'env');
|
|
91
|
+
const _FormData = env && env.FormData;
|
|
92
|
+
|
|
93
|
+
return toFormData(
|
|
94
|
+
isFileList ? { 'files[]': data } : data,
|
|
95
|
+
_FormData && new _FormData(),
|
|
96
|
+
formSerializer
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
102
|
+
headers.setContentType('application/json', false);
|
|
103
|
+
return stringifySafely(data);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return data;
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
|
|
110
|
+
transformResponse: [
|
|
111
|
+
function transformResponse(data) {
|
|
112
|
+
const transitional = own(this, 'transitional') || defaults.transitional;
|
|
113
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
114
|
+
const responseType = own(this, 'responseType');
|
|
115
|
+
const JSONRequested = responseType === 'json';
|
|
116
|
+
|
|
117
|
+
if (utils.isResponse(data) || utils.isReadableStream(data)) {
|
|
118
|
+
return data;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (
|
|
122
|
+
data &&
|
|
123
|
+
utils.isString(data) &&
|
|
124
|
+
((forcedJSONParsing && !responseType) || JSONRequested)
|
|
125
|
+
) {
|
|
126
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
127
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
128
|
+
|
|
129
|
+
try {
|
|
130
|
+
return JSON.parse(data, own(this, 'parseReviver'));
|
|
131
|
+
} catch (e) {
|
|
132
|
+
if (strictJSONParsing) {
|
|
133
|
+
if (e.name === 'SyntaxError') {
|
|
134
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, 'response'));
|
|
135
|
+
}
|
|
136
|
+
throw e;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return data;
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
147
|
+
* timeout is not created.
|
|
148
|
+
*/
|
|
149
|
+
timeout: 0,
|
|
150
|
+
|
|
151
|
+
xsrfCookieName: 'XSRF-TOKEN',
|
|
152
|
+
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
153
|
+
|
|
154
|
+
maxContentLength: -1,
|
|
155
|
+
maxBodyLength: -1,
|
|
156
|
+
|
|
157
|
+
env: {
|
|
158
|
+
FormData: platform.classes.FormData,
|
|
159
|
+
Blob: platform.classes.Blob,
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
validateStatus: function validateStatus(status) {
|
|
163
|
+
return status >= 200 && status < 300;
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
headers: {
|
|
167
|
+
common: {
|
|
168
|
+
Accept: 'application/json, text/plain, */*',
|
|
169
|
+
'Content-Type': undefined,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
utils.forEach(methodList, (method) => {
|
|
175
|
+
defaults.headers[method] = {};
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export default defaults;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
silentJSONParsing: true,
|
|
5
|
+
forcedJSONParsing: true,
|
|
6
|
+
clarifyTimeoutError: false,
|
|
7
|
+
legacyInterceptorReqResOrdering: true,
|
|
8
|
+
advertiseZstdAcceptEncoding: false,
|
|
9
|
+
validateStatusUndefinedResolves: true,
|
|
10
|
+
encodeBasicAuthUsername: false,
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = "1.21.0";
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import stream from 'stream';
|
|
4
|
+
import utils from '../utils.js';
|
|
5
|
+
|
|
6
|
+
const kInternals = Symbol('internals');
|
|
7
|
+
|
|
8
|
+
class AxiosTransformStream extends stream.Transform {
|
|
9
|
+
constructor(options) {
|
|
10
|
+
options = utils.toFlatObject(
|
|
11
|
+
options,
|
|
12
|
+
{
|
|
13
|
+
maxRate: 0,
|
|
14
|
+
chunkSize: 64 * 1024,
|
|
15
|
+
minChunkSize: 100,
|
|
16
|
+
timeWindow: 500,
|
|
17
|
+
ticksRate: 2,
|
|
18
|
+
samplesCount: 15,
|
|
19
|
+
},
|
|
20
|
+
null,
|
|
21
|
+
(prop, source) => {
|
|
22
|
+
return !utils.isUndefined(source[prop]);
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
super({
|
|
27
|
+
readableHighWaterMark: options.chunkSize,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const internals = (this[kInternals] = {
|
|
31
|
+
timeWindow: options.timeWindow,
|
|
32
|
+
chunkSize: options.chunkSize,
|
|
33
|
+
maxRate: options.maxRate,
|
|
34
|
+
minChunkSize: options.minChunkSize,
|
|
35
|
+
bytesSeen: 0,
|
|
36
|
+
isCaptured: false,
|
|
37
|
+
notifiedBytesLoaded: 0,
|
|
38
|
+
ts: Date.now(),
|
|
39
|
+
bytes: 0,
|
|
40
|
+
onReadCallback: null,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
this.on('newListener', (event) => {
|
|
44
|
+
if (event === 'progress') {
|
|
45
|
+
if (!internals.isCaptured) {
|
|
46
|
+
internals.isCaptured = true;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
_read(size) {
|
|
53
|
+
const internals = this[kInternals];
|
|
54
|
+
|
|
55
|
+
if (internals.onReadCallback) {
|
|
56
|
+
internals.onReadCallback();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return super._read(size);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
_transform(chunk, encoding, callback) {
|
|
63
|
+
const internals = this[kInternals];
|
|
64
|
+
const maxRate = internals.maxRate;
|
|
65
|
+
|
|
66
|
+
const readableHighWaterMark = this.readableHighWaterMark;
|
|
67
|
+
|
|
68
|
+
const timeWindow = internals.timeWindow;
|
|
69
|
+
|
|
70
|
+
const divider = 1000 / timeWindow;
|
|
71
|
+
const bytesThreshold = maxRate / divider;
|
|
72
|
+
let minChunkSize =
|
|
73
|
+
internals.minChunkSize !== false
|
|
74
|
+
? Math.max(internals.minChunkSize, bytesThreshold * 0.01)
|
|
75
|
+
: 0;
|
|
76
|
+
|
|
77
|
+
if (maxRate) {
|
|
78
|
+
minChunkSize = Math.min(bytesThreshold, minChunkSize);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const pushChunk = (_chunk, _callback) => {
|
|
82
|
+
const bytes = Buffer.byteLength(_chunk);
|
|
83
|
+
internals.bytesSeen += bytes;
|
|
84
|
+
internals.bytes += bytes;
|
|
85
|
+
|
|
86
|
+
internals.isCaptured && this.emit('progress', internals.bytesSeen);
|
|
87
|
+
|
|
88
|
+
if (this.push(_chunk)) {
|
|
89
|
+
process.nextTick(_callback);
|
|
90
|
+
} else {
|
|
91
|
+
internals.onReadCallback = () => {
|
|
92
|
+
internals.onReadCallback = null;
|
|
93
|
+
process.nextTick(_callback);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const transformChunk = (_chunk, _callback) => {
|
|
99
|
+
if (this.destroyed) {
|
|
100
|
+
return _callback();
|
|
101
|
+
}
|
|
102
|
+
const chunkSize = Buffer.byteLength(_chunk);
|
|
103
|
+
let chunkRemainder = null;
|
|
104
|
+
let maxChunkSize = readableHighWaterMark;
|
|
105
|
+
let bytesLeft;
|
|
106
|
+
let passed = 0;
|
|
107
|
+
|
|
108
|
+
if (maxRate) {
|
|
109
|
+
const now = Date.now();
|
|
110
|
+
|
|
111
|
+
if (!internals.ts || (passed = now - internals.ts) >= timeWindow) {
|
|
112
|
+
internals.ts = now;
|
|
113
|
+
bytesLeft = bytesThreshold - internals.bytes;
|
|
114
|
+
internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;
|
|
115
|
+
passed = 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
bytesLeft = bytesThreshold - internals.bytes;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (maxRate) {
|
|
122
|
+
if (bytesLeft <= 0) {
|
|
123
|
+
// next time window
|
|
124
|
+
return setTimeout(() => {
|
|
125
|
+
_callback(null, _chunk);
|
|
126
|
+
}, timeWindow - passed);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (bytesLeft < maxChunkSize) {
|
|
130
|
+
// A buffer boundary must consume at least one byte. Carry any
|
|
131
|
+
// fractional allowance forward in the next accounting window.
|
|
132
|
+
maxChunkSize = Math.max(1, Math.floor(bytesLeft));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
|
|
137
|
+
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
138
|
+
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
pushChunk(
|
|
142
|
+
_chunk,
|
|
143
|
+
chunkRemainder
|
|
144
|
+
? () => {
|
|
145
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
146
|
+
}
|
|
147
|
+
: _callback
|
|
148
|
+
);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
152
|
+
if (err) {
|
|
153
|
+
return callback(err);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (_chunk) {
|
|
157
|
+
transformChunk(_chunk, transformNextChunk);
|
|
158
|
+
} else {
|
|
159
|
+
callback(null);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export default AxiosTransformStream;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import toFormData from './toFormData.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
7
|
+
* their percent-encoded equivalents
|
|
8
|
+
*
|
|
9
|
+
* @param {string} str - The string to encode.
|
|
10
|
+
*
|
|
11
|
+
* @returns {string} The encoded string.
|
|
12
|
+
*/
|
|
13
|
+
function encode(str) {
|
|
14
|
+
const charMap = {
|
|
15
|
+
'!': '%21',
|
|
16
|
+
"'": '%27',
|
|
17
|
+
'(': '%28',
|
|
18
|
+
')': '%29',
|
|
19
|
+
'~': '%7E',
|
|
20
|
+
'%20': '+',
|
|
21
|
+
};
|
|
22
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
23
|
+
return charMap[match];
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* It takes a params object and converts it to a FormData object
|
|
29
|
+
*
|
|
30
|
+
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
31
|
+
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
32
|
+
*
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*/
|
|
35
|
+
function AxiosURLSearchParams(params, options) {
|
|
36
|
+
this._pairs = [];
|
|
37
|
+
|
|
38
|
+
params && toFormData(params, this, options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const prototype = AxiosURLSearchParams.prototype;
|
|
42
|
+
|
|
43
|
+
prototype.append = function append(name, value) {
|
|
44
|
+
this._pairs.push([name, value]);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
prototype.toString = function toString(encoder) {
|
|
48
|
+
const _encode = encoder
|
|
49
|
+
? (value) => encoder.call(this, value, encode)
|
|
50
|
+
: encode;
|
|
51
|
+
|
|
52
|
+
return this._pairs
|
|
53
|
+
.map(function each(pair) {
|
|
54
|
+
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
55
|
+
}, '')
|
|
56
|
+
.join('&');
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export default AxiosURLSearchParams;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Node-only: relies on the built-in `http2` module. Browser/react-native
|
|
4
|
+
// builds replace `lib/adapters/http.js` (the sole importer) with `lib/helpers/null.js`
|
|
5
|
+
// via the `browser` package.json field, so this module is never reached in
|
|
6
|
+
// those environments. Do not import it from any browser-reachable code path.
|
|
7
|
+
|
|
8
|
+
import http2 from 'http2';
|
|
9
|
+
import util from 'util';
|
|
10
|
+
|
|
11
|
+
class Http2Sessions {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.sessions = Object.create(null);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
getSession(authority, options) {
|
|
17
|
+
options = Object.assign(
|
|
18
|
+
Object.create(null),
|
|
19
|
+
{
|
|
20
|
+
sessionTimeout: 1000,
|
|
21
|
+
},
|
|
22
|
+
options
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
let authoritySessions = this.sessions[authority];
|
|
26
|
+
|
|
27
|
+
if (authoritySessions) {
|
|
28
|
+
let len = authoritySessions.length;
|
|
29
|
+
|
|
30
|
+
for (let i = 0; i < len; i++) {
|
|
31
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
32
|
+
if (
|
|
33
|
+
!sessionHandle.destroyed &&
|
|
34
|
+
!sessionHandle.closed &&
|
|
35
|
+
util.isDeepStrictEqual(sessionOptions, options)
|
|
36
|
+
) {
|
|
37
|
+
return sessionHandle;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const session = http2.connect(authority, options);
|
|
43
|
+
|
|
44
|
+
let removed;
|
|
45
|
+
let timer;
|
|
46
|
+
|
|
47
|
+
const removeSession = () => {
|
|
48
|
+
if (removed) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
removed = true;
|
|
53
|
+
|
|
54
|
+
if (timer) {
|
|
55
|
+
clearTimeout(timer);
|
|
56
|
+
timer = null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
let entries = authoritySessions,
|
|
60
|
+
len = entries.length,
|
|
61
|
+
i = len;
|
|
62
|
+
|
|
63
|
+
while (i--) {
|
|
64
|
+
if (entries[i][0] === session) {
|
|
65
|
+
if (len === 1) {
|
|
66
|
+
delete this.sessions[authority];
|
|
67
|
+
} else {
|
|
68
|
+
entries.splice(i, 1);
|
|
69
|
+
}
|
|
70
|
+
if (!session.closed) {
|
|
71
|
+
session.close();
|
|
72
|
+
}
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const originalRequestFn = session.request;
|
|
79
|
+
|
|
80
|
+
const { sessionTimeout } = options;
|
|
81
|
+
|
|
82
|
+
if (sessionTimeout != null) {
|
|
83
|
+
let streamsCount = 0;
|
|
84
|
+
|
|
85
|
+
session.request = function () {
|
|
86
|
+
const stream = originalRequestFn.apply(this, arguments);
|
|
87
|
+
|
|
88
|
+
streamsCount++;
|
|
89
|
+
|
|
90
|
+
if (timer) {
|
|
91
|
+
clearTimeout(timer);
|
|
92
|
+
timer = null;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
stream.once('close', () => {
|
|
96
|
+
if (!--streamsCount && !removed) {
|
|
97
|
+
timer = setTimeout(() => {
|
|
98
|
+
timer = null;
|
|
99
|
+
removeSession();
|
|
100
|
+
}, sessionTimeout);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
return stream;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
session.once('close', removeSession);
|
|
109
|
+
session.once('error', removeSession);
|
|
110
|
+
session.once('goaway', removeSession);
|
|
111
|
+
|
|
112
|
+
let entry = [session, options];
|
|
113
|
+
|
|
114
|
+
authoritySessions
|
|
115
|
+
? authoritySessions.push(entry)
|
|
116
|
+
: (authoritySessions = this.sessions[authority] = [entry]);
|
|
117
|
+
|
|
118
|
+
return session;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default Http2Sessions;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const HttpStatusCode = {
|
|
2
|
+
Continue: 100,
|
|
3
|
+
SwitchingProtocols: 101,
|
|
4
|
+
Processing: 102,
|
|
5
|
+
EarlyHints: 103,
|
|
6
|
+
Ok: 200,
|
|
7
|
+
Created: 201,
|
|
8
|
+
Accepted: 202,
|
|
9
|
+
NonAuthoritativeInformation: 203,
|
|
10
|
+
NoContent: 204,
|
|
11
|
+
ResetContent: 205,
|
|
12
|
+
PartialContent: 206,
|
|
13
|
+
MultiStatus: 207,
|
|
14
|
+
AlreadyReported: 208,
|
|
15
|
+
ImUsed: 226,
|
|
16
|
+
MultipleChoices: 300,
|
|
17
|
+
MovedPermanently: 301,
|
|
18
|
+
Found: 302,
|
|
19
|
+
SeeOther: 303,
|
|
20
|
+
NotModified: 304,
|
|
21
|
+
UseProxy: 305,
|
|
22
|
+
Unused: 306,
|
|
23
|
+
TemporaryRedirect: 307,
|
|
24
|
+
PermanentRedirect: 308,
|
|
25
|
+
BadRequest: 400,
|
|
26
|
+
Unauthorized: 401,
|
|
27
|
+
PaymentRequired: 402,
|
|
28
|
+
Forbidden: 403,
|
|
29
|
+
NotFound: 404,
|
|
30
|
+
MethodNotAllowed: 405,
|
|
31
|
+
NotAcceptable: 406,
|
|
32
|
+
ProxyAuthenticationRequired: 407,
|
|
33
|
+
RequestTimeout: 408,
|
|
34
|
+
Conflict: 409,
|
|
35
|
+
Gone: 410,
|
|
36
|
+
LengthRequired: 411,
|
|
37
|
+
PreconditionFailed: 412,
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
40
|
+
*/
|
|
41
|
+
PayloadTooLarge: 413,
|
|
42
|
+
ContentTooLarge: 413,
|
|
43
|
+
UriTooLong: 414,
|
|
44
|
+
UnsupportedMediaType: 415,
|
|
45
|
+
RangeNotSatisfiable: 416,
|
|
46
|
+
ExpectationFailed: 417,
|
|
47
|
+
ImATeapot: 418,
|
|
48
|
+
MisdirectedRequest: 421,
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
51
|
+
*/
|
|
52
|
+
UnprocessableEntity: 422,
|
|
53
|
+
UnprocessableContent: 422,
|
|
54
|
+
Locked: 423,
|
|
55
|
+
FailedDependency: 424,
|
|
56
|
+
TooEarly: 425,
|
|
57
|
+
UpgradeRequired: 426,
|
|
58
|
+
PreconditionRequired: 428,
|
|
59
|
+
TooManyRequests: 429,
|
|
60
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
61
|
+
UnavailableForLegalReasons: 451,
|
|
62
|
+
InternalServerError: 500,
|
|
63
|
+
NotImplemented: 501,
|
|
64
|
+
BadGateway: 502,
|
|
65
|
+
ServiceUnavailable: 503,
|
|
66
|
+
GatewayTimeout: 504,
|
|
67
|
+
HttpVersionNotSupported: 505,
|
|
68
|
+
VariantAlsoNegotiates: 506,
|
|
69
|
+
InsufficientStorage: 507,
|
|
70
|
+
LoopDetected: 508,
|
|
71
|
+
NotExtended: 510,
|
|
72
|
+
NetworkAuthenticationRequired: 511,
|
|
73
|
+
WebServerReturnsAnUnknownError: 520,
|
|
74
|
+
WebServerIsDown: 521,
|
|
75
|
+
ConnectionTimedOut: 522,
|
|
76
|
+
OriginIsUnreachable: 523,
|
|
77
|
+
TimeoutOccurred: 524,
|
|
78
|
+
SslHandshakeFailed: 525,
|
|
79
|
+
InvalidSslCertificate: 526,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
83
|
+
if (HttpStatusCode[value] === undefined) {
|
|
84
|
+
HttpStatusCode[value] = key;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export default HttpStatusCode;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# axios // helpers
|
|
2
|
+
|
|
3
|
+
The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like:
|
|
4
|
+
|
|
5
|
+
- Browser polyfills
|
|
6
|
+
- Managing cookies
|
|
7
|
+
- Parsing HTTP headers
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import stream from 'stream';
|
|
4
|
+
|
|
5
|
+
class ZlibHeaderTransformStream extends stream.Transform {
|
|
6
|
+
__transform(chunk, encoding, callback) {
|
|
7
|
+
this.push(chunk);
|
|
8
|
+
callback();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_transform(chunk, encoding, callback) {
|
|
12
|
+
if (chunk.length !== 0) {
|
|
13
|
+
this._transform = this.__transform;
|
|
14
|
+
|
|
15
|
+
// Add Default Compression headers if no zlib headers are present
|
|
16
|
+
if (chunk[0] !== 120) {
|
|
17
|
+
// Hex: 78
|
|
18
|
+
const header = Buffer.alloc(2);
|
|
19
|
+
header[0] = 120; // Hex: 78
|
|
20
|
+
header[1] = 156; // Hex: 9C
|
|
21
|
+
this.push(header, encoding);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
this.__transform(chunk, encoding, callback);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default ZlibHeaderTransformStream;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Create a bound version of a function with a specified `this` context
|
|
5
|
+
*
|
|
6
|
+
* @param {Function} fn - The function to bind
|
|
7
|
+
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
8
|
+
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
9
|
+
*/
|
|
10
|
+
export default function bind(fn, thisArg) {
|
|
11
|
+
return function wrap() {
|
|
12
|
+
return fn.apply(thisArg, arguments);
|
|
13
|
+
};
|
|
14
|
+
}
|