@unicom-cloud/axios 0.1.2 → 0.1.3

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/lib/utils.js CHANGED
@@ -1,5 +1,5 @@
1
- /* 2025-11-19 09:59:53 */
2
- import { A as f } from "../chunk/xVYu0pcc.js";
1
+ /* 2026-02-26 14:42:51 */
2
+ import { A as f } from "../chunk/CYdDqQOh.js";
3
3
  export {
4
4
  f as default
5
5
  };
@@ -1,6 +1,6 @@
1
- /* 2025-11-19 09:59:53 */
2
- import { A as E } from "../chunk/xVYu0pcc.js";
3
- import { request as w } from "./request.js";
1
+ /* 2026-02-26 14:42:51 */
2
+ import { A as E } from "../chunk/CYdDqQOh.js";
3
+ import w from "./request.js";
4
4
  import i from "./utils.js";
5
5
  const A = [
6
6
  "get",
@@ -1,5 +1,5 @@
1
- /* 2025-11-19 09:59:53 */
2
- import { A as l } from "../chunk/xVYu0pcc.js";
1
+ /* 2026-02-26 14:42:51 */
2
+ import { A as l } from "../chunk/CYdDqQOh.js";
3
3
  import a from "./utils.js";
4
4
  function u(s, e) {
5
5
  let t = e.baseURL;
@@ -1,9 +1,9 @@
1
- /* 2025-11-19 09:59:53 */
1
+ /* 2026-02-26 14:42:51 */
2
2
  import S from "lodash/isArrayBuffer.js";
3
3
  import O from "lodash/isBuffer.js";
4
4
  import d from "lodash/isEqual.js";
5
- import { A as m } from "../chunk/g6FYfJ02.js";
6
- import { A as o } from "../chunk/xVYu0pcc.js";
5
+ import { A as m } from "../chunk/DtlKw_Ta.js";
6
+ import { A as o } from "../chunk/CYdDqQOh.js";
7
7
  function p(t, r) {
8
8
  const n = t.length;
9
9
  for (let e = 0; e < n; e++) {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@unicom-cloud/axios","version":"0.1.2","dependencies":{"@unicom-cloud/utils":"^0.1.0"},"peerDependencies":{},"type":"module","types":"index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
1
+ {"name":"@unicom-cloud/axios","version":"0.1.3","dependencies":{"@unicom-cloud/utils":"^0.1.0"},"peerDependencies":{},"type":"module","types":"index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
package/chunk/g6FYfJ02.js DELETED
@@ -1,62 +0,0 @@
1
- /* 2025-11-19 09:59:53 */
2
- import { A as N } from "./xVYu0pcc.js";
3
- class R extends Error {
4
- static from(E, t, _, i, s, O) {
5
- const e = new R(
6
- E.message,
7
- t || E.code,
8
- _,
9
- i,
10
- s
11
- );
12
- return e.cause = E, e.name = E.name, O && Object.assign(e, O), e;
13
- }
14
- /**
15
- * Create an Error with the specified message, config, error code, request and response.
16
- *
17
- * @param {string} message The error message.
18
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
19
- * @param {Object} [config] The config.
20
- * @param {Object} [request] The request.
21
- * @param {Object} [response] The response.
22
- *
23
- * @returns {Error} The created error.
24
- */
25
- constructor(E, t, _, i, s) {
26
- super(E), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), _ && (this.config = _), i && (this.request = i), s && (this.response = s, this.status = s.status);
27
- }
28
- toJSON() {
29
- return {
30
- // Standard
31
- message: this.message,
32
- name: this.name,
33
- // Microsoft
34
- description: this.description,
35
- number: this.number,
36
- // Mozilla
37
- fileName: this.fileName,
38
- lineNumber: this.lineNumber,
39
- columnNumber: this.columnNumber,
40
- stack: this.stack,
41
- // Axios
42
- config: N.toJSONObject(this.config),
43
- code: this.code,
44
- status: this.status
45
- };
46
- }
47
- }
48
- R.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
49
- R.ERR_BAD_OPTION = "ERR_BAD_OPTION";
50
- R.ECONNABORTED = "ECONNABORTED";
51
- R.ETIMEDOUT = "ETIMEDOUT";
52
- R.ERR_NETWORK = "ERR_NETWORK";
53
- R.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
54
- R.ERR_DEPRECATED = "ERR_DEPRECATED";
55
- R.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
56
- R.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
57
- R.ERR_CANCELED = "ERR_CANCELED";
58
- R.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
59
- R.ERR_INVALID_URL = "ERR_INVALID_URL";
60
- export {
61
- R as A
62
- };