@das-fed/utils 6.4.0-test.7.1 → 6.4.0-test.8.1
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.d.ts +0 -5
- package/api-services/i18n/index.js +6 -7
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +157 -157
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/file/index.js +45 -44
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js +75 -74
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +51 -50
- package/api-services/modules/iot/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +16 -12
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/create-api-service/sso/index.js +6 -1
- package/create-api-service/sso/index.js.gz +0 -0
- package/esm-map.json +2 -1
- package/package.json +4 -4
|
@@ -15,11 +15,11 @@ function Pr(t, e) {
|
|
|
15
15
|
const { toString: _n } = Object.prototype, { getPrototypeOf: Tt } = Object, qe = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = _n.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
18
|
+
})(/* @__PURE__ */ Object.create(null)), L = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), ze = (t) => (e) => typeof e === t, { isArray: pe } = Array, Ee = ze("undefined");
|
|
19
19
|
function In(t) {
|
|
20
20
|
return t !== null && !Ee(t) && t.constructor !== null && !Ee(t.constructor) && I(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
|
-
const Tr =
|
|
22
|
+
const Tr = L("ArrayBuffer");
|
|
23
23
|
function $n(t) {
|
|
24
24
|
let e;
|
|
25
25
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Tr(t.buffer), e;
|
|
@@ -29,11 +29,11 @@ const Bn = ze("string"), I = ze("function"), xr = ze("number"), He = (t) => t !=
|
|
|
29
29
|
return !1;
|
|
30
30
|
const e = Tt(t);
|
|
31
31
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
32
|
-
}, Ln =
|
|
32
|
+
}, Ln = L("Date"), kn = L("File"), Mn = L("Blob"), jn = L("FileList"), qn = (t) => He(t) && I(t.pipe), zn = (t) => {
|
|
33
33
|
let e;
|
|
34
34
|
return t && (typeof FormData == "function" && t instanceof FormData || I(t.append) && ((e = qe(t)) === "formdata" || // detect form-data instance
|
|
35
35
|
e === "object" && I(t.toString) && t.toString() === "[object FormData]"));
|
|
36
|
-
}, Hn =
|
|
36
|
+
}, Hn = L("URLSearchParams"), [Wn, Gn, Jn, Vn] = ["ReadableStream", "Request", "Response", "Headers"].map(L), Kn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
37
|
function Ae(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
38
38
|
if (t === null || typeof t > "u")
|
|
39
39
|
return;
|
|
@@ -109,12 +109,12 @@ const Qn = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
109
109
|
for (; (n = t.exec(e)) !== null; )
|
|
110
110
|
r.push(n);
|
|
111
111
|
return r;
|
|
112
|
-
}, ao =
|
|
112
|
+
}, ao = L("HTMLFormElement"), io = (t) => t.toLowerCase().replace(
|
|
113
113
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
114
114
|
function(n, r, o) {
|
|
115
115
|
return r.toUpperCase() + o;
|
|
116
116
|
}
|
|
117
|
-
), jt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), so =
|
|
117
|
+
), jt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), so = L("RegExp"), Nr = (t, e) => {
|
|
118
118
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
119
119
|
Ae(n, (o, a) => {
|
|
120
120
|
let i;
|
|
@@ -174,7 +174,7 @@ const ho = (t) => {
|
|
|
174
174
|
return r;
|
|
175
175
|
};
|
|
176
176
|
return n(t, 0);
|
|
177
|
-
}, mo =
|
|
177
|
+
}, mo = L("AsyncFunction"), go = (t) => t && (He(t) || I(t)) && I(t.then) && I(t.catch), _r = ((t, e) => t ? setImmediate : e ? ((n, r) => (Y.addEventListener("message", ({ source: o, data: a }) => {
|
|
178
178
|
o === Y && a === n && r.length && r.shift()();
|
|
179
179
|
}, !1), (o) => {
|
|
180
180
|
r.push(o), Y.postMessage(n, "*");
|
|
@@ -214,7 +214,7 @@ const ho = (t) => {
|
|
|
214
214
|
inherits: Zn,
|
|
215
215
|
toFlatObject: Yn,
|
|
216
216
|
kindOf: qe,
|
|
217
|
-
kindOfTest:
|
|
217
|
+
kindOfTest: L,
|
|
218
218
|
endsWith: eo,
|
|
219
219
|
toArray: to,
|
|
220
220
|
forEachEntry: no,
|
|
@@ -1265,8 +1265,8 @@ const ra = async (t) => {
|
|
|
1265
1265
|
const v = yt && (l === "stream" || l === "response");
|
|
1266
1266
|
if (yt && (s || v && m)) {
|
|
1267
1267
|
const A = {};
|
|
1268
|
-
["status", "statusText", "headers"].forEach((
|
|
1269
|
-
A[
|
|
1268
|
+
["status", "statusText", "headers"].forEach((k) => {
|
|
1269
|
+
A[k] = E[k];
|
|
1270
1270
|
});
|
|
1271
1271
|
const F = f.toFiniteNumber(E.headers.get("content-length")), [N, z] = s && Jt(
|
|
1272
1272
|
F,
|
|
@@ -2125,7 +2125,7 @@ const si = {}, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2125
2125
|
__proto__: null,
|
|
2126
2126
|
default: si
|
|
2127
2127
|
}, Symbol.toStringTag, { value: "Module" })), ci = /* @__PURE__ */ ua(li);
|
|
2128
|
-
var It = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && It ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Me = It && nt && typeof nt.get == "function" ? nt.get : null, pr = It && Map.prototype.forEach, $t = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && $t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, je = $t && ot && typeof ot.get == "function" ? ot.get : null, dr = $t && Set.prototype.forEach, ui = typeof WeakMap == "function" && WeakMap.prototype, be = ui ? WeakMap.prototype.has : null, fi = typeof WeakSet == "function" && WeakSet.prototype, we = fi ? WeakSet.prototype.has : null, pi = typeof WeakRef == "function" && WeakRef.prototype, yr = pi ? WeakRef.prototype.deref : null, di = Boolean.prototype.valueOf, yi = Object.prototype.toString, hi = Function.prototype.toString, mi = String.prototype.match, Bt = String.prototype.slice, Q = String.prototype.replace, gi = String.prototype.toUpperCase, hr = String.prototype.toLowerCase, nn = RegExp.prototype.test, mr = Array.prototype.concat,
|
|
2128
|
+
var It = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && It ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Me = It && nt && typeof nt.get == "function" ? nt.get : null, pr = It && Map.prototype.forEach, $t = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && $t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, je = $t && ot && typeof ot.get == "function" ? ot.get : null, dr = $t && Set.prototype.forEach, ui = typeof WeakMap == "function" && WeakMap.prototype, be = ui ? WeakMap.prototype.has : null, fi = typeof WeakSet == "function" && WeakSet.prototype, we = fi ? WeakSet.prototype.has : null, pi = typeof WeakRef == "function" && WeakRef.prototype, yr = pi ? WeakRef.prototype.deref : null, di = Boolean.prototype.valueOf, yi = Object.prototype.toString, hi = Function.prototype.toString, mi = String.prototype.match, Bt = String.prototype.slice, Q = String.prototype.replace, gi = String.prototype.toUpperCase, hr = String.prototype.toLowerCase, nn = RegExp.prototype.test, mr = Array.prototype.concat, q = Array.prototype.join, vi = Array.prototype.slice, gr = Math.floor, bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, at = Object.getOwnPropertySymbols, wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ue = typeof Symbol == "function" && typeof Symbol.iterator == "object", C = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ue || !0) ? Symbol.toStringTag : null, on = Object.prototype.propertyIsEnumerable, vr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2129
2129
|
return t.__proto__;
|
|
2130
2130
|
} : null);
|
|
2131
2131
|
function br(t, e) {
|
|
@@ -2192,7 +2192,7 @@ var St = ci, wr = St.custom, Sr = sn(wr) ? wr : null, bi = function t(e, n, r, o
|
|
|
2192
2192
|
}
|
|
2193
2193
|
if (typeof e == "function" && !Er(e)) {
|
|
2194
2194
|
var g = xi(e), y = xe(e, d);
|
|
2195
|
-
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
2195
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + q.call(y, ", ") + " }" : "");
|
|
2196
2196
|
}
|
|
2197
2197
|
if (sn(e)) {
|
|
2198
2198
|
var m = ue ? Q.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : wt.call(e);
|
|
@@ -2207,11 +2207,11 @@ var St = ci, wr = St.custom, Sr = sn(wr) ? wr : null, bi = function t(e, n, r, o
|
|
|
2207
2207
|
if (e.length === 0)
|
|
2208
2208
|
return "[]";
|
|
2209
2209
|
var v = xe(e, d);
|
|
2210
|
-
return p && !Bi(v) ? "[" + At(v, p) + "]" : "[ " +
|
|
2210
|
+
return p && !Bi(v) ? "[" + At(v, p) + "]" : "[ " + q.call(v, ", ") + " ]";
|
|
2211
2211
|
}
|
|
2212
2212
|
if (Ei(e)) {
|
|
2213
2213
|
var T = xe(e, d);
|
|
2214
|
-
return !("cause" in Error.prototype) && "cause" in e && !on.call(e, "cause") ? "{ [" + String(e) + "] " +
|
|
2214
|
+
return !("cause" in Error.prototype) && "cause" in e && !on.call(e, "cause") ? "{ [" + String(e) + "] " + q.call(mr.call("[cause]: " + d(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + q.call(T, ", ") + " }";
|
|
2215
2215
|
}
|
|
2216
2216
|
if (typeof e == "object" && i) {
|
|
2217
2217
|
if (Sr && typeof e[Sr] == "function" && St)
|
|
@@ -2250,8 +2250,8 @@ var St = ci, wr = St.custom, Sr = sn(wr) ? wr : null, bi = function t(e, n, r, o
|
|
|
2250
2250
|
if (typeof globalThis < "u" && e === globalThis || typeof tr < "u" && e === tr)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!Si(e) && !Er(e)) {
|
|
2253
|
-
var N = xe(e, d), z = vr ? vr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
2254
|
-
return N.length === 0 ? oe + "{}" : p ? oe + "{" + At(N, p) + "}" : oe + "{ " +
|
|
2253
|
+
var N = xe(e, d), z = vr ? vr(e) === Object.prototype : e instanceof Object || e.constructor === Object, k = e instanceof Object ? "" : "null prototype", H = !z && C && Object(e) === e && C in e ? Bt.call(X(e), 8, -1) : k ? "Object" : "", Te = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", oe = Te + (H || k ? "[" + q.call(mr.call([], H || [], k || []), ": ") + "] " : "");
|
|
2254
|
+
return N.length === 0 ? oe + "{}" : p ? oe + "{" + At(N, p) + "}" : oe + "{ " + q.call(N, ", ") + " }";
|
|
2255
2255
|
}
|
|
2256
2256
|
return String(e);
|
|
2257
2257
|
};
|
|
@@ -2425,7 +2425,7 @@ function it(t) {
|
|
|
2425
2425
|
return t + " { ? }";
|
|
2426
2426
|
}
|
|
2427
2427
|
function Ar(t, e, n, r) {
|
|
2428
|
-
var o = r ? At(n, r) :
|
|
2428
|
+
var o = r ? At(n, r) : q.call(n, ", ");
|
|
2429
2429
|
return t + " (" + e + ") {" + o + "}";
|
|
2430
2430
|
}
|
|
2431
2431
|
function Bi(t) {
|
|
@@ -2440,12 +2440,12 @@ function Ui(t, e) {
|
|
|
2440
2440
|
if (t.indent === " ")
|
|
2441
2441
|
n = " ";
|
|
2442
2442
|
else if (typeof t.indent == "number" && t.indent > 0)
|
|
2443
|
-
n =
|
|
2443
|
+
n = q.call(Array(t.indent + 1), " ");
|
|
2444
2444
|
else
|
|
2445
2445
|
return null;
|
|
2446
2446
|
return {
|
|
2447
2447
|
base: n,
|
|
2448
|
-
prev:
|
|
2448
|
+
prev: q.call(Array(e + 1), n)
|
|
2449
2449
|
};
|
|
2450
2450
|
}
|
|
2451
2451
|
function At(t, e) {
|
|
@@ -2453,7 +2453,7 @@ function At(t, e) {
|
|
|
2453
2453
|
return "";
|
|
2454
2454
|
var n = `
|
|
2455
2455
|
` + e.prev + e.base;
|
|
2456
|
-
return n +
|
|
2456
|
+
return n + q.call(t, "," + n) + `
|
|
2457
2457
|
` + e.prev;
|
|
2458
2458
|
}
|
|
2459
2459
|
function xe(t, e) {
|
|
@@ -2542,7 +2542,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2542
2542
|
},
|
|
2543
2543
|
RFC1738: st.RFC1738,
|
|
2544
2544
|
RFC3986: st.RFC3986
|
|
2545
|
-
}, Zi = Lt, lt = Object.prototype.hasOwnProperty, Z = Array.isArray,
|
|
2545
|
+
}, Zi = Lt, lt = Object.prototype.hasOwnProperty, Z = Array.isArray, M = function() {
|
|
2546
2546
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2547
2547
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2548
2548
|
return t;
|
|
@@ -2613,18 +2613,18 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2613
2613
|
continue;
|
|
2614
2614
|
}
|
|
2615
2615
|
if (d < 128) {
|
|
2616
|
-
c[c.length] =
|
|
2616
|
+
c[c.length] = M[d];
|
|
2617
2617
|
continue;
|
|
2618
2618
|
}
|
|
2619
2619
|
if (d < 2048) {
|
|
2620
|
-
c[c.length] =
|
|
2620
|
+
c[c.length] = M[192 | d >> 6] + M[128 | d & 63];
|
|
2621
2621
|
continue;
|
|
2622
2622
|
}
|
|
2623
2623
|
if (d < 55296 || d >= 57344) {
|
|
2624
|
-
c[c.length] =
|
|
2624
|
+
c[c.length] = M[224 | d >> 12] + M[128 | d >> 6 & 63] + M[128 | d & 63];
|
|
2625
2625
|
continue;
|
|
2626
2626
|
}
|
|
2627
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2627
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = M[240 | d >> 18] + M[128 | d >> 12 & 63] + M[128 | d >> 6 & 63] + M[128 | d & 63];
|
|
2628
2628
|
}
|
|
2629
2629
|
s += c.join("");
|
|
2630
2630
|
}
|
|
@@ -2671,8 +2671,8 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2671
2671
|
repeat: function(e) {
|
|
2672
2672
|
return e;
|
|
2673
2673
|
}
|
|
2674
|
-
},
|
|
2675
|
-
us.apply(t,
|
|
2674
|
+
}, j = Array.isArray, us = Array.prototype.push, hn = function(t, e) {
|
|
2675
|
+
us.apply(t, j(e) ? e : [e]);
|
|
2676
2676
|
}, fs = Date.prototype.toISOString, Or = Se.default, P = {
|
|
2677
2677
|
addQueryPrefix: !1,
|
|
2678
2678
|
allowDots: !1,
|
|
@@ -2706,7 +2706,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2706
2706
|
}
|
|
2707
2707
|
typeof T.get(ut) > "u" && (A = 0);
|
|
2708
2708
|
}
|
|
2709
|
-
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" &&
|
|
2709
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && j(v) && (v = $e.maybeMap(v, function(Ve) {
|
|
2710
2710
|
return Ve instanceof Date ? g(Ve) : Ve;
|
|
2711
2711
|
})), v === null) {
|
|
2712
2712
|
if (i)
|
|
@@ -2720,28 +2720,28 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2720
2720
|
}
|
|
2721
2721
|
return [m(n) + "=" + m(String(v))];
|
|
2722
2722
|
}
|
|
2723
|
-
var
|
|
2723
|
+
var k = [];
|
|
2724
2724
|
if (typeof v > "u")
|
|
2725
|
-
return
|
|
2725
|
+
return k;
|
|
2726
2726
|
var H;
|
|
2727
|
-
if (r === "comma" &&
|
|
2727
|
+
if (r === "comma" && j(v))
|
|
2728
2728
|
h && l && (v = $e.maybeMap(v, l)), H = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2729
|
-
else if (
|
|
2729
|
+
else if (j(c))
|
|
2730
2730
|
H = c;
|
|
2731
2731
|
else {
|
|
2732
2732
|
var Te = Object.keys(v);
|
|
2733
2733
|
H = p ? Te.sort(p) : Te;
|
|
2734
2734
|
}
|
|
2735
|
-
var oe = u ? n.replace(/\./g, "%2E") : n, $ = o &&
|
|
2736
|
-
if (a &&
|
|
2735
|
+
var oe = u ? n.replace(/\./g, "%2E") : n, $ = o && j(v) && v.length === 1 ? oe + "[]" : oe;
|
|
2736
|
+
if (a && j(v) && v.length === 0)
|
|
2737
2737
|
return $ + "[]";
|
|
2738
2738
|
for (var W = 0; W < H.length; ++W) {
|
|
2739
2739
|
var G = H[W], me = typeof G == "object" && typeof G.value < "u" ? G.value : v[G];
|
|
2740
2740
|
if (!(s && me === null)) {
|
|
2741
|
-
var Je = d && u ? G.replace(/\./g, "%2E") : G, wn =
|
|
2741
|
+
var Je = d && u ? G.replace(/\./g, "%2E") : G, wn = j(v) ? typeof r == "function" ? r($, Je) : $ : $ + (d ? "." + Je : "[" + Je + "]");
|
|
2742
2742
|
E.set(e, A);
|
|
2743
2743
|
var Mt = dn();
|
|
2744
|
-
Mt.set(ut, E), hn(
|
|
2744
|
+
Mt.set(ut, E), hn(k, t(
|
|
2745
2745
|
me,
|
|
2746
2746
|
wn,
|
|
2747
2747
|
r,
|
|
@@ -2750,7 +2750,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2750
2750
|
i,
|
|
2751
2751
|
s,
|
|
2752
2752
|
u,
|
|
2753
|
-
r === "comma" && h &&
|
|
2753
|
+
r === "comma" && h && j(v) ? null : l,
|
|
2754
2754
|
c,
|
|
2755
2755
|
p,
|
|
2756
2756
|
d,
|
|
@@ -2763,7 +2763,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2763
2763
|
));
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
|
-
return
|
|
2766
|
+
return k;
|
|
2767
2767
|
}, ys = function(e) {
|
|
2768
2768
|
if (!e)
|
|
2769
2769
|
return P;
|
|
@@ -2783,7 +2783,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2783
2783
|
r = e.format;
|
|
2784
2784
|
}
|
|
2785
2785
|
var o = Se.formatters[r], a = P.filter;
|
|
2786
|
-
(typeof e.filter == "function" ||
|
|
2786
|
+
(typeof e.filter == "function" || j(e.filter)) && (a = e.filter);
|
|
2787
2787
|
var i;
|
|
2788
2788
|
if (e.arrayFormat in yn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2789
2789
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2811,7 +2811,7 @@ var un = ye, he = ii, Li = bi, ki = Re, Ce = un("%WeakMap%", !0), Fe = un("%Map%
|
|
|
2811
2811
|
};
|
|
2812
2812
|
}, hs = function(t, e) {
|
|
2813
2813
|
var n = t, r = ys(e), o, a;
|
|
2814
|
-
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) :
|
|
2814
|
+
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : j(r.filter) && (a = r.filter, o = a);
|
|
2815
2815
|
var i = [];
|
|
2816
2816
|
if (typeof n != "object" || n === null)
|
|
2817
2817
|
return "";
|
|
@@ -3099,7 +3099,7 @@ const kt = Rr(), gn = kt.sso ?? !0, _s = kt.i18n ?? !0, vn = kt.noRedireLogin ??
|
|
|
3099
3099
|
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
|
|
3100
3100
|
}
|
|
3101
3101
|
return { ...o, code: n, msg: r, error: t };
|
|
3102
|
-
},
|
|
3102
|
+
}, B = (t, e) => {
|
|
3103
3103
|
const n = R.create();
|
|
3104
3104
|
return En(n, async (r) => {
|
|
3105
3105
|
const o = Rr();
|
|
@@ -3124,17 +3124,18 @@ const kt = Rr(), gn = kt.sso ?? !0, _s = kt.i18n ?? !0, vn = kt.noRedireLogin ??
|
|
|
3124
3124
|
}
|
|
3125
3125
|
return r.params = s, r.headers.Timezone = Pt.tz.guess(), r.headers["X-Origin"] = location.origin, r;
|
|
3126
3126
|
});
|
|
3127
|
-
},
|
|
3128
|
-
thingmodel:
|
|
3129
|
-
deviceManage:
|
|
3130
|
-
product:
|
|
3131
|
-
productStorage:
|
|
3127
|
+
}, U = "v1", Ws = B(`/api/iot/${U}`), Gs = {
|
|
3128
|
+
thingmodel: B(`/api/iot-device/thingmodel/${U}`),
|
|
3129
|
+
deviceManage: B(`/api/iot-device/devicemanage/${U}`),
|
|
3130
|
+
product: B(`/api/iot-device/product/${U}`),
|
|
3131
|
+
productStorage: B(`/api/iot-device/product-storage/${U}`)
|
|
3132
3132
|
}, Js = {
|
|
3133
|
-
projectDevice:
|
|
3134
|
-
deviceRules:
|
|
3135
|
-
project:
|
|
3136
|
-
}, Vs =
|
|
3133
|
+
projectDevice: B(`/api/device-relation/deviceproject/${U}`),
|
|
3134
|
+
deviceRules: B(`/api/device-relation/devicerule/${U}`),
|
|
3135
|
+
project: B(`/api/device-relation/project/${U}`)
|
|
3136
|
+
}, Vs = B(`/api/oss/minio/${U}`), Ks = B(`/api/progress/accessor/${U}`), Qs = B(`/api/dms/analysis/${U}`);
|
|
3137
3137
|
export {
|
|
3138
|
+
Qs as analyApi,
|
|
3138
3139
|
Ws as iot,
|
|
3139
3140
|
Vs as iotMinio,
|
|
3140
3141
|
Gs as iotModules,
|
|
Binary file
|
|
@@ -1697,20 +1697,24 @@ E.getAdapter = Ge.getAdapter;
|
|
|
1697
1697
|
E.HttpStatusCode = ae;
|
|
1698
1698
|
E.default = E;
|
|
1699
1699
|
const Ln = async (e) => {
|
|
1700
|
-
var
|
|
1700
|
+
var n;
|
|
1701
1701
|
const t = {
|
|
1702
1702
|
personalInfo: "/api/personal-center/personal-server/v1/info"
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1703
|
+
};
|
|
1704
|
+
try {
|
|
1705
|
+
const r = await E.create().get(t.personalInfo, {
|
|
1706
|
+
baseURL: Ye().baseURL,
|
|
1707
|
+
params: {
|
|
1708
|
+
project: (n = Ze()) == null ? void 0 : n.id,
|
|
1709
|
+
timestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
1710
|
+
},
|
|
1711
|
+
headers: {
|
|
1712
|
+
Authorization: `Bearer ${e}`
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
r != null && r.data && sessionStorage.setItem("userInfo", JSON.stringify(r.data));
|
|
1716
|
+
} catch {
|
|
1717
|
+
}
|
|
1714
1718
|
};
|
|
1715
1719
|
export {
|
|
1716
1720
|
Ln as setPersonalInfo
|
|
Binary file
|
|
@@ -2025,7 +2025,12 @@ const Br = async () => {
|
|
|
2025
2025
|
if (Ee) return Ee(e);
|
|
2026
2026
|
e.logout = "true", n && (e.locale = "locale");
|
|
2027
2027
|
const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${F.oauth}?${r}`;
|
|
2028
|
-
localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove()
|
|
2028
|
+
localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove();
|
|
2029
|
+
try {
|
|
2030
|
+
b.create().get(F.logoutCurpage, { baseURL: t });
|
|
2031
|
+
} catch {
|
|
2032
|
+
}
|
|
2033
|
+
window.__isAutoCloseApp = !1, location.replace(o);
|
|
2029
2034
|
};
|
|
2030
2035
|
Dr($);
|
|
2031
2036
|
const Ir = async (e) => {
|
|
Binary file
|
package/esm-map.json
CHANGED
|
@@ -138,5 +138,6 @@
|
|
|
138
138
|
"extractFilename": "/common-tools/extract-file-name/index",
|
|
139
139
|
"setBrowseTitle": "/common-tools/update-browser-title/index",
|
|
140
140
|
"getPersonalConfig": "/common-info/index",
|
|
141
|
-
"getProjectMessage": "/common-info/index"
|
|
141
|
+
"getProjectMessage": "/common-info/index",
|
|
142
|
+
"analyApi": "/api-services/modules/iot/index"
|
|
142
143
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "6.4.0-test.
|
|
3
|
+
"version": "6.4.0-test.8.1",
|
|
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-test.
|
|
12
|
+
"@das-fed/utils": "6.4.0-test.8.1",
|
|
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-test.
|
|
25
|
-
"@das-fed/web": "6.4.0-test.
|
|
24
|
+
"@das-fed/cli": "6.4.0-test.8.1",
|
|
25
|
+
"@das-fed/web": "6.4.0-test.8.1",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|