@das-fed/utils 6.4.0-hot.50 → 6.4.0-hot.52

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.
@@ -16,12 +16,12 @@ const { toString: Ot } = Object.prototype, { getPrototypeOf: pe } = Object, K =
16
16
  function Rt(e) {
17
17
  return e !== null && !v(e) && e.constructor !== null && !v(e.constructor) && b(e.constructor.isBuffer) && e.constructor.isBuffer(e);
18
18
  }
19
- const Me = R("ArrayBuffer");
19
+ const $e = R("ArrayBuffer");
20
20
  function At(e) {
21
21
  let t;
22
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Me(e.buffer), t;
22
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && $e(e.buffer), t;
23
23
  }
24
- const _t = Q("string"), b = Q("function"), $e = Q("number"), G = (e) => e !== null && typeof e == "object", kt = (e) => e === !0 || e === !1, z = (e) => {
24
+ const _t = Q("string"), b = Q("function"), Me = Q("number"), G = (e) => e !== null && typeof e == "object", kt = (e) => e === !0 || e === !1, z = (e) => {
25
25
  if (K(e) !== "object")
26
26
  return !1;
27
27
  const t = pe(e);
@@ -84,16 +84,16 @@ const vt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (o, s) => {
84
84
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
85
85
  const r = e.indexOf(t, n);
86
86
  return r !== -1 && r === n;
87
- }, Mt = (e) => {
87
+ }, $t = (e) => {
88
88
  if (!e) return null;
89
89
  if (U(e)) return e;
90
90
  let t = e.length;
91
- if (!$e(t)) return null;
91
+ if (!Me(t)) return null;
92
92
  const n = new Array(t);
93
93
  for (; t-- > 0; )
94
94
  n[t] = e[t];
95
95
  return n;
96
- }, $t = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pe(Uint8Array)), qt = (e, t) => {
96
+ }, Mt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pe(Uint8Array)), qt = (e, t) => {
97
97
  const r = (e && e[Symbol.iterator]).call(e);
98
98
  let o;
99
99
  for (; (o = r.next()) && !o.done; ) {
@@ -173,12 +173,12 @@ const en = (e) => {
173
173
  return n(e, 0);
174
174
  }, tn = R("AsyncFunction"), nn = (e) => e && (G(e) || b(e)) && b(e.then) && b(e.catch), a = {
175
175
  isArray: U,
176
- isArrayBuffer: Me,
176
+ isArrayBuffer: $e,
177
177
  isBuffer: Rt,
178
178
  isFormData: Ut,
179
179
  isArrayBufferView: At,
180
180
  isString: _t,
181
- isNumber: $e,
181
+ isNumber: Me,
182
182
  isBoolean: kt,
183
183
  isObject: G,
184
184
  isPlainObject: z,
@@ -190,7 +190,7 @@ const en = (e) => {
190
190
  isFunction: b,
191
191
  isStream: Lt,
192
192
  isURLSearchParams: Dt,
193
- isTypedArray: $t,
193
+ isTypedArray: Mt,
194
194
  isFileList: Nt,
195
195
  forEach: H,
196
196
  merge: re,
@@ -202,7 +202,7 @@ const en = (e) => {
202
202
  kindOf: K,
203
203
  kindOfTest: R,
204
204
  endsWith: Ht,
205
- toArray: Mt,
205
+ toArray: $t,
206
206
  forEachEntry: qt,
207
207
  matchAll: zt,
208
208
  isHTMLForm: Jt,
@@ -517,7 +517,7 @@ function gn(e, t, n) {
517
517
  }
518
518
  return (n || JSON.stringify)(e);
519
519
  }
520
- const M = {
520
+ const $ = {
521
521
  transitional: Ye,
522
522
  adapter: ["xhr", "http"],
523
523
  transformRequest: [function(t, n) {
@@ -546,7 +546,7 @@ const M = {
546
546
  return s || o ? (n.setContentType("application/json", !1), gn(t)) : t;
547
547
  }],
548
548
  transformResponse: [function(t) {
549
- const n = this.transitional || M.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
549
+ const n = this.transitional || $.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
550
550
  if (t && a.isString(t) && (r && !this.responseType || o)) {
551
551
  const i = !(n && n.silentJSONParsing) && o;
552
552
  try {
@@ -582,7 +582,7 @@ const M = {
582
582
  }
583
583
  };
584
584
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
585
- M.headers[e] = {};
585
+ $.headers[e] = {};
586
586
  });
587
587
  const En = a.toObjectSet([
588
588
  "age",
@@ -769,7 +769,7 @@ a.reduceDescriptors(T.prototype, ({ value: e }, t) => {
769
769
  });
770
770
  a.freezeMethods(T);
771
771
  function te(e, t) {
772
- const n = this || M, r = t || n, o = T.from(r.headers);
772
+ const n = this || $, r = t || n, o = T.from(r.headers);
773
773
  let s = r.data;
774
774
  return a.forEach(e, function(c) {
775
775
  s = c.call(n, s, o.normalize(), t ? t.status : void 0);
@@ -778,10 +778,10 @@ function te(e, t) {
778
778
  function nt(e) {
779
779
  return !!(e && e.__CANCEL__);
780
780
  }
781
- function $(e, t, n) {
781
+ function M(e, t, n) {
782
782
  m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
783
783
  }
784
- a.inherits($, m, {
784
+ a.inherits(M, m, {
785
785
  __CANCEL__: !0
786
786
  });
787
787
  function An(e, t, n) {
@@ -965,7 +965,7 @@ const Ln = typeof XMLHttpRequest < "u", Un = Ln && function(e) {
965
965
  o === void 0 && s.setContentType(null), "setRequestHeader" in u && a.forEach(s.toJSON(), function(E, S) {
966
966
  u.setRequestHeader(S, E);
967
967
  }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Oe(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Oe(e.onUploadProgress)), (e.cancelToken || e.signal) && (f = (h) => {
968
- u && (r(!h || h.type ? new $(null, e, u) : h), u.abort(), u = null);
968
+ u && (r(!h || h.type ? new M(null, e, u) : h), u.abort(), u = null);
969
969
  }, e.cancelToken && e.cancelToken.subscribe(f), e.signal && (e.signal.aborted ? f() : e.signal.addEventListener("abort", f)));
970
970
  const p = Pn(y);
971
971
  if (p && O.protocols.indexOf(p) === -1) {
@@ -1020,13 +1020,13 @@ const Re = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !
1020
1020
  };
1021
1021
  function ne(e) {
1022
1022
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1023
- throw new $(null, e);
1023
+ throw new M(null, e);
1024
1024
  }
1025
1025
  function Ae(e) {
1026
1026
  return ne(e), e.headers = T.from(e.headers), e.data = te.call(
1027
1027
  e,
1028
1028
  e.transformRequest
1029
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ot.getAdapter(e.adapter || M.adapter)(e).then(function(r) {
1029
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ot.getAdapter(e.adapter || $.adapter)(e).then(function(r) {
1030
1030
  return ne(e), r.data = te.call(
1031
1031
  e,
1032
1032
  e.transformResponse,
@@ -1288,7 +1288,7 @@ let vn = class it {
1288
1288
  r.unsubscribe(s);
1289
1289
  }, i;
1290
1290
  }, t(function(s, i, c) {
1291
- r.reason || (r.reason = new $(s, i, c), n(r.reason));
1291
+ r.reason || (r.reason = new M(s, i, c), n(r.reason));
1292
1292
  });
1293
1293
  }
1294
1294
  /**
@@ -1413,9 +1413,9 @@ function at(e) {
1413
1413
  return at(N(e, o));
1414
1414
  }, n;
1415
1415
  }
1416
- const w = at(M);
1416
+ const w = at($);
1417
1417
  w.Axios = x;
1418
- w.CanceledError = $;
1418
+ w.CanceledError = M;
1419
1419
  w.CancelToken = vn;
1420
1420
  w.isCancel = nt;
1421
1421
  w.VERSION = st;
@@ -1522,13 +1522,13 @@ function ce(e, t) {
1522
1522
  );
1523
1523
  }
1524
1524
  var Hn = ce(jn, { path: "/" }), xe;
1525
- const ct = typeof window < "u", Mn = (e) => typeof e == "string", Ce = () => +Date.now(), ue = () => {
1525
+ const ct = typeof window < "u", $n = (e) => typeof e == "string", Ce = () => +Date.now(), ue = () => {
1526
1526
  };
1527
1527
  ct && ((xe = window == null ? void 0 : window.navigator) != null && xe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1528
1528
  function ye(e) {
1529
1529
  return typeof e == "function" ? e() : mt(e);
1530
1530
  }
1531
- function $n(e, t) {
1531
+ function Mn(e, t) {
1532
1532
  function n(...r) {
1533
1533
  return new Promise((o, s) => {
1534
1534
  Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
@@ -1564,7 +1564,7 @@ function Vn(e) {
1564
1564
  const ut = ct ? window : void 0;
1565
1565
  function Pe(...e) {
1566
1566
  let t, n, r, o;
1567
- if (Mn(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = ut) : [t, n, r, o] = e, !t)
1567
+ if ($n(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = ut) : [t, n, r, o] = e, !t)
1568
1568
  return ue;
1569
1569
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1570
1570
  const s = [], i = () => {
@@ -1588,7 +1588,7 @@ function Qn(e = Kn, t = {}) {
1588
1588
  eventFilter: i = qn(50)
1589
1589
  } = t, c = W(n), f = W(Ce());
1590
1590
  let d;
1591
- const l = $n(i, () => {
1591
+ const l = Mn(i, () => {
1592
1592
  c.value = !1, f.value = Ce(), clearTimeout(d), d = setTimeout(() => c.value = !0, e);
1593
1593
  });
1594
1594
  if (s) {
@@ -1774,8 +1774,8 @@ const or = async () => {
1774
1774
  return localStorage.getItem("thirdLogouSource") === "zhongshen" && (e = !0), e;
1775
1775
  }, ir = (e) => {
1776
1776
  if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
1777
- const n = `https://iam-uat.shenyejituan.com:6443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
1778
- localStorage.removeItem("thirdLogouSource"), location.href = n;
1777
+ const r = `https://iam-dev.shenyejituan.com:6443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
1778
+ localStorage.removeItem("thirdLogouSource"), location.href = r;
1779
1779
  }
1780
1780
  }, B = (e) => {
1781
1781
  if (rr) return;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "6.4.0-hot.50",
3
+ "version": "6.4.0-hot.52",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -9,7 +9,7 @@
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
11
  "@antv/x6": "^2.18.1",
12
- "@das-fed/utils": "6.4.0-hot.50",
12
+ "@das-fed/utils": "6.4.0-hot.52",
13
13
  "@vue/shared": "^3.4.21",
14
14
  "@vueuse/core": "^9.6.0",
15
15
  "axios": "^1.6.7",
@@ -21,8 +21,8 @@
21
21
  "vue": "^3.4.21"
22
22
  },
23
23
  "devDependencies": {
24
- "@das-fed/cli": "6.4.0-hot.50",
25
- "@das-fed/web": "6.4.0-hot.50",
24
+ "@das-fed/cli": "6.4.0-hot.52",
25
+ "@das-fed/web": "6.4.0-hot.52",
26
26
  "@types/js-cookie": "^3.0.6",
27
27
  "@types/lodash-es": "^4.17.12",
28
28
  "@types/qs": "^6.9.15",