@unicom-cloud/utils 0.1.26 → 0.1.27
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/axios/chunk/BJvTEV6n.js +253 -0
- package/axios/{lib/core/AxiosError.js → chunk/CB3wlosT.js} +5 -5
- package/axios/index.d.ts +6 -1
- package/axios/index.js +22 -20
- package/axios/lib/axios.js +1633 -45
- package/axios/lib/utils.js +3 -246
- package/{axios-mock-adapter → axios/mock-adapter}/index.js +16 -17
- package/{axios-mock-adapter → axios/mock-adapter}/request.js +5 -6
- package/{axios-mock-adapter → axios/mock-adapter}/utils.js +13 -12
- package/case-name/index.js +1 -1
- package/caseName.js +1 -1
- package/class-name/index.js +1 -1
- package/className.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/clipboardCopy.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/emoji.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +16 -17
- package/constant/protocol.js +1 -1
- package/constant/ui.js +16 -16
- package/constant.js +1 -1
- package/content-disposition/index.js +1 -1
- package/contentDisposition.js +1 -1
- package/cookie/index.js +1 -1
- package/cookie/src/index.js +1 -1
- package/cookie.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/date.js +1 -1
- package/decimal/decimal.js +1 -8
- package/decimal/index.js +1 -1
- package/decimal.js +1 -1
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/domHelpers.js +1 -1
- package/emitter/index.js +1 -1
- package/emitter/src/index.js +1 -1
- package/emitter.js +1 -1
- package/file/fileToURL.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/file.js +1 -1
- package/idb/index.js +1 -1
- package/idb.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/invariant.js +1 -1
- package/is/index.js +1 -1
- package/is.js +1 -1
- package/js-cookie/index.js +1 -1
- package/js-cookie/src/api.js +1 -1
- package/js-cookie/src/assign.js +1 -1
- package/js-cookie/src/converter.js +1 -1
- package/jsCookie.js +1 -1
- package/lunar/index.js +1 -1
- package/lunar/lib/Holiday.js +1 -1
- package/lunar/lib/HolidayUtil.js +1 -1
- package/lunar/lib/I18n.js +1 -1
- package/lunar/lib/JieQi.js +1 -1
- package/lunar/lib/Lunar.js +1 -1
- package/lunar/lib/LunarMonth.js +1 -1
- package/lunar/lib/LunarTime.js +1 -1
- package/lunar/lib/LunarUtil.js +1 -1
- package/lunar/lib/LunarYear.js +1 -1
- package/lunar/lib/ShouXingUtil.js +1 -1
- package/lunar/lib/Solar.js +1 -1
- package/lunar/lib/SolarHalfYear.js +1 -1
- package/lunar/lib/SolarMonth.js +1 -1
- package/lunar/lib/SolarSeason.js +1 -1
- package/lunar/lib/SolarUtil.js +1 -1
- package/lunar/lib/SolarWeek.js +1 -1
- package/lunar/lib/SolarYear.js +1 -1
- package/lunar/lib/index.js +1 -1
- package/lunar.js +1 -1
- package/math/index.js +1 -1
- package/math.js +1 -1
- package/md5/index.js +1 -1
- package/md5.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mock.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -15
- package/normalizeWheel.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/numberToChinese.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/nzh.js +1 -1
- package/object-keys-sort/index.js +1 -1
- package/object-prototype-to-string-call/index.js +1 -1
- package/objectKeysSort.js +1 -1
- package/objectPrototypeToStringCall.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/src/core.js +1 -1
- package/pinyin/src/simplified.js +1 -1
- package/pinyin/src/simplified_dict.js +1 -1
- package/pinyin/src/traditional.js +1 -1
- package/pinyin/src/traditional_dict.js +1 -1
- package/pinyin/traditional.js +1 -1
- package/pinyin.js +1 -1
- package/query-string/base.js +1 -1
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/queryString.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/random.js +1 -1
- package/screenfull/index.js +1 -1
- package/screenfull.js +1 -1
- package/sleep/index.js +1 -1
- package/sleep.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +1 -1
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +1 -1
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +1 -1
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/css-color-names.js +1 -1
- package/tinycolor/src/format-input.js +1 -1
- package/tinycolor/src/from-ratio.js +1 -1
- package/tinycolor/src/index.js +1 -1
- package/tinycolor/src/random.js +1 -1
- package/tinycolor/src/readability.js +1 -1
- package/tinycolor/src/to-ms-filter.js +1 -1
- package/tinycolor/src/utils.js +1 -1
- package/tinycolor.js +1 -1
- package/tree/index.js +1 -1
- package/tree/search/index.js +1 -1
- package/tree.js +1 -1
- package/tween/index.js +1 -1
- package/tween/src/easing.js +1 -1
- package/tween/src/tween.js +1 -1
- package/tween.js +1 -1
- package/types/constant/platform.d.ts +8 -7
- package/types/snapdom/src/core/context.d.ts +1 -1
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/uiColor.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/url-toolkit/src/url-toolkit.js +1 -1
- package/urlToolkit.js +1 -1
- package/validate/index.js +1 -1
- package/validate/src/index.js +1 -1
- package/validate/src/locale/en-US.js +1 -1
- package/validate/src/locale/zh-CN.js +1 -1
- package/validate/src/message.js +1 -1
- package/validate/src/rules/array.js +1 -1
- package/validate/src/rules/base.js +1 -1
- package/validate/src/rules/boolean.js +1 -1
- package/validate/src/rules/custom.js +1 -1
- package/validate/src/rules/number.js +1 -1
- package/validate/src/rules/object.js +1 -1
- package/validate/src/rules/string.js +1 -1
- package/validate/src/rules/type.js +1 -1
- package/validate/src/utils.js +1 -1
- package/validate.js +1 -1
- package/version/index.js +1 -1
- package/version.js +1 -1
- package/axios/lib/adapters/adapters.js +0 -65
- package/axios/lib/adapters/fetch.js +0 -186
- package/axios/lib/adapters/xhr.js +0 -105
- package/axios/lib/cancel/CancelToken.js +0 -78
- package/axios/lib/cancel/CanceledError.js +0 -18
- package/axios/lib/cancel/isCancel.js +0 -7
- package/axios/lib/core/Axios.js +0 -170
- package/axios/lib/core/AxiosHeaders.js +0 -192
- package/axios/lib/core/InterceptorManager.js +0 -59
- package/axios/lib/core/buildFullPath.js +0 -10
- package/axios/lib/core/dispatchRequest.js +0 -35
- package/axios/lib/core/mergeConfig.js +0 -74
- package/axios/lib/core/settle.js +0 -17
- package/axios/lib/core/transformData.js +0 -19
- package/axios/lib/defaults/index.js +0 -103
- package/axios/lib/defaults/transitional.js +0 -9
- package/axios/lib/env/data.js +0 -5
- package/axios/lib/helpers/AxiosURLSearchParams.js +0 -37
- package/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/axios/lib/helpers/bind.js +0 -9
- package/axios/lib/helpers/buildURL.js +0 -24
- package/axios/lib/helpers/combineURLs.js +0 -7
- package/axios/lib/helpers/composeSignals.js +0 -38
- package/axios/lib/helpers/cookies.js +0 -37
- package/axios/lib/helpers/formDataToJSON.js +0 -32
- package/axios/lib/helpers/isAbsoluteURL.js +0 -7
- package/axios/lib/helpers/isAxiosError.js +0 -8
- package/axios/lib/helpers/isURLSameOrigin.js +0 -9
- package/axios/lib/helpers/parseHeaders.js +0 -31
- package/axios/lib/helpers/parseProtocol.js +0 -8
- package/axios/lib/helpers/progressEventReducer.js +0 -39
- package/axios/lib/helpers/resolveConfig.js +0 -44
- package/axios/lib/helpers/speedometer.js +0 -20
- package/axios/lib/helpers/spread.js +0 -9
- package/axios/lib/helpers/throttle.js +0 -16
- package/axios/lib/helpers/toFormData.js +0 -91
- package/axios/lib/helpers/toURLEncodedForm.js +0 -15
- package/axios/lib/helpers/trackStream.js +0 -67
- package/axios/lib/helpers/validator.js +0 -66
- package/axios/lib/platform/browser/classes/Blob.js +0 -5
- package/axios/lib/platform/browser/classes/FormData.js +0 -5
- package/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
- package/axios/lib/platform/browser/index.js +0 -16
- package/axios/lib/platform/common/utils.js +0 -9
- package/axios/lib/platform/index.js +0 -10
- package/axios.js +0 -24
- package/axiosMockAdapter.js +0 -9
- package/types/axios/index.d.ts +0 -19
- package/types/axios/lib/adapters/adapters.d.ts +0 -28
- package/types/axios/lib/adapters/fetch.d.ts +0 -3
- package/types/axios/lib/adapters/http.d.ts +0 -12
- package/types/axios/lib/adapters/xhr.d.ts +0 -2
- package/types/axios/lib/axios.d.ts +0 -3
- package/types/axios/lib/cancel/CancelToken.d.ts +0 -34
- package/types/axios/lib/cancel/CanceledError.d.ts +0 -24
- package/types/axios/lib/cancel/isCancel.d.ts +0 -1
- package/types/axios/lib/core/Axios.d.ts +0 -28
- package/types/axios/lib/core/AxiosError.d.ts +0 -38
- package/types/axios/lib/core/AxiosHeaders.d.ts +0 -23
- package/types/axios/lib/core/InterceptorManager.d.ts +0 -38
- package/types/axios/lib/core/buildFullPath.d.ts +0 -11
- package/types/axios/lib/core/dispatchRequest.d.ts +0 -8
- package/types/axios/lib/core/mergeConfig.d.ts +0 -10
- package/types/axios/lib/core/settle.d.ts +0 -10
- package/types/axios/lib/core/transformData.d.ts +0 -9
- package/types/axios/lib/defaults/index.d.ts +0 -30
- package/types/axios/lib/defaults/transitional.d.ts +0 -6
- package/types/axios/lib/env/classes/FormData.d.ts +0 -2
- package/types/axios/lib/env/data.d.ts +0 -1
- package/types/axios/lib/helpers/AxiosTransformStream.d.ts +0 -19
- package/types/axios/lib/helpers/AxiosURLSearchParams.d.ts +0 -30
- package/types/axios/lib/helpers/HttpStatusCode.d.ts +0 -72
- package/types/axios/lib/helpers/ZlibHeaderTransformStream.d.ts +0 -5
- package/types/axios/lib/helpers/bind.d.ts +0 -8
- package/types/axios/lib/helpers/buildURL.d.ts +0 -10
- package/types/axios/lib/helpers/callbackify.d.ts +0 -2
- package/types/axios/lib/helpers/combineURLs.d.ts +0 -9
- package/types/axios/lib/helpers/composeSignals.d.ts +0 -2
- package/types/axios/lib/helpers/cookies.d.ts +0 -6
- package/types/axios/lib/helpers/deprecatedMethod.d.ts +0 -11
- package/types/axios/lib/helpers/estimateDataURLDecodedBytes.d.ts +0 -10
- package/types/axios/lib/helpers/formDataToJSON.d.ts +0 -11
- package/types/axios/lib/helpers/formDataToStream.d.ts +0 -2
- package/types/axios/lib/helpers/fromDataURI.d.ts +0 -11
- package/types/axios/lib/helpers/isAbsoluteURL.d.ts +0 -8
- package/types/axios/lib/helpers/isAxiosError.d.ts +0 -8
- package/types/axios/lib/helpers/isURLSameOrigin.d.ts +0 -2
- package/types/axios/lib/helpers/null.d.ts +0 -2
- package/types/axios/lib/helpers/parseHeaders.d.ts +0 -2
- package/types/axios/lib/helpers/parseProtocol.d.ts +0 -1
- package/types/axios/lib/helpers/progressEventReducer.d.ts +0 -3
- package/types/axios/lib/helpers/readBlob.d.ts +0 -2
- package/types/axios/lib/helpers/resolveConfig.d.ts +0 -2
- package/types/axios/lib/helpers/speedometer.d.ts +0 -8
- package/types/axios/lib/helpers/spread.d.ts +0 -22
- package/types/axios/lib/helpers/throttle.d.ts +0 -8
- package/types/axios/lib/helpers/toFormData.d.ts +0 -26
- package/types/axios/lib/helpers/toURLEncodedForm.d.ts +0 -1
- package/types/axios/lib/helpers/trackStream.d.ts +0 -3
- package/types/axios/lib/helpers/validator.d.ts +0 -28
- package/types/axios/lib/platform/browser/classes/Blob.d.ts +0 -5
- package/types/axios/lib/platform/browser/classes/FormData.d.ts +0 -5
- package/types/axios/lib/platform/browser/classes/URLSearchParams.d.ts +0 -6
- package/types/axios/lib/platform/browser/index.d.ts +0 -13
- package/types/axios/lib/platform/common/utils.d.ts +0 -32
- package/types/axios/lib/platform/index.d.ts +0 -24
- package/types/axios/lib/platform/node/classes/FormData.d.ts +0 -1
- package/types/axios/lib/platform/node/classes/URLSearchParams.d.ts +0 -2
- package/types/axios/lib/platform/node/index.d.ts +0 -25
- package/types/axios/lib/utils.d.ts +0 -289
- package/types/axios-mock-adapter/index.d.ts +0 -19
- package/types/axios-mock-adapter/request.d.ts +0 -2
- package/types/axios-mock-adapter/utils.d.ts +0 -31
- /package/{axios-mock-adapter → axios/mock-adapter}/index.d.ts +0 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
|
+
function R(e, t) {
|
|
3
|
+
return function() {
|
|
4
|
+
return e.apply(t, arguments);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
const { toString: T } = Object.prototype, { getPrototypeOf: A } = Object, { iterator: g, toStringTag: S } = Symbol, O = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = T.call(t);
|
|
9
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => O(t) === e), F = (e) => (t) => typeof t === e, { isArray: p } = Array, a = F("undefined");
|
|
11
|
+
function d(e) {
|
|
12
|
+
return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && c(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
|
+
}
|
|
14
|
+
const B = f("ArrayBuffer");
|
|
15
|
+
function M(e) {
|
|
16
|
+
let t;
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && B(e.buffer), t;
|
|
18
|
+
}
|
|
19
|
+
const k = F("string"), c = F("function"), P = F("number"), y = (e) => e !== null && typeof e == "object", U = (e) => e === !0 || e === !1, w = (e) => {
|
|
20
|
+
if (O(e) !== "object")
|
|
21
|
+
return !1;
|
|
22
|
+
const t = A(e);
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
|
|
24
|
+
}, N = (e) => {
|
|
25
|
+
if (!y(e) || d(e))
|
|
26
|
+
return !1;
|
|
27
|
+
try {
|
|
28
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
29
|
+
} catch {
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
32
|
+
}, I = f("Date"), V = f("File"), _ = f("Blob"), q = f("FileList"), H = (e) => y(e) && c(e.pipe), z = (e) => {
|
|
33
|
+
let t;
|
|
34
|
+
return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = O(e)) === "formdata" || // detect form-data instance
|
|
35
|
+
t === "object" && c(e.toString) && e.toString() === "[object FormData]"));
|
|
36
|
+
}, J = f("URLSearchParams"), [K, $, W, G] = [
|
|
37
|
+
"ReadableStream",
|
|
38
|
+
"Request",
|
|
39
|
+
"Response",
|
|
40
|
+
"Headers"
|
|
41
|
+
].map(f), Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
42
|
+
function m(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
43
|
+
if (e === null || typeof e > "u")
|
|
44
|
+
return;
|
|
45
|
+
let r, s;
|
|
46
|
+
if (typeof e != "object" && (e = [e]), p(e))
|
|
47
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
48
|
+
t.call(null, e[r], r, e);
|
|
49
|
+
else {
|
|
50
|
+
if (d(e))
|
|
51
|
+
return;
|
|
52
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
53
|
+
let l;
|
|
54
|
+
for (r = 0; r < i; r++)
|
|
55
|
+
l = o[r], t.call(null, e[l], l, e);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function E(e, t) {
|
|
59
|
+
if (d(e))
|
|
60
|
+
return null;
|
|
61
|
+
t = t.toLowerCase();
|
|
62
|
+
const n = Object.keys(e);
|
|
63
|
+
let r = n.length, s;
|
|
64
|
+
for (; r-- > 0; )
|
|
65
|
+
if (s = n[r], t === s.toLowerCase())
|
|
66
|
+
return s;
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
|
|
70
|
+
function h() {
|
|
71
|
+
const { caseless: e, skipUndefined: t } = L(this) && this || {}, n = {}, r = (s, o) => {
|
|
72
|
+
const i = e && E(n, o) || o;
|
|
73
|
+
w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : p(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
|
|
74
|
+
};
|
|
75
|
+
for (let s = 0, o = arguments.length; s < o; s++)
|
|
76
|
+
arguments[s] && m(arguments[s], r);
|
|
77
|
+
return n;
|
|
78
|
+
}
|
|
79
|
+
const X = (e, t, n, { allOwnKeys: r } = {}) => (m(
|
|
80
|
+
t,
|
|
81
|
+
(s, o) => {
|
|
82
|
+
n && c(s) ? e[o] = R(s, n) : e[o] = s;
|
|
83
|
+
},
|
|
84
|
+
{ allOwnKeys: r }
|
|
85
|
+
), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, n, r) => {
|
|
86
|
+
e.prototype = Object.create(
|
|
87
|
+
t.prototype,
|
|
88
|
+
r
|
|
89
|
+
), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
90
|
+
value: t.prototype
|
|
91
|
+
}), n && Object.assign(e.prototype, n);
|
|
92
|
+
}, j = (e, t, n, r) => {
|
|
93
|
+
let s, o, i;
|
|
94
|
+
const l = {};
|
|
95
|
+
if (t = t || {}, e == null) return t;
|
|
96
|
+
do {
|
|
97
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
98
|
+
i = s[o], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
99
|
+
e = n !== !1 && A(e);
|
|
100
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
101
|
+
return t;
|
|
102
|
+
}, v = (e, t, n) => {
|
|
103
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
104
|
+
const r = e.indexOf(t, n);
|
|
105
|
+
return r !== -1 && r === n;
|
|
106
|
+
}, ee = (e) => {
|
|
107
|
+
if (!e) return null;
|
|
108
|
+
if (p(e)) return e;
|
|
109
|
+
let t = e.length;
|
|
110
|
+
if (!P(t)) return null;
|
|
111
|
+
const n = new Array(t);
|
|
112
|
+
for (; t-- > 0; )
|
|
113
|
+
n[t] = e[t];
|
|
114
|
+
return n;
|
|
115
|
+
}, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && A(Uint8Array)), ne = (e, t) => {
|
|
116
|
+
const r = (e && e[g]).call(e);
|
|
117
|
+
let s;
|
|
118
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
119
|
+
const o = s.value;
|
|
120
|
+
t.call(e, o[0], o[1]);
|
|
121
|
+
}
|
|
122
|
+
}, re = (e, t) => {
|
|
123
|
+
let n;
|
|
124
|
+
const r = [];
|
|
125
|
+
for (; (n = e.exec(t)) !== null; )
|
|
126
|
+
r.push(n);
|
|
127
|
+
return r;
|
|
128
|
+
}, se = f("HTMLFormElement"), oe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
129
|
+
return r.toUpperCase() + s;
|
|
130
|
+
}), x = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
|
|
131
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
132
|
+
m(n, (s, o) => {
|
|
133
|
+
let i;
|
|
134
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
135
|
+
}), Object.defineProperties(e, r);
|
|
136
|
+
}, ce = (e) => {
|
|
137
|
+
C(e, (t, n) => {
|
|
138
|
+
if (c(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
139
|
+
return !1;
|
|
140
|
+
const r = e[n];
|
|
141
|
+
if (c(r)) {
|
|
142
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
143
|
+
t.writable = !1;
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
t.set || (t.set = () => {
|
|
147
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}, fe = (e, t) => {
|
|
152
|
+
const n = {}, r = (s) => {
|
|
153
|
+
s.forEach((o) => {
|
|
154
|
+
n[o] = !0;
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
return p(e) ? r(e) : r(String(e).split(t)), n;
|
|
158
|
+
}, le = () => {
|
|
159
|
+
}, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
160
|
+
function ae(e) {
|
|
161
|
+
return !!(e && c(e.append) && e[S] === "FormData" && e[g]);
|
|
162
|
+
}
|
|
163
|
+
const pe = (e) => {
|
|
164
|
+
const t = new Array(10), n = (r, s) => {
|
|
165
|
+
if (y(r)) {
|
|
166
|
+
if (t.indexOf(r) >= 0)
|
|
167
|
+
return;
|
|
168
|
+
if (d(r))
|
|
169
|
+
return r;
|
|
170
|
+
if (!("toJSON" in r)) {
|
|
171
|
+
t[s] = r;
|
|
172
|
+
const o = p(r) ? [] : {};
|
|
173
|
+
return m(r, (i, l) => {
|
|
174
|
+
const b = n(i, s + 1);
|
|
175
|
+
!a(b) && (o[l] = b);
|
|
176
|
+
}), t[s] = void 0, o;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return r;
|
|
180
|
+
};
|
|
181
|
+
return n(e, 0);
|
|
182
|
+
}, de = f("AsyncFunction"), ye = (e) => e && (y(e) || c(e)) && c(e.then) && c(e.catch), D = ((e, t) => e ? setImmediate : t ? ((n, r) => (u.addEventListener(
|
|
183
|
+
"message",
|
|
184
|
+
({ source: s, data: o }) => {
|
|
185
|
+
s === u && o === n && r.length && r.shift()();
|
|
186
|
+
},
|
|
187
|
+
!1
|
|
188
|
+
), (s) => {
|
|
189
|
+
r.push(s), u.postMessage(n, "*");
|
|
190
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", c(u.postMessage)), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), ge = {
|
|
191
|
+
isArray: p,
|
|
192
|
+
isArrayBuffer: B,
|
|
193
|
+
isBuffer: d,
|
|
194
|
+
isFormData: z,
|
|
195
|
+
isArrayBufferView: M,
|
|
196
|
+
isString: k,
|
|
197
|
+
isNumber: P,
|
|
198
|
+
isBoolean: U,
|
|
199
|
+
isObject: y,
|
|
200
|
+
isPlainObject: w,
|
|
201
|
+
isEmptyObject: N,
|
|
202
|
+
isReadableStream: K,
|
|
203
|
+
isRequest: $,
|
|
204
|
+
isResponse: W,
|
|
205
|
+
isHeaders: G,
|
|
206
|
+
isUndefined: a,
|
|
207
|
+
isDate: I,
|
|
208
|
+
isFile: V,
|
|
209
|
+
isBlob: _,
|
|
210
|
+
isRegExp: ie,
|
|
211
|
+
isFunction: c,
|
|
212
|
+
isStream: H,
|
|
213
|
+
isURLSearchParams: J,
|
|
214
|
+
isTypedArray: te,
|
|
215
|
+
isFileList: q,
|
|
216
|
+
forEach: m,
|
|
217
|
+
merge: h,
|
|
218
|
+
extend: X,
|
|
219
|
+
trim: Q,
|
|
220
|
+
stripBOM: Y,
|
|
221
|
+
inherits: Z,
|
|
222
|
+
toFlatObject: j,
|
|
223
|
+
kindOf: O,
|
|
224
|
+
kindOfTest: f,
|
|
225
|
+
endsWith: v,
|
|
226
|
+
toArray: ee,
|
|
227
|
+
forEachEntry: ne,
|
|
228
|
+
matchAll: re,
|
|
229
|
+
isHTMLForm: se,
|
|
230
|
+
hasOwnProperty: x,
|
|
231
|
+
hasOwnProp: x,
|
|
232
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
233
|
+
reduceDescriptors: C,
|
|
234
|
+
freezeMethods: ce,
|
|
235
|
+
toObjectSet: fe,
|
|
236
|
+
toCamelCase: oe,
|
|
237
|
+
noop: le,
|
|
238
|
+
toFiniteNumber: ue,
|
|
239
|
+
findKey: E,
|
|
240
|
+
global: u,
|
|
241
|
+
isContextDefined: L,
|
|
242
|
+
isSpecCompliantForm: ae,
|
|
243
|
+
toJSONObject: pe,
|
|
244
|
+
isAsyncFn: de,
|
|
245
|
+
isThenable: ye,
|
|
246
|
+
setImmediate: D,
|
|
247
|
+
asap: me,
|
|
248
|
+
isIterable: we
|
|
249
|
+
};
|
|
250
|
+
export {
|
|
251
|
+
ge as A,
|
|
252
|
+
R as b
|
|
253
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import c from "
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
|
+
import { A as c } from "./BJvTEV6n.js";
|
|
3
3
|
function r(t, i, o, a, e) {
|
|
4
4
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", i && (this.code = i), o && (this.config = o), a && (this.request = a), e && (this.response = e, this.status = e.status ? e.status : null);
|
|
5
5
|
}
|
|
@@ -53,12 +53,12 @@ r.from = (t, i, o, a, e, E) => {
|
|
|
53
53
|
},
|
|
54
54
|
(n) => n !== "isAxiosError"
|
|
55
55
|
);
|
|
56
|
-
const
|
|
57
|
-
return r.call(s,
|
|
56
|
+
const h = t && t.message ? t.message : "Error", l = i == null && t ? t.code : i;
|
|
57
|
+
return r.call(s, h, l, o, a, e), t && s.cause == null && Object.defineProperty(s, "cause", {
|
|
58
58
|
value: t,
|
|
59
59
|
configurable: !0
|
|
60
60
|
}), s.name = t && t.name || "Error", E && Object.assign(s, E), s;
|
|
61
61
|
};
|
|
62
62
|
export {
|
|
63
|
-
r as
|
|
63
|
+
r as A
|
|
64
64
|
};
|
package/axios/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import AxiosUtils from './lib/utils.js';
|
|
2
|
+
import type MockAdapter from './mock-adapter';
|
|
3
|
+
|
|
1
4
|
// TypeScript Version: 4.7
|
|
2
5
|
export type AxiosHeaderValue =
|
|
3
6
|
| AxiosHeaders
|
|
@@ -451,7 +454,7 @@ export interface AxiosRequestConfig<D = any> {
|
|
|
451
454
|
httpAgent?: any;
|
|
452
455
|
httpsAgent?: any;
|
|
453
456
|
proxy?: AxiosProxyConfig | false;
|
|
454
|
-
cancelToken?: CancelToken;
|
|
457
|
+
cancelToken?: CancelToken | undefined;
|
|
455
458
|
decompress?: boolean;
|
|
456
459
|
transitional?: TransitionalOptions;
|
|
457
460
|
signal?: GenericAbortSignal;
|
|
@@ -782,6 +785,8 @@ export interface AxiosStatic extends AxiosInstance {
|
|
|
782
785
|
formToJSON: typeof formToJSON;
|
|
783
786
|
getAdapter: typeof getAdapter;
|
|
784
787
|
CanceledError: typeof CanceledError;
|
|
788
|
+
AxiosUtils: typeof AxiosUtils;
|
|
789
|
+
MockAdapter: typeof MockAdapter;
|
|
785
790
|
AxiosHeaders: typeof AxiosHeaders;
|
|
786
791
|
mergeConfig: typeof mergeConfig;
|
|
787
792
|
}
|
package/axios/index.js
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
2
|
import o from "./lib/axios.js";
|
|
3
|
-
import {
|
|
3
|
+
import { A as S } from "./chunk/BJvTEV6n.js";
|
|
4
|
+
import { default as H } from "./mock-adapter/index.js";
|
|
4
5
|
const {
|
|
5
6
|
Axios: e,
|
|
6
7
|
AxiosError: a,
|
|
7
|
-
CanceledError:
|
|
8
|
-
isCancel:
|
|
8
|
+
CanceledError: t,
|
|
9
|
+
isCancel: s,
|
|
9
10
|
CancelToken: i,
|
|
10
11
|
VERSION: l,
|
|
11
12
|
all: x,
|
|
12
13
|
Cancel: d,
|
|
13
|
-
isAxiosError:
|
|
14
|
-
spread:
|
|
15
|
-
toFormData:
|
|
16
|
-
AxiosHeaders:
|
|
17
|
-
HttpStatusCode:
|
|
18
|
-
formToJSON:
|
|
19
|
-
getAdapter:
|
|
14
|
+
isAxiosError: p,
|
|
15
|
+
spread: A,
|
|
16
|
+
toFormData: f,
|
|
17
|
+
AxiosHeaders: m,
|
|
18
|
+
HttpStatusCode: n,
|
|
19
|
+
formToJSON: c,
|
|
20
|
+
getAdapter: C,
|
|
20
21
|
mergeConfig: E
|
|
21
22
|
} = o;
|
|
22
23
|
export {
|
|
23
24
|
e as Axios,
|
|
24
25
|
a as AxiosError,
|
|
25
|
-
|
|
26
|
+
m as AxiosHeaders,
|
|
26
27
|
S as AxiosUtils,
|
|
27
28
|
d as Cancel,
|
|
28
29
|
i as CancelToken,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
t as CanceledError,
|
|
31
|
+
n as HttpStatusCode,
|
|
32
|
+
H as MockAdapter,
|
|
31
33
|
l as VERSION,
|
|
32
34
|
x as all,
|
|
33
35
|
o as default,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
c as formToJSON,
|
|
37
|
+
C as getAdapter,
|
|
38
|
+
p as isAxiosError,
|
|
39
|
+
s as isCancel,
|
|
38
40
|
E as mergeConfig,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
A as spread,
|
|
42
|
+
f as toFormData
|
|
41
43
|
};
|