@cirkay-eng/cirkay-components 0.7.2 → 0.7.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/base/magic/MagicAPI.d.ts.map +1 -1
- package/dist/base/magic/MagicAPI.js +5 -3
- package/dist/base/magic/MagicAPI.js.map +1 -1
- package/dist/base/n3xus/N3xusAPI.d.ts +8 -5
- package/dist/base/n3xus/N3xusAPI.d.ts.map +1 -1
- package/dist/base/n3xus/N3xusAPI.js +112 -49
- package/dist/base/n3xus/N3xusAPI.js.map +1 -1
- package/dist/base/n3xus/types.d.ts +68 -25
- package/dist/base/n3xus/types.d.ts.map +1 -1
- package/dist/base/n3xus/types.js +1 -0
- package/dist/base/n3xus/types.js.map +1 -1
- package/dist/components/connected/connected.d.ts +33 -0
- package/dist/components/connected/connected.d.ts.map +1 -0
- package/dist/components/connected/connected.js +592 -0
- package/dist/components/connected/connected.js.map +1 -0
- package/dist/components/connected/index.d.ts +8 -0
- package/dist/components/connected/index.d.ts.map +1 -0
- package/dist/components/connected/index.js +6 -0
- package/dist/components/connected/index.js.map +1 -0
- package/dist/components/error-screen/error-screen.d.ts +4 -3
- package/dist/components/error-screen/error-screen.d.ts.map +1 -1
- package/dist/components/error-screen/error-screen.js +6 -11
- package/dist/components/error-screen/error-screen.js.map +1 -1
- package/dist/components/error-screen/index.d.ts +6 -1
- package/dist/components/error-screen/index.d.ts.map +1 -1
- package/dist/components/error-screen/index.js +6 -0
- package/dist/components/error-screen/index.js.map +1 -0
- package/dist/components/fan-pass-claim/fan-pass-claim.d.ts +35 -14
- package/dist/components/fan-pass-claim/fan-pass-claim.d.ts.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.js +836 -316
- package/dist/components/fan-pass-claim/fan-pass-claim.js.map +1 -1
- package/dist/components/fan-pass-claim/index.d.ts +8 -2
- package/dist/components/fan-pass-claim/index.d.ts.map +1 -1
- package/dist/components/fan-pass-claim/index.js +6 -0
- package/dist/components/fan-pass-claim/index.js.map +1 -0
- package/dist/components/fan-pass-claim/types.d.ts +7 -0
- package/dist/components/fan-pass-claim/types.d.ts.map +1 -1
- package/dist/components/fan-pass-claim/types.js +9 -1
- package/dist/components/fan-pass-claim/types.js.map +1 -1
- package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts +31 -17
- package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts.map +1 -1
- package/dist/components/fan-pass-unlock/fan-pass-unlock.js +541 -198
- package/dist/components/fan-pass-unlock/fan-pass-unlock.js.map +1 -1
- package/dist/components/fan-pass-unlock/index.d.ts +8 -2
- package/dist/components/fan-pass-unlock/index.d.ts.map +1 -1
- package/dist/components/fan-pass-unlock/index.js +6 -0
- package/dist/components/fan-pass-unlock/index.js.map +1 -0
- package/dist/components/frame/frame.d.ts +1 -0
- package/dist/components/frame/frame.d.ts.map +1 -1
- package/dist/components/frame/frame.js +103 -37
- package/dist/components/frame/frame.js.map +1 -1
- package/dist/components/frame/index.d.ts +6 -1
- package/dist/components/frame/index.d.ts.map +1 -1
- package/dist/components/frame/index.js +6 -0
- package/dist/components/frame/index.js.map +1 -0
- package/dist/components/index.d.ts +6 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +11 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/login/index.d.ts +6 -1
- package/dist/components/login/index.d.ts.map +1 -1
- package/dist/components/login/index.js +6 -0
- package/dist/components/login/index.js.map +1 -0
- package/dist/components/login/login.d.ts +3 -3
- package/dist/components/login/login.d.ts.map +1 -1
- package/dist/components/login/login.js +98 -47
- package/dist/components/login/login.js.map +1 -1
- package/dist/components/login/types.d.ts +4 -0
- package/dist/components/login/types.d.ts.map +1 -1
- package/dist/components/mobile-pass/index.d.ts +8 -0
- package/dist/components/mobile-pass/index.d.ts.map +1 -0
- package/dist/components/mobile-pass/index.js +6 -0
- package/dist/components/mobile-pass/index.js.map +1 -0
- package/dist/components/mobile-pass/mobile-pass.d.ts +20 -0
- package/dist/components/mobile-pass/mobile-pass.d.ts.map +1 -0
- package/dist/components/mobile-pass/mobile-pass.js +150 -0
- package/dist/components/mobile-pass/mobile-pass.js.map +1 -0
- package/dist/constants/apis.d.ts.map +1 -1
- package/dist/constants/apis.js +0 -1
- package/dist/constants/apis.js.map +1 -1
- package/dist/constants/components.d.ts +1 -1
- package/dist/constants/components.d.ts.map +1 -1
- package/dist/constants/components.js +1 -1
- package/dist/controllers/LoginController.d.ts +35 -5
- package/dist/controllers/LoginController.d.ts.map +1 -1
- package/dist/controllers/LoginController.js +46 -29
- package/dist/controllers/LoginController.js.map +1 -1
- package/dist/docs/error-screen/designTokens.d.ts +1 -3
- package/dist/docs/error-screen/designTokens.d.ts.map +1 -1
- package/dist/docs/fan-pass-claim/designTokens.d.ts.map +1 -1
- package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts +1 -1
- package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts.map +1 -1
- package/dist/docs/fan-pass-unlock/designTokens.d.ts.map +1 -1
- package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts +1 -1
- package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts.map +1 -1
- package/dist/docs/login/designTokens.d.ts +1 -3
- package/dist/docs/login/designTokens.d.ts.map +1 -1
- package/dist/docs/login/login.stories.d.ts +1 -1
- package/dist/docs/login/login.stories.d.ts.map +1 -1
- package/dist/docs/mobile-pass/designTokens.d.ts +3 -0
- package/dist/docs/mobile-pass/designTokens.d.ts.map +1 -0
- package/dist/docs/mobile-pass/mobile-pass.stories.d.ts +6 -0
- package/dist/docs/mobile-pass/mobile-pass.stories.d.ts.map +1 -0
- package/dist/events/claim.d.ts +5 -4
- package/dist/events/claim.d.ts.map +1 -1
- package/dist/events/claim.js +2 -2
- package/dist/events/claim.js.map +1 -1
- package/dist/events/login.d.ts +11 -4
- package/dist/events/login.d.ts.map +1 -1
- package/dist/events/login.js +5 -4
- package/dist/events/login.js.map +1 -1
- package/dist/events/unlock.d.ts +16 -2
- package/dist/events/unlock.d.ts.map +1 -1
- package/dist/events/unlock.js +4 -2
- package/dist/events/unlock.js.map +1 -1
- package/dist/internal/CirkayElement.d.ts.map +1 -1
- package/dist/internal/CirkayElement.js +0 -2
- package/dist/internal/CirkayElement.js.map +1 -1
- package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js +169 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js.map +1 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js +161 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js.map +1 -0
- package/dist/utils/helpers.d.ts +26 -2
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +65 -7
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +24 -17
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/index.js +0 -8
- package/dist/_virtual/index.js.map +0 -1
- package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js +0 -182
- package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js +0 -82
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js +0 -230
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js +0 -200
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js +0 -87
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js +0 -134
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js +0 -24
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js +0 -232
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js +0 -102
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js +0 -301
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js +0 -70
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js +0 -22
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js +0 -82
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js +0 -107
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js +0 -28
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js +0 -29
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js +0 -160
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -57
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -72
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js +0 -70
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js +0 -16
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js +0 -49
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js +0 -44
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js +0 -94
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -16
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js +0 -15
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -17
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js +0 -56
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js +0 -47
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js +0 -59
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js +0 -54
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js +0 -29
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js +0 -45
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js +0 -216
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js +0 -89
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js +0 -100
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js +0 -16
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js +0 -46
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js +0 -10
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js.map +0 -1
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js +0 -761
- package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js.map +0 -1
- package/dist/utils/settings.js +0 -7
- package/dist/utils/settings.js.map +0 -1
- /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js +0 -0
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
5
|
-
*
|
|
6
|
-
* @param {string} name - The name of the property to get.
|
|
7
|
-
*
|
|
8
|
-
* @returns An array of strings.
|
|
9
|
-
*/
|
|
10
|
-
function parsePropPath(name) {
|
|
11
|
-
// foo[x][y][z]
|
|
12
|
-
// foo.x.y.z
|
|
13
|
-
// foo-x-y-z
|
|
14
|
-
// foo x y z
|
|
15
|
-
return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
|
|
16
|
-
return match[0] === '[]' ? '' : match[1] || match[0];
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Convert an array to an object.
|
|
22
|
-
*
|
|
23
|
-
* @param {Array<any>} arr - The array to convert to an object.
|
|
24
|
-
*
|
|
25
|
-
* @returns An object with the same keys and values as the array.
|
|
26
|
-
*/
|
|
27
|
-
function arrayToObject(arr) {
|
|
28
|
-
const obj = {};
|
|
29
|
-
const keys = Object.keys(arr);
|
|
30
|
-
let i;
|
|
31
|
-
const len = keys.length;
|
|
32
|
-
let key;
|
|
33
|
-
for (i = 0; i < len; i++) {
|
|
34
|
-
key = keys[i];
|
|
35
|
-
obj[key] = arr[key];
|
|
36
|
-
}
|
|
37
|
-
return obj;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* It takes a FormData object and returns a JavaScript object
|
|
42
|
-
*
|
|
43
|
-
* @param {string} formData The FormData object to convert to JSON.
|
|
44
|
-
*
|
|
45
|
-
* @returns {Object<string, any> | null} The converted object.
|
|
46
|
-
*/
|
|
47
|
-
function formDataToJSON(formData) {
|
|
48
|
-
function buildPath(path, value, target, index) {
|
|
49
|
-
let name = path[index++];
|
|
50
|
-
|
|
51
|
-
if (name === '__proto__') return true;
|
|
52
|
-
|
|
53
|
-
const isNumericKey = Number.isFinite(+name);
|
|
54
|
-
const isLast = index >= path.length;
|
|
55
|
-
name = !name && utils.isArray(target) ? target.length : name;
|
|
56
|
-
|
|
57
|
-
if (isLast) {
|
|
58
|
-
if (utils.hasOwnProp(target, name)) {
|
|
59
|
-
target[name] = [target[name], value];
|
|
60
|
-
} else {
|
|
61
|
-
target[name] = value;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return !isNumericKey;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (!target[name] || !utils.isObject(target[name])) {
|
|
68
|
-
target[name] = [];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const result = buildPath(path, value, target[name], index);
|
|
72
|
-
|
|
73
|
-
if (result && utils.isArray(target[name])) {
|
|
74
|
-
target[name] = arrayToObject(target[name]);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return !isNumericKey;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
|
|
81
|
-
const obj = {};
|
|
82
|
-
|
|
83
|
-
utils.forEachEntry(formData, (name, value) => {
|
|
84
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
return obj;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { formDataToJSON as default };
|
|
94
|
-
//# sourceMappingURL=formDataToJSON.js.map
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formDataToJSON.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n"],"names":[],"mappings":";;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,IAAI,EAAE;AAC7B;AACA;AACA;AACA;AACA,EAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI;AAC5D,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;AACxD,GAAG,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,EAAE,MAAM,GAAG,GAAG,EAAE;AAChB,EAAE,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/B,EAAE,IAAI,CAAC;AACP,EAAE,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM;AACzB,EAAE,IAAI,GAAG;AACT,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;AAC5B,IAAI,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC;AACjB,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC;AACvB;AACA,EAAE,OAAO,GAAG;AACZ;;AAEA;AACA;AAC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AAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChD;;AAEA,IAAI,OAAO,CAAC,YAAY;AACxB;;AAEA,EAAE,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;AACxE,IAAI,MAAM,GAAG,GAAG,EAAE;;AAElB,IAAI,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK;AAClD,MAAM,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AACnD,KAAK,CAAC;;AAEN,IAAI,OAAO,GAAG;AACd;;AAEA,EAAE,OAAO,IAAI;AACb;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determines whether the specified URL is absolute
|
|
3
|
-
*
|
|
4
|
-
* @param {string} url The URL to test
|
|
5
|
-
*
|
|
6
|
-
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
7
|
-
*/
|
|
8
|
-
function isAbsoluteURL(url) {
|
|
9
|
-
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
10
|
-
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
11
|
-
// by any combination of letters, digits, plus, period, or hyphen.
|
|
12
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { isAbsoluteURL as default };
|
|
16
|
-
//# sourceMappingURL=isAbsoluteURL.js.map
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isAbsoluteURL.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js"],"sourcesContent":["'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,aAAa,CAAC,GAAG,EAAE;AAC3C;AACA;AACA;AACA,EAAE,OAAO,6BAA6B,CAAC,IAAI,CAAC,GAAG,CAAC;AAChD;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Determines whether the payload is an error thrown by Axios
|
|
5
|
-
*
|
|
6
|
-
* @param {*} payload The value to test
|
|
7
|
-
*
|
|
8
|
-
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
9
|
-
*/
|
|
10
|
-
function isAxiosError(payload) {
|
|
11
|
-
return utils.isObject(payload) && (payload.isAxiosError === true);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { isAxiosError as default };
|
|
15
|
-
//# sourceMappingURL=isAxiosError.js.map
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isAxiosError.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js"],"sourcesContent":["'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n"],"names":[],"mappings":";;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,YAAY,CAAC,OAAO,EAAE;AAC9C,EAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,YAAY,KAAK,IAAI,CAAC;AACnE;;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import platform from '../platform/index.js';
|
|
2
|
-
|
|
3
|
-
var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
4
|
-
url = new URL(url, platform.origin);
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
origin.protocol === url.protocol &&
|
|
8
|
-
origin.host === url.host &&
|
|
9
|
-
(isMSIE || origin.port === url.port)
|
|
10
|
-
);
|
|
11
|
-
})(
|
|
12
|
-
new URL(platform.origin),
|
|
13
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
14
|
-
) : () => true;
|
|
15
|
-
|
|
16
|
-
export { isURLSameOrigin as default };
|
|
17
|
-
//# sourceMappingURL=isURLSameOrigin.js.map
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isURLSameOrigin.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js"],"sourcesContent":["import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n})(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n"],"names":[],"mappings":";;AAEA,sBAAe,QAAQ,CAAC,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,GAAG,KAAK;AAC9E,EAAE,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC;;AAErC,EAAE;AACF,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC,QAAQ;AACpC,IAAI,MAAM,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI;AAC5B,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI;AACvC;AACA,CAAC;AACD,EAAE,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;AAC1B,EAAE,QAAQ,CAAC,SAAS,IAAI,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,SAAS;AAC3E,CAAC,GAAG,MAAM,IAAI;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"null.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js"],"sourcesContent":["// eslint-disable-next-line strict\nexport default null;\n"],"names":[],"mappings":"AAAA;AACA,kBAAe,IAAI;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
|
|
3
|
-
// RawAxiosHeaders whose duplicates are ignored by node
|
|
4
|
-
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
5
|
-
const ignoreDuplicateOf = utils.toObjectSet([
|
|
6
|
-
'age', 'authorization', 'content-length', 'content-type', 'etag',
|
|
7
|
-
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
|
|
8
|
-
'last-modified', 'location', 'max-forwards', 'proxy-authorization',
|
|
9
|
-
'referer', 'retry-after', 'user-agent'
|
|
10
|
-
]);
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Parse headers into an object
|
|
14
|
-
*
|
|
15
|
-
* ```
|
|
16
|
-
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
17
|
-
* Content-Type: application/json
|
|
18
|
-
* Connection: keep-alive
|
|
19
|
-
* Transfer-Encoding: chunked
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @param {String} rawHeaders Headers needing to be parsed
|
|
23
|
-
*
|
|
24
|
-
* @returns {Object} Headers parsed into an object
|
|
25
|
-
*/
|
|
26
|
-
var parseHeaders = rawHeaders => {
|
|
27
|
-
const parsed = {};
|
|
28
|
-
let key;
|
|
29
|
-
let val;
|
|
30
|
-
let i;
|
|
31
|
-
|
|
32
|
-
rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
|
|
33
|
-
i = line.indexOf(':');
|
|
34
|
-
key = line.substring(0, i).trim().toLowerCase();
|
|
35
|
-
val = line.substring(i + 1).trim();
|
|
36
|
-
|
|
37
|
-
if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (key === 'set-cookie') {
|
|
42
|
-
if (parsed[key]) {
|
|
43
|
-
parsed[key].push(val);
|
|
44
|
-
} else {
|
|
45
|
-
parsed[key] = [val];
|
|
46
|
-
}
|
|
47
|
-
} else {
|
|
48
|
-
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
return parsed;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export { parseHeaders as default };
|
|
56
|
-
//# sourceMappingURL=parseHeaders.js.map
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseHeaders.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js"],"sourcesContent":["'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n"],"names":[],"mappings":";;AAIA;AACA;AACA,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC;AAC5C,EAAE,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM;AAClE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,qBAAqB;AACvE,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,qBAAqB;AACpE,EAAE,SAAS,EAAE,aAAa,EAAE;AAC5B,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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file":"parseProtocol.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js"],"sourcesContent":["'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n"],"names":[],"mappings":"AAEe,SAAS,aAAa,CAAC,GAAG,EAAE;AAC3C,EAAE,MAAM,KAAK,GAAG,2BAA2B,CAAC,IAAI,CAAC,GAAG,CAAC;AACrD,EAAE,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;AAChC;;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import speedometer from './speedometer.js';
|
|
2
|
-
import throttle from './throttle.js';
|
|
3
|
-
import utils from '../utils.js';
|
|
4
|
-
|
|
5
|
-
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
6
|
-
let bytesNotified = 0;
|
|
7
|
-
const _speedometer = speedometer(50, 250);
|
|
8
|
-
|
|
9
|
-
return throttle(e => {
|
|
10
|
-
const loaded = e.loaded;
|
|
11
|
-
const total = e.lengthComputable ? e.total : undefined;
|
|
12
|
-
const progressBytes = loaded - bytesNotified;
|
|
13
|
-
const rate = _speedometer(progressBytes);
|
|
14
|
-
const inRange = loaded <= total;
|
|
15
|
-
|
|
16
|
-
bytesNotified = loaded;
|
|
17
|
-
|
|
18
|
-
const data = {
|
|
19
|
-
loaded,
|
|
20
|
-
total,
|
|
21
|
-
progress: total ? (loaded / total) : undefined,
|
|
22
|
-
bytes: progressBytes,
|
|
23
|
-
rate: rate ? rate : undefined,
|
|
24
|
-
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
|
25
|
-
event: e,
|
|
26
|
-
lengthComputable: total != null,
|
|
27
|
-
[isDownloadStream ? 'download' : 'upload']: true
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
listener(data);
|
|
31
|
-
}, freq);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const progressEventDecorator = (total, throttled) => {
|
|
35
|
-
const lengthComputable = total != null;
|
|
36
|
-
|
|
37
|
-
return [(loaded) => throttled[0]({
|
|
38
|
-
lengthComputable,
|
|
39
|
-
total,
|
|
40
|
-
loaded
|
|
41
|
-
}), throttled[1]];
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));
|
|
45
|
-
|
|
46
|
-
export { asyncDecorator, progressEventDecorator, progressEventReducer };
|
|
47
|
-
//# sourceMappingURL=progressEventReducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progressEventReducer.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js"],"sourcesContent":["import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n"],"names":[],"m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OAAO,CAAC,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;AACnC,IAAI,gBAAgB;AACpB,IAAI,KAAK;AACT,IAAI;AACJ,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AACnB;;AAEY,MAAC,cAAc,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import platform from '../platform/index.js';
|
|
2
|
-
import utils from '../utils.js';
|
|
3
|
-
import isURLSameOrigin from './isURLSameOrigin.js';
|
|
4
|
-
import cookies from './cookies.js';
|
|
5
|
-
import buildFullPath from '../core/buildFullPath.js';
|
|
6
|
-
import mergeConfig from '../core/mergeConfig.js';
|
|
7
|
-
import AxiosHeaders from '../core/AxiosHeaders.js';
|
|
8
|
-
import buildURL from './buildURL.js';
|
|
9
|
-
|
|
10
|
-
var resolveConfig = (config) => {
|
|
11
|
-
const newConfig = mergeConfig({}, config);
|
|
12
|
-
|
|
13
|
-
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
14
|
-
|
|
15
|
-
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
16
|
-
|
|
17
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
18
|
-
|
|
19
|
-
// HTTP basic authentication
|
|
20
|
-
if (auth) {
|
|
21
|
-
headers.set('Authorization', 'Basic ' +
|
|
22
|
-
btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
let contentType;
|
|
27
|
-
|
|
28
|
-
if (utils.isFormData(data)) {
|
|
29
|
-
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
30
|
-
headers.setContentType(undefined); // Let the browser set it
|
|
31
|
-
} else if ((contentType = headers.getContentType()) !== false) {
|
|
32
|
-
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
33
|
-
const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
|
|
34
|
-
headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Add xsrf header
|
|
39
|
-
// This is only done if running in a standard browser environment.
|
|
40
|
-
// Specifically not if we're in a web worker, or react-native.
|
|
41
|
-
|
|
42
|
-
if (platform.hasStandardBrowserEnv) {
|
|
43
|
-
withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
44
|
-
|
|
45
|
-
if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {
|
|
46
|
-
// Add xsrf header
|
|
47
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
48
|
-
|
|
49
|
-
if (xsrfValue) {
|
|
50
|
-
headers.set(xsrfHeaderName, xsrfValue);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return newConfig;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export { resolveConfig as default };
|
|
59
|
-
//# sourceMappingURL=resolveConfig.js.map
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveConfig.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js"],"sourcesContent":["import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n"],"names":[],"mappings":";;;;;;;;;AASA,oBAAe,CAAC,MAAM,KAAK;AAC3B,EAAE,MAAM,SAAS,GAAG,WAAW,CAAC,EAAE,EAAE,MAAM,CAAC;;AAE3C,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,E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;AACA;AACA;;AAEA,EAAE,IAAI,QAAQ,CAAC,qBAAqB,EAAE;AACtC,IAAI,aAAa,IAAI,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;;AAElG,IAAI,IAAI,aAAa,KAAK,aAAa,KAAK,KAAK,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;AACtF;AACA,MAAM,MAAM,SAAS,GAAG,cAAc,IAAI,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC;;AAExF,MAAM,IAAI,SAAS,EAAE;AACrB,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,SAAS,CAAC;AAC9C;AACA;AACA;;AAEA,EAAE,OAAO,SAAS;AAClB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculate data maxRate
|
|
3
|
-
* @param {Number} [samplesCount= 10]
|
|
4
|
-
* @param {Number} [min= 1000]
|
|
5
|
-
* @returns {Function}
|
|
6
|
-
*/
|
|
7
|
-
function speedometer(samplesCount, min) {
|
|
8
|
-
samplesCount = samplesCount || 10;
|
|
9
|
-
const bytes = new Array(samplesCount);
|
|
10
|
-
const timestamps = new Array(samplesCount);
|
|
11
|
-
let head = 0;
|
|
12
|
-
let tail = 0;
|
|
13
|
-
let firstSampleTS;
|
|
14
|
-
|
|
15
|
-
min = min !== undefined ? min : 1000;
|
|
16
|
-
|
|
17
|
-
return function push(chunkLength) {
|
|
18
|
-
const now = Date.now();
|
|
19
|
-
|
|
20
|
-
const startedAt = timestamps[tail];
|
|
21
|
-
|
|
22
|
-
if (!firstSampleTS) {
|
|
23
|
-
firstSampleTS = now;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
bytes[head] = chunkLength;
|
|
27
|
-
timestamps[head] = now;
|
|
28
|
-
|
|
29
|
-
let i = tail;
|
|
30
|
-
let bytesCount = 0;
|
|
31
|
-
|
|
32
|
-
while (i !== head) {
|
|
33
|
-
bytesCount += bytes[i++];
|
|
34
|
-
i = i % samplesCount;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
head = (head + 1) % samplesCount;
|
|
38
|
-
|
|
39
|
-
if (head === tail) {
|
|
40
|
-
tail = (tail + 1) % samplesCount;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (now - firstSampleTS < min) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const passed = startedAt && now - startedAt;
|
|
48
|
-
|
|
49
|
-
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { speedometer as default };
|
|
54
|
-
//# sourceMappingURL=speedometer.js.map
|
package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"speedometer.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js"],"sourcesContent":["'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,WAAW,CAAC,YAAY,EAAE,GAAG,EAAE;AACxC,EAAE,YAAY,GAAG,YAAY,IAAI,EAAE;AACnC,EAAE,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC;AACvC,EAAE,MAAM,UAAU,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC;AAC5C,EAAE,IAAI,IAAI,GAAG,CAAC;AACd,EAAE,IAAI,IAAI,GAAG,CAAC;AACd,EAAE,IAAI,aAAa;;AAEnB,EAAE,GAAG,GAAG,GAAG,KAAK,SAAS,GAAG,GAAG,GAAG,IAAI;;AAEtC,EAAE,OAAO,SAAS,IAAI,CAAC,WAAW,EAAE;AACpC,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;;AAE1B,IAAI,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC;;AAEtC,IAAI,IAAI,CAAC,aAAa,EAAE;AACxB,MAAM,aAAa,GAAG,GAAG;AACzB;;AAEA,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,WAAW;AAC7B,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,GAAG;;AAE1B,IAAI,IAAI,CAAC,GAAG,IAAI;AAChB,IAAI,IAAI,UAAU,GAAG,CAAC;;AAEtB,IAAI,OAAO,CAAC,KAAK,IAAI,EAAE;AACvB,MAAM,UAAU,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC;AAC9B,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY;AAC1B;;AAEA,IAAI,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,YAAY;;AAEpC,IAAI,IAAI,IAAI,KAAK,IAAI,EAAE;AACvB,MAAM,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,YAAY;AACtC;;AAEA,IAAI,IAAI,GAAG,GAAG,aAAa,GAAG,GAAG,EAAE;AACnC,MAAM;AACN;;AAEA,IAAI,MAAM,MAAM,GAAG,SAAS,IAAI,GAAG,GAAG,SAAS;;AAE/C,IAAI,OAAO,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC,GAAG,SAAS;AACtE,GAAG;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
3
|
-
*
|
|
4
|
-
* Common use case would be to use `Function.prototype.apply`.
|
|
5
|
-
*
|
|
6
|
-
* ```js
|
|
7
|
-
* function f(x, y, z) {}
|
|
8
|
-
* var args = [1, 2, 3];
|
|
9
|
-
* f.apply(null, args);
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* With `spread` this example can be re-written.
|
|
13
|
-
*
|
|
14
|
-
* ```js
|
|
15
|
-
* spread(function(x, y, z) {})([1, 2, 3]);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @param {Function} callback
|
|
19
|
-
*
|
|
20
|
-
* @returns {Function}
|
|
21
|
-
*/
|
|
22
|
-
function spread(callback) {
|
|
23
|
-
return function wrap(arr) {
|
|
24
|
-
return callback.apply(null, arr);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { spread as default };
|
|
29
|
-
//# sourceMappingURL=spread.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spread.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js"],"sourcesContent":["'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,MAAM,CAAC,QAAQ,EAAE;AACzC,EAAE,OAAO,SAAS,IAAI,CAAC,GAAG,EAAE;AAC5B,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC;AACpC,GAAG;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Throttle decorator
|
|
3
|
-
* @param {Function} fn
|
|
4
|
-
* @param {Number} freq
|
|
5
|
-
* @return {Function}
|
|
6
|
-
*/
|
|
7
|
-
function throttle(fn, freq) {
|
|
8
|
-
let timestamp = 0;
|
|
9
|
-
let threshold = 1000 / freq;
|
|
10
|
-
let lastArgs;
|
|
11
|
-
let timer;
|
|
12
|
-
|
|
13
|
-
const invoke = (args, now = Date.now()) => {
|
|
14
|
-
timestamp = now;
|
|
15
|
-
lastArgs = null;
|
|
16
|
-
if (timer) {
|
|
17
|
-
clearTimeout(timer);
|
|
18
|
-
timer = null;
|
|
19
|
-
}
|
|
20
|
-
fn.apply(null, args);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const throttled = (...args) => {
|
|
24
|
-
const now = Date.now();
|
|
25
|
-
const passed = now - timestamp;
|
|
26
|
-
if ( passed >= threshold) {
|
|
27
|
-
invoke(args, now);
|
|
28
|
-
} else {
|
|
29
|
-
lastArgs = args;
|
|
30
|
-
if (!timer) {
|
|
31
|
-
timer = setTimeout(() => {
|
|
32
|
-
timer = null;
|
|
33
|
-
invoke(lastArgs);
|
|
34
|
-
}, threshold - passed);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
40
|
-
|
|
41
|
-
return [throttled, flush];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { throttle as default };
|
|
45
|
-
//# sourceMappingURL=throttle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js"],"sourcesContent":["/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE;AAC5B,EAAE,IAAI,SAAS,GAAG,CAAC;AACnB,EAAE,IAAI,SAAS,GAAG,IAAI,GAAG,IAAI;AAC7B,EAAE,IAAI,QAAQ;AACd,EAAE,IAAI,KAAK;;AAEX,EAAE,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK;AAC7C,IAAI,SAAS,GAAG,GAAG;AACnB,IAAI,QAAQ,GAAG,IAAI;AACnB,IAAI,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