@das-fed/utils 6.4.0-dev.55.13 → 6.4.0-dev.55.14
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/api-services/i18n/index.js +1 -1
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +52 -52
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +46 -46
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +46 -46
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +47 -47
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +46 -46
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +45 -45
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +46 -46
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +2 -2
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +46 -46
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +2 -2
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +42 -42
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +46 -46
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +46 -46
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +46 -46
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +46 -46
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +45 -45
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +46 -46
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +46 -46
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +45 -45
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +47 -47
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +46 -46
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +46 -46
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +46 -46
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +46 -46
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/i18n/index.js +2 -2
- package/create-api-service/index.js +46 -46
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -83,11 +83,11 @@ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
83
83
|
t = n !== !1 && Pt(t);
|
|
84
84
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
85
85
|
return e;
|
|
86
|
-
},
|
|
86
|
+
}, Zn = (t, e, n) => {
|
|
87
87
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
88
88
|
const r = t.indexOf(e, n);
|
|
89
89
|
return r !== -1 && r === n;
|
|
90
|
-
},
|
|
90
|
+
}, Yn = (t) => {
|
|
91
91
|
if (!t) return null;
|
|
92
92
|
if (ue(t)) return t;
|
|
93
93
|
let e = t.length;
|
|
@@ -215,8 +215,8 @@ const po = (t) => {
|
|
|
215
215
|
toFlatObject: Xn,
|
|
216
216
|
kindOf: Me,
|
|
217
217
|
kindOfTest: B,
|
|
218
|
-
endsWith:
|
|
219
|
-
toArray:
|
|
218
|
+
endsWith: Zn,
|
|
219
|
+
toArray: Yn,
|
|
220
220
|
forEachEntry: to,
|
|
221
221
|
matchAll: ro,
|
|
222
222
|
isHTMLForm: no,
|
|
@@ -1171,13 +1171,13 @@ const jr = (t) => {
|
|
|
1171
1171
|
}, {
|
|
1172
1172
|
highWaterMark: 2
|
|
1173
1173
|
});
|
|
1174
|
-
}, He = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", zr = He && typeof ReadableStream == "function",
|
|
1174
|
+
}, He = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", zr = He && typeof ReadableStream == "function", Zo = He && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Hr = (t, ...e) => {
|
|
1175
1175
|
try {
|
|
1176
1176
|
return !!t(...e);
|
|
1177
1177
|
} catch {
|
|
1178
1178
|
return !1;
|
|
1179
1179
|
}
|
|
1180
|
-
},
|
|
1180
|
+
}, Yo = zr && Hr(() => {
|
|
1181
1181
|
let t = !1;
|
|
1182
1182
|
const e = new Request(D.origin, {
|
|
1183
1183
|
body: new ReadableStream(),
|
|
@@ -1210,7 +1210,7 @@ const ea = async (t) => {
|
|
|
1210
1210
|
if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
|
|
1211
1211
|
return t.byteLength;
|
|
1212
1212
|
if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
|
|
1213
|
-
return (await
|
|
1213
|
+
return (await Zo(t)).byteLength;
|
|
1214
1214
|
}, ta = async (t, e) => {
|
|
1215
1215
|
const n = f.toFiniteNumber(t.getContentLength());
|
|
1216
1216
|
return n ?? ea(e);
|
|
@@ -1236,7 +1236,7 @@ const ea = async (t) => {
|
|
|
1236
1236
|
});
|
|
1237
1237
|
let h;
|
|
1238
1238
|
try {
|
|
1239
|
-
if (u &&
|
|
1239
|
+
if (u && Yo && n !== "get" && n !== "head" && (h = await ta(c, r)) !== 0) {
|
|
1240
1240
|
let A = new Request(e, {
|
|
1241
1241
|
method: "POST",
|
|
1242
1242
|
body: r,
|
|
@@ -1372,7 +1372,7 @@ const Gr = "1.7.7", Ft = {};
|
|
|
1372
1372
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1373
1373
|
};
|
|
1374
1374
|
});
|
|
1375
|
-
const
|
|
1375
|
+
const Zt = {};
|
|
1376
1376
|
Ft.transitional = function(e, n, r) {
|
|
1377
1377
|
function o(a, i) {
|
|
1378
1378
|
return "[Axios v" + Gr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
@@ -1383,7 +1383,7 @@ Ft.transitional = function(e, n, r) {
|
|
|
1383
1383
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1384
1384
|
b.ERR_DEPRECATED
|
|
1385
1385
|
);
|
|
1386
|
-
return n && !
|
|
1386
|
+
return n && !Zt[i] && (Zt[i] = !0), e ? e(a, i, s) : !0;
|
|
1387
1387
|
};
|
|
1388
1388
|
};
|
|
1389
1389
|
function oa(t, e, n) {
|
|
@@ -1407,7 +1407,7 @@ const yt = {
|
|
|
1407
1407
|
assertOptions: oa,
|
|
1408
1408
|
validators: Ft
|
|
1409
1409
|
}, G = yt.validators;
|
|
1410
|
-
class
|
|
1410
|
+
class Z {
|
|
1411
1411
|
constructor(e) {
|
|
1412
1412
|
this.defaults = e, this.interceptors = {
|
|
1413
1413
|
request: new zt(),
|
|
@@ -1505,7 +1505,7 @@ class Y {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1508
|
-
|
|
1508
|
+
Z.prototype[e] = function(n, r) {
|
|
1509
1509
|
return this.request(te(r || {}, {
|
|
1510
1510
|
method: e,
|
|
1511
1511
|
url: n,
|
|
@@ -1526,7 +1526,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1526
1526
|
}));
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
|
-
|
|
1529
|
+
Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
|
|
1530
1530
|
});
|
|
1531
1531
|
class Ct {
|
|
1532
1532
|
constructor(e) {
|
|
@@ -1678,13 +1678,13 @@ Object.entries(ht).forEach(([t, e]) => {
|
|
|
1678
1678
|
ht[e] = t;
|
|
1679
1679
|
});
|
|
1680
1680
|
function Jr(t) {
|
|
1681
|
-
const e = new
|
|
1682
|
-
return f.extend(n,
|
|
1681
|
+
const e = new Z(t), n = Or(Z.prototype.request, e);
|
|
1682
|
+
return f.extend(n, Z.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1683
1683
|
return Jr(te(t, o));
|
|
1684
1684
|
}, n;
|
|
1685
1685
|
}
|
|
1686
1686
|
const R = Jr(Ee);
|
|
1687
|
-
R.Axios =
|
|
1687
|
+
R.Axios = Z;
|
|
1688
1688
|
R.CanceledError = fe;
|
|
1689
1689
|
R.CancelToken = Ct;
|
|
1690
1690
|
R.isCancel = kr;
|
|
@@ -1703,7 +1703,7 @@ R.formToJSON = (t) => Lr(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
|
1703
1703
|
R.getAdapter = Wr.getAdapter;
|
|
1704
1704
|
R.HttpStatusCode = ht;
|
|
1705
1705
|
R.default = R;
|
|
1706
|
-
var
|
|
1706
|
+
var Yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function sa(t) {
|
|
1708
1708
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1709
1709
|
}
|
|
@@ -1794,31 +1794,31 @@ var ca = Error, ua = EvalError, fa = RangeError, pa = ReferenceError, Vr = Synta
|
|
|
1794
1794
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1795
1795
|
}
|
|
1796
1796
|
return o;
|
|
1797
|
-
}, Pa = Ra, Nt = Function.prototype.bind || Pa, Ta = Function.prototype.call, xa = Object.prototype.hasOwnProperty, Fa = Nt, Ca = Fa.call(Ta, xa), w, Na = ca, Da = ua, _a = fa, Ia = pa, se = Vr, ie = Ae, $a = da, Kr = Function,
|
|
1797
|
+
}, Pa = Ra, Nt = Function.prototype.bind || Pa, Ta = Function.prototype.call, xa = Object.prototype.hasOwnProperty, Fa = Nt, Ca = Fa.call(Ta, xa), w, Na = ca, Da = ua, _a = fa, Ia = pa, se = Vr, ie = Ae, $a = da, Kr = Function, Ze = function(t) {
|
|
1798
1798
|
try {
|
|
1799
1799
|
return Kr('"use strict"; return (' + t + ").constructor;")();
|
|
1800
1800
|
} catch {
|
|
1801
1801
|
}
|
|
1802
|
-
},
|
|
1803
|
-
if (
|
|
1802
|
+
}, Y = Object.getOwnPropertyDescriptor;
|
|
1803
|
+
if (Y)
|
|
1804
1804
|
try {
|
|
1805
|
-
|
|
1805
|
+
Y({}, "");
|
|
1806
1806
|
} catch {
|
|
1807
|
-
|
|
1807
|
+
Y = null;
|
|
1808
1808
|
}
|
|
1809
|
-
var
|
|
1809
|
+
var Ye = function() {
|
|
1810
1810
|
throw new ie();
|
|
1811
|
-
}, Ba =
|
|
1811
|
+
}, Ba = Y ? function() {
|
|
1812
1812
|
try {
|
|
1813
|
-
return arguments.callee,
|
|
1813
|
+
return arguments.callee, Ye;
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
try {
|
|
1816
|
-
return
|
|
1816
|
+
return Y(arguments, "callee").get;
|
|
1817
1817
|
} catch {
|
|
1818
|
-
return
|
|
1818
|
+
return Ye;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
|
-
}() :
|
|
1821
|
+
}() : Ye, ne = ma(), Ua = va(), x = Object.getPrototypeOf || (Ua ? function(t) {
|
|
1822
1822
|
return t.__proto__;
|
|
1823
1823
|
} : null), ae = {}, La = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), ee = {
|
|
1824
1824
|
__proto__: null,
|
|
@@ -1900,11 +1900,11 @@ if (x)
|
|
|
1900
1900
|
var Ma = function t(e) {
|
|
1901
1901
|
var n;
|
|
1902
1902
|
if (e === "%AsyncFunction%")
|
|
1903
|
-
n =
|
|
1903
|
+
n = Ze("async function () {}");
|
|
1904
1904
|
else if (e === "%GeneratorFunction%")
|
|
1905
|
-
n =
|
|
1905
|
+
n = Ze("function* () {}");
|
|
1906
1906
|
else if (e === "%AsyncGeneratorFunction%")
|
|
1907
|
-
n =
|
|
1907
|
+
n = Ze("async function* () {}");
|
|
1908
1908
|
else if (e === "%AsyncGenerator%") {
|
|
1909
1909
|
var r = t("%AsyncGeneratorFunction%");
|
|
1910
1910
|
r && (n = r.prototype);
|
|
@@ -2010,8 +2010,8 @@ var Ma = function t(e) {
|
|
|
2010
2010
|
throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
var m =
|
|
2013
|
+
if (Y && c + 1 >= r.length) {
|
|
2014
|
+
var m = Y(s, d);
|
|
2015
2015
|
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2016
2016
|
} else
|
|
2017
2017
|
p = Be(s, d), s = s[d];
|
|
@@ -2064,10 +2064,10 @@ var Xr = De, ar = Dt(), Ka = Vr, oe = Ae, ir = Xr, Qa = function(e, n, r) {
|
|
|
2064
2064
|
e[n] = r;
|
|
2065
2065
|
else
|
|
2066
2066
|
throw new Ka("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2067
|
-
}, mt = Dt(),
|
|
2067
|
+
}, mt = Dt(), Zr = function() {
|
|
2068
2068
|
return !!mt;
|
|
2069
2069
|
};
|
|
2070
|
-
|
|
2070
|
+
Zr.hasArrayLengthDefineBug = function() {
|
|
2071
2071
|
if (!mt)
|
|
2072
2072
|
return null;
|
|
2073
2073
|
try {
|
|
@@ -2076,7 +2076,7 @@ Yr.hasArrayLengthDefineBug = function() {
|
|
|
2076
2076
|
return !0;
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
var Xa =
|
|
2079
|
+
var Xa = Zr, Za = pe, sr = Qa, Ya = Xa(), lr = Xr, cr = Ae, ei = Za("%Math.floor%"), ti = function(e, n) {
|
|
2080
2080
|
if (typeof e != "function")
|
|
2081
2081
|
throw new cr("`fn` is not a function");
|
|
2082
2082
|
if (typeof n != "number" || n < 0 || n > 4294967295 || ei(n) !== n)
|
|
@@ -2086,7 +2086,7 @@ var Xa = Yr, Ya = pe, sr = Qa, Za = Xa(), lr = Xr, cr = Ae, ei = Ya("%Math.floor
|
|
|
2086
2086
|
var i = lr(e, "length");
|
|
2087
2087
|
i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
|
|
2088
2088
|
}
|
|
2089
|
-
return (o || a || !r) && (
|
|
2089
|
+
return (o || a || !r) && (Ya ? sr(
|
|
2090
2090
|
/** @type {Parameters<define>[0]} */
|
|
2091
2091
|
e,
|
|
2092
2092
|
"length",
|
|
@@ -2117,8 +2117,8 @@ var Xa = Yr, Ya = pe, sr = Qa, Za = Xa(), lr = Xr, cr = Ae, ei = Ya("%Math.floor
|
|
|
2117
2117
|
};
|
|
2118
2118
|
u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
|
|
2119
2119
|
})(Qr);
|
|
2120
|
-
var ri = Qr.exports,
|
|
2121
|
-
var r =
|
|
2120
|
+
var ri = Qr.exports, Yr = pe, en = ri, ni = en(Yr("String.prototype.indexOf")), oi = function(e, n) {
|
|
2121
|
+
var r = Yr(e, !!n);
|
|
2122
2122
|
return typeof r == "function" && ni(e, ".prototype.") > -1 ? en(r) : r;
|
|
2123
2123
|
};
|
|
2124
2124
|
const ai = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2247,7 +2247,7 @@ var bt = si, vr = bt.custom, br = on(vr) ? vr : null, gi = function t(e, n, r, o
|
|
|
2247
2247
|
return me(d(String(e)));
|
|
2248
2248
|
if (typeof window < "u" && e === window)
|
|
2249
2249
|
return "{ [object Window] }";
|
|
2250
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
2250
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Yt < "u" && e === Yt)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!bi(e) && !wr(e)) {
|
|
2253
2253
|
var N = Pe(e, d), q = mr ? mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? $t.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + M.call(yr.call([], j || [], U || []), ": ") + "] " : "");
|
|
@@ -2559,7 +2559,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2559
2559
|
for (var r = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
|
|
2560
2560
|
typeof e[o] < "u" && (r[o] = e[o]);
|
|
2561
2561
|
return r;
|
|
2562
|
-
},
|
|
2562
|
+
}, Zi = function t(e, n, r) {
|
|
2563
2563
|
if (!n)
|
|
2564
2564
|
return e;
|
|
2565
2565
|
if (typeof n != "object") {
|
|
@@ -2584,7 +2584,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2584
2584
|
var s = n[i];
|
|
2585
2585
|
return it.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
|
|
2586
2586
|
}, o);
|
|
2587
|
-
},
|
|
2587
|
+
}, Yi = function(e, n) {
|
|
2588
2588
|
return Object.keys(n).reduce(function(r, o) {
|
|
2589
2589
|
return r[o] = n[o], r;
|
|
2590
2590
|
}, e);
|
|
@@ -2651,7 +2651,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2651
2651
|
return n(e);
|
|
2652
2652
|
}, un = {
|
|
2653
2653
|
arrayToObject: cn,
|
|
2654
|
-
assign:
|
|
2654
|
+
assign: Yi,
|
|
2655
2655
|
combine: as,
|
|
2656
2656
|
compact: rs,
|
|
2657
2657
|
decode: es,
|
|
@@ -2659,7 +2659,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2659
2659
|
isBuffer: os,
|
|
2660
2660
|
isRegExp: ns,
|
|
2661
2661
|
maybeMap: is,
|
|
2662
|
-
merge:
|
|
2662
|
+
merge: Zi
|
|
2663
2663
|
}, fn = Ji, _e = un, be = Ut, ss = Object.prototype.hasOwnProperty, pn = {
|
|
2664
2664
|
brackets: function(e) {
|
|
2665
2665
|
return e + "[]";
|
|
@@ -3048,13 +3048,13 @@ function At(t, e) {
|
|
|
3048
3048
|
var Fs = At(xs, { path: "/" });
|
|
3049
3049
|
const Cs = {
|
|
3050
3050
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3051
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3051
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
3052
3052
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3053
3053
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3054
3054
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3055
3055
|
"网络异常,请检查您的网络情况": {
|
|
3056
3056
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3057
|
-
en: "Network
|
|
3057
|
+
en: "Network error, please check your network status",
|
|
3058
3058
|
_appCode: "framework"
|
|
3059
3059
|
}
|
|
3060
3060
|
};
|
|
Binary file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const r = {
|
|
2
2
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
4
4
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
5
5
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
6
6
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
7
7
|
"网络异常,请检查您的网络情况": {
|
|
8
8
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
9
|
-
en: "Network
|
|
9
|
+
en: "Network error, please check your network status",
|
|
10
10
|
_appCode: "framework"
|
|
11
11
|
}
|
|
12
12
|
};
|
|
@@ -83,11 +83,11 @@ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
83
83
|
t = n !== !1 && Pt(t);
|
|
84
84
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
85
85
|
return e;
|
|
86
|
-
},
|
|
86
|
+
}, Zn = (t, e, n) => {
|
|
87
87
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
88
88
|
const r = t.indexOf(e, n);
|
|
89
89
|
return r !== -1 && r === n;
|
|
90
|
-
},
|
|
90
|
+
}, Yn = (t) => {
|
|
91
91
|
if (!t) return null;
|
|
92
92
|
if (ue(t)) return t;
|
|
93
93
|
let e = t.length;
|
|
@@ -215,8 +215,8 @@ const po = (t) => {
|
|
|
215
215
|
toFlatObject: Xn,
|
|
216
216
|
kindOf: Me,
|
|
217
217
|
kindOfTest: B,
|
|
218
|
-
endsWith:
|
|
219
|
-
toArray:
|
|
218
|
+
endsWith: Zn,
|
|
219
|
+
toArray: Yn,
|
|
220
220
|
forEachEntry: to,
|
|
221
221
|
matchAll: ro,
|
|
222
222
|
isHTMLForm: no,
|
|
@@ -1171,13 +1171,13 @@ const jr = (t) => {
|
|
|
1171
1171
|
}, {
|
|
1172
1172
|
highWaterMark: 2
|
|
1173
1173
|
});
|
|
1174
|
-
}, He = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", zr = He && typeof ReadableStream == "function",
|
|
1174
|
+
}, He = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", zr = He && typeof ReadableStream == "function", Zo = He && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Hr = (t, ...e) => {
|
|
1175
1175
|
try {
|
|
1176
1176
|
return !!t(...e);
|
|
1177
1177
|
} catch {
|
|
1178
1178
|
return !1;
|
|
1179
1179
|
}
|
|
1180
|
-
},
|
|
1180
|
+
}, Yo = zr && Hr(() => {
|
|
1181
1181
|
let t = !1;
|
|
1182
1182
|
const e = new Request(D.origin, {
|
|
1183
1183
|
body: new ReadableStream(),
|
|
@@ -1210,7 +1210,7 @@ const ea = async (t) => {
|
|
|
1210
1210
|
if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
|
|
1211
1211
|
return t.byteLength;
|
|
1212
1212
|
if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
|
|
1213
|
-
return (await
|
|
1213
|
+
return (await Zo(t)).byteLength;
|
|
1214
1214
|
}, ta = async (t, e) => {
|
|
1215
1215
|
const n = f.toFiniteNumber(t.getContentLength());
|
|
1216
1216
|
return n ?? ea(e);
|
|
@@ -1236,7 +1236,7 @@ const ea = async (t) => {
|
|
|
1236
1236
|
});
|
|
1237
1237
|
let h;
|
|
1238
1238
|
try {
|
|
1239
|
-
if (u &&
|
|
1239
|
+
if (u && Yo && n !== "get" && n !== "head" && (h = await ta(c, r)) !== 0) {
|
|
1240
1240
|
let A = new Request(e, {
|
|
1241
1241
|
method: "POST",
|
|
1242
1242
|
body: r,
|
|
@@ -1372,7 +1372,7 @@ const Gr = "1.7.7", Ft = {};
|
|
|
1372
1372
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1373
1373
|
};
|
|
1374
1374
|
});
|
|
1375
|
-
const
|
|
1375
|
+
const Zt = {};
|
|
1376
1376
|
Ft.transitional = function(e, n, r) {
|
|
1377
1377
|
function o(a, i) {
|
|
1378
1378
|
return "[Axios v" + Gr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
@@ -1383,7 +1383,7 @@ Ft.transitional = function(e, n, r) {
|
|
|
1383
1383
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1384
1384
|
b.ERR_DEPRECATED
|
|
1385
1385
|
);
|
|
1386
|
-
return n && !
|
|
1386
|
+
return n && !Zt[i] && (Zt[i] = !0), e ? e(a, i, s) : !0;
|
|
1387
1387
|
};
|
|
1388
1388
|
};
|
|
1389
1389
|
function oa(t, e, n) {
|
|
@@ -1407,7 +1407,7 @@ const yt = {
|
|
|
1407
1407
|
assertOptions: oa,
|
|
1408
1408
|
validators: Ft
|
|
1409
1409
|
}, G = yt.validators;
|
|
1410
|
-
class
|
|
1410
|
+
class Z {
|
|
1411
1411
|
constructor(e) {
|
|
1412
1412
|
this.defaults = e, this.interceptors = {
|
|
1413
1413
|
request: new zt(),
|
|
@@ -1505,7 +1505,7 @@ class Y {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1508
|
-
|
|
1508
|
+
Z.prototype[e] = function(n, r) {
|
|
1509
1509
|
return this.request(te(r || {}, {
|
|
1510
1510
|
method: e,
|
|
1511
1511
|
url: n,
|
|
@@ -1526,7 +1526,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1526
1526
|
}));
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
|
-
|
|
1529
|
+
Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
|
|
1530
1530
|
});
|
|
1531
1531
|
class Ct {
|
|
1532
1532
|
constructor(e) {
|
|
@@ -1678,13 +1678,13 @@ Object.entries(ht).forEach(([t, e]) => {
|
|
|
1678
1678
|
ht[e] = t;
|
|
1679
1679
|
});
|
|
1680
1680
|
function Jr(t) {
|
|
1681
|
-
const e = new
|
|
1682
|
-
return f.extend(n,
|
|
1681
|
+
const e = new Z(t), n = Or(Z.prototype.request, e);
|
|
1682
|
+
return f.extend(n, Z.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1683
1683
|
return Jr(te(t, o));
|
|
1684
1684
|
}, n;
|
|
1685
1685
|
}
|
|
1686
1686
|
const R = Jr(Ee);
|
|
1687
|
-
R.Axios =
|
|
1687
|
+
R.Axios = Z;
|
|
1688
1688
|
R.CanceledError = fe;
|
|
1689
1689
|
R.CancelToken = Ct;
|
|
1690
1690
|
R.isCancel = kr;
|
|
@@ -1703,7 +1703,7 @@ R.formToJSON = (t) => Lr(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
|
1703
1703
|
R.getAdapter = Wr.getAdapter;
|
|
1704
1704
|
R.HttpStatusCode = ht;
|
|
1705
1705
|
R.default = R;
|
|
1706
|
-
var
|
|
1706
|
+
var Yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function sa(t) {
|
|
1708
1708
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1709
1709
|
}
|
|
@@ -1794,31 +1794,31 @@ var ca = Error, ua = EvalError, fa = RangeError, pa = ReferenceError, Vr = Synta
|
|
|
1794
1794
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1795
1795
|
}
|
|
1796
1796
|
return o;
|
|
1797
|
-
}, Pa = Ra, Nt = Function.prototype.bind || Pa, Ta = Function.prototype.call, xa = Object.prototype.hasOwnProperty, Fa = Nt, Ca = Fa.call(Ta, xa), w, Na = ca, Da = ua, _a = fa, Ia = pa, se = Vr, ie = Ae, $a = da, Kr = Function,
|
|
1797
|
+
}, Pa = Ra, Nt = Function.prototype.bind || Pa, Ta = Function.prototype.call, xa = Object.prototype.hasOwnProperty, Fa = Nt, Ca = Fa.call(Ta, xa), w, Na = ca, Da = ua, _a = fa, Ia = pa, se = Vr, ie = Ae, $a = da, Kr = Function, Ze = function(t) {
|
|
1798
1798
|
try {
|
|
1799
1799
|
return Kr('"use strict"; return (' + t + ").constructor;")();
|
|
1800
1800
|
} catch {
|
|
1801
1801
|
}
|
|
1802
|
-
},
|
|
1803
|
-
if (
|
|
1802
|
+
}, Y = Object.getOwnPropertyDescriptor;
|
|
1803
|
+
if (Y)
|
|
1804
1804
|
try {
|
|
1805
|
-
|
|
1805
|
+
Y({}, "");
|
|
1806
1806
|
} catch {
|
|
1807
|
-
|
|
1807
|
+
Y = null;
|
|
1808
1808
|
}
|
|
1809
|
-
var
|
|
1809
|
+
var Ye = function() {
|
|
1810
1810
|
throw new ie();
|
|
1811
|
-
}, Ba =
|
|
1811
|
+
}, Ba = Y ? function() {
|
|
1812
1812
|
try {
|
|
1813
|
-
return arguments.callee,
|
|
1813
|
+
return arguments.callee, Ye;
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
try {
|
|
1816
|
-
return
|
|
1816
|
+
return Y(arguments, "callee").get;
|
|
1817
1817
|
} catch {
|
|
1818
|
-
return
|
|
1818
|
+
return Ye;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
|
-
}() :
|
|
1821
|
+
}() : Ye, ne = ma(), Ua = va(), x = Object.getPrototypeOf || (Ua ? function(t) {
|
|
1822
1822
|
return t.__proto__;
|
|
1823
1823
|
} : null), ae = {}, La = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), ee = {
|
|
1824
1824
|
__proto__: null,
|
|
@@ -1900,11 +1900,11 @@ if (x)
|
|
|
1900
1900
|
var Ma = function t(e) {
|
|
1901
1901
|
var n;
|
|
1902
1902
|
if (e === "%AsyncFunction%")
|
|
1903
|
-
n =
|
|
1903
|
+
n = Ze("async function () {}");
|
|
1904
1904
|
else if (e === "%GeneratorFunction%")
|
|
1905
|
-
n =
|
|
1905
|
+
n = Ze("function* () {}");
|
|
1906
1906
|
else if (e === "%AsyncGeneratorFunction%")
|
|
1907
|
-
n =
|
|
1907
|
+
n = Ze("async function* () {}");
|
|
1908
1908
|
else if (e === "%AsyncGenerator%") {
|
|
1909
1909
|
var r = t("%AsyncGeneratorFunction%");
|
|
1910
1910
|
r && (n = r.prototype);
|
|
@@ -2010,8 +2010,8 @@ var Ma = function t(e) {
|
|
|
2010
2010
|
throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
var m =
|
|
2013
|
+
if (Y && c + 1 >= r.length) {
|
|
2014
|
+
var m = Y(s, d);
|
|
2015
2015
|
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2016
2016
|
} else
|
|
2017
2017
|
p = Be(s, d), s = s[d];
|
|
@@ -2064,10 +2064,10 @@ var Xr = De, ar = Dt(), Ka = Vr, oe = Ae, ir = Xr, Qa = function(e, n, r) {
|
|
|
2064
2064
|
e[n] = r;
|
|
2065
2065
|
else
|
|
2066
2066
|
throw new Ka("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2067
|
-
}, mt = Dt(),
|
|
2067
|
+
}, mt = Dt(), Zr = function() {
|
|
2068
2068
|
return !!mt;
|
|
2069
2069
|
};
|
|
2070
|
-
|
|
2070
|
+
Zr.hasArrayLengthDefineBug = function() {
|
|
2071
2071
|
if (!mt)
|
|
2072
2072
|
return null;
|
|
2073
2073
|
try {
|
|
@@ -2076,7 +2076,7 @@ Yr.hasArrayLengthDefineBug = function() {
|
|
|
2076
2076
|
return !0;
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
var Xa =
|
|
2079
|
+
var Xa = Zr, Za = pe, sr = Qa, Ya = Xa(), lr = Xr, cr = Ae, ei = Za("%Math.floor%"), ti = function(e, n) {
|
|
2080
2080
|
if (typeof e != "function")
|
|
2081
2081
|
throw new cr("`fn` is not a function");
|
|
2082
2082
|
if (typeof n != "number" || n < 0 || n > 4294967295 || ei(n) !== n)
|
|
@@ -2086,7 +2086,7 @@ var Xa = Yr, Ya = pe, sr = Qa, Za = Xa(), lr = Xr, cr = Ae, ei = Ya("%Math.floor
|
|
|
2086
2086
|
var i = lr(e, "length");
|
|
2087
2087
|
i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
|
|
2088
2088
|
}
|
|
2089
|
-
return (o || a || !r) && (
|
|
2089
|
+
return (o || a || !r) && (Ya ? sr(
|
|
2090
2090
|
/** @type {Parameters<define>[0]} */
|
|
2091
2091
|
e,
|
|
2092
2092
|
"length",
|
|
@@ -2117,8 +2117,8 @@ var Xa = Yr, Ya = pe, sr = Qa, Za = Xa(), lr = Xr, cr = Ae, ei = Ya("%Math.floor
|
|
|
2117
2117
|
};
|
|
2118
2118
|
u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
|
|
2119
2119
|
})(Qr);
|
|
2120
|
-
var ri = Qr.exports,
|
|
2121
|
-
var r =
|
|
2120
|
+
var ri = Qr.exports, Yr = pe, en = ri, ni = en(Yr("String.prototype.indexOf")), oi = function(e, n) {
|
|
2121
|
+
var r = Yr(e, !!n);
|
|
2122
2122
|
return typeof r == "function" && ni(e, ".prototype.") > -1 ? en(r) : r;
|
|
2123
2123
|
};
|
|
2124
2124
|
const ai = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2247,7 +2247,7 @@ var bt = si, vr = bt.custom, br = on(vr) ? vr : null, gi = function t(e, n, r, o
|
|
|
2247
2247
|
return me(d(String(e)));
|
|
2248
2248
|
if (typeof window < "u" && e === window)
|
|
2249
2249
|
return "{ [object Window] }";
|
|
2250
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
2250
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Yt < "u" && e === Yt)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!bi(e) && !wr(e)) {
|
|
2253
2253
|
var N = Pe(e, d), q = mr ? mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? $t.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + M.call(yr.call([], j || [], U || []), ": ") + "] " : "");
|
|
@@ -2559,7 +2559,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2559
2559
|
for (var r = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
|
|
2560
2560
|
typeof e[o] < "u" && (r[o] = e[o]);
|
|
2561
2561
|
return r;
|
|
2562
|
-
},
|
|
2562
|
+
}, Zi = function t(e, n, r) {
|
|
2563
2563
|
if (!n)
|
|
2564
2564
|
return e;
|
|
2565
2565
|
if (typeof n != "object") {
|
|
@@ -2584,7 +2584,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2584
2584
|
var s = n[i];
|
|
2585
2585
|
return it.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
|
|
2586
2586
|
}, o);
|
|
2587
|
-
},
|
|
2587
|
+
}, Yi = function(e, n) {
|
|
2588
2588
|
return Object.keys(n).reduce(function(r, o) {
|
|
2589
2589
|
return r[o] = n[o], r;
|
|
2590
2590
|
}, e);
|
|
@@ -2651,7 +2651,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2651
2651
|
return n(e);
|
|
2652
2652
|
}, un = {
|
|
2653
2653
|
arrayToObject: cn,
|
|
2654
|
-
assign:
|
|
2654
|
+
assign: Yi,
|
|
2655
2655
|
combine: as,
|
|
2656
2656
|
compact: rs,
|
|
2657
2657
|
decode: es,
|
|
@@ -2659,7 +2659,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2659
2659
|
isBuffer: os,
|
|
2660
2660
|
isRegExp: ns,
|
|
2661
2661
|
maybeMap: is,
|
|
2662
|
-
merge:
|
|
2662
|
+
merge: Zi
|
|
2663
2663
|
}, fn = Ji, _e = un, be = Ut, ss = Object.prototype.hasOwnProperty, pn = {
|
|
2664
2664
|
brackets: function(e) {
|
|
2665
2665
|
return e + "[]";
|
|
@@ -3048,13 +3048,13 @@ function At(t, e) {
|
|
|
3048
3048
|
var Fs = At(xs, { path: "/" });
|
|
3049
3049
|
const Cs = {
|
|
3050
3050
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3051
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3051
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
3052
3052
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3053
3053
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3054
3054
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3055
3055
|
"网络异常,请检查您的网络情况": {
|
|
3056
3056
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3057
|
-
en: "Network
|
|
3057
|
+
en: "Network error, please check your network status",
|
|
3058
3058
|
_appCode: "framework"
|
|
3059
3059
|
}
|
|
3060
3060
|
};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "6.4.0-dev.55.
|
|
3
|
+
"version": "6.4.0-dev.55.14",
|
|
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-dev.55.
|
|
12
|
+
"@das-fed/utils": "6.4.0-dev.55.14",
|
|
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-dev.55.
|
|
25
|
-
"@das-fed/web": "6.4.0-dev.55.
|
|
24
|
+
"@das-fed/cli": "6.4.0-dev.55.14",
|
|
25
|
+
"@das-fed/web": "6.4.0-dev.55.14",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|