@das-fed/utils 7.1.0-dev.32 → 7.1.0-dev.33
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/index.js +978 -960
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +782 -800
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +800 -782
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +800 -782
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +800 -782
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +952 -970
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +786 -800
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/link/index.js +800 -782
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +794 -776
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +782 -800
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +800 -782
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +786 -800
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +782 -800
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +782 -800
- package/api-services/modules/tool/index.js.gz +0 -0
- package/create-api-service/index.js +781 -799
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +1 -1
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +23 -23
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -1995,7 +1995,7 @@ const me = "loginType", U = (e) => new URL(location.href).searchParams.get(e), v
|
|
|
1995
1995
|
}) : i();
|
|
1996
1996
|
});
|
|
1997
1997
|
}
|
|
1998
|
-
}, Wr = "/api/justauth/client/v1/visitor/sso-param", Kr = "/api/justauth/client/v1/visitor/jmc/sso/status", Qr = "/api/justauth/client/v1/jmc/sso/logout", Pe = "thirdLogouSource", Gr = ["zhongshen", "jmc"], Xr = {
|
|
1998
|
+
}, Wr = "/api/justauth/client/v1/visitor/sso-param", Kr = "/api/justauth/client/v1/visitor/jmc/sso/status", Qr = "/api/justauth/client/v1/visitor/jmc/sso/logout", Pe = "thirdLogouSource", Gr = ["zhongshen", "jmc"], Xr = {
|
|
1999
1999
|
uat: "https://sso-uat.jmc.com.cn"
|
|
2000
2000
|
};
|
|
2001
2001
|
let je = "";
|
|
Binary file
|
|
@@ -119,14 +119,14 @@ const _t = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
|
|
|
119
119
|
function(n, r, s) {
|
|
120
120
|
return r.toUpperCase() + s;
|
|
121
121
|
}
|
|
122
|
-
), Re = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), qt = x("RegExp"),
|
|
122
|
+
), Re = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), qt = x("RegExp"), ve = (e, t) => {
|
|
123
123
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
124
124
|
H(n, (s, i) => {
|
|
125
125
|
let o;
|
|
126
126
|
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
127
127
|
}), Object.defineProperties(e, r);
|
|
128
128
|
}, Mt = (e) => {
|
|
129
|
-
|
|
129
|
+
ve(e, (t, n) => {
|
|
130
130
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
131
131
|
return !1;
|
|
132
132
|
const r = e[n];
|
|
@@ -148,8 +148,8 @@ const _t = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
|
|
|
148
148
|
};
|
|
149
149
|
return B(e) ? r(e) : r(String(e).split(t)), n;
|
|
150
150
|
}, zt = () => {
|
|
151
|
-
},
|
|
152
|
-
function
|
|
151
|
+
}, vt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
152
|
+
function $t(e) {
|
|
153
153
|
return !!(e && A(e.append) && e[Ie] === "FormData" && e[Q]);
|
|
154
154
|
}
|
|
155
155
|
const Jt = (e) => {
|
|
@@ -171,14 +171,14 @@ const Jt = (e) => {
|
|
|
171
171
|
return r;
|
|
172
172
|
};
|
|
173
173
|
return n(e, 0);
|
|
174
|
-
}, Vt = x("AsyncFunction"), Kt = (e) => e && (M(e) || A(e)) && A(e.then) && A(e.catch),
|
|
174
|
+
}, Vt = x("AsyncFunction"), Kt = (e) => e && (M(e) || A(e)) && A(e.then) && A(e.catch), $e = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: i }) => {
|
|
175
175
|
s === N && i === n && r.length && r.shift()();
|
|
176
176
|
}, !1), (s) => {
|
|
177
177
|
r.push(s), N.postMessage(n, "*");
|
|
178
178
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
179
179
|
typeof setImmediate == "function",
|
|
180
180
|
A(N.postMessage)
|
|
181
|
-
), Wt = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick ||
|
|
181
|
+
), Wt = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || $e, Gt = (e) => e != null && A(e[Q]), a = {
|
|
182
182
|
isArray: B,
|
|
183
183
|
isArrayBuffer: qe,
|
|
184
184
|
isBuffer: q,
|
|
@@ -221,20 +221,20 @@ const Jt = (e) => {
|
|
|
221
221
|
hasOwnProperty: Re,
|
|
222
222
|
hasOwnProp: Re,
|
|
223
223
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
224
|
-
reduceDescriptors:
|
|
224
|
+
reduceDescriptors: ve,
|
|
225
225
|
freezeMethods: Mt,
|
|
226
226
|
toObjectSet: Ht,
|
|
227
227
|
toCamelCase: It,
|
|
228
228
|
noop: zt,
|
|
229
|
-
toFiniteNumber:
|
|
229
|
+
toFiniteNumber: vt,
|
|
230
230
|
findKey: He,
|
|
231
231
|
global: N,
|
|
232
232
|
isContextDefined: ze,
|
|
233
|
-
isSpecCompliantForm:
|
|
233
|
+
isSpecCompliantForm: $t,
|
|
234
234
|
toJSONObject: Jt,
|
|
235
235
|
isAsyncFn: Vt,
|
|
236
236
|
isThenable: Kt,
|
|
237
|
-
setImmediate:
|
|
237
|
+
setImmediate: $e,
|
|
238
238
|
asap: Wt,
|
|
239
239
|
isIterable: Gt
|
|
240
240
|
};
|
|
@@ -1228,11 +1228,11 @@ const kn = async (e) => {
|
|
|
1228
1228
|
duplex: "half"
|
|
1229
1229
|
}), L;
|
|
1230
1230
|
if (a.isFormData(r) && (L = T.headers.get("content-type")) && u.setContentType(L), T.body) {
|
|
1231
|
-
const [P,
|
|
1231
|
+
const [P, v] = xe(
|
|
1232
1232
|
h,
|
|
1233
1233
|
W(_e(f))
|
|
1234
1234
|
);
|
|
1235
|
-
r = Le(T.body, Pe, P,
|
|
1235
|
+
r = Le(T.body, Pe, P, v);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
a.isString(d) || (d = d ? "include" : "omit");
|
|
@@ -1253,13 +1253,13 @@ const kn = async (e) => {
|
|
|
1253
1253
|
["status", "statusText", "headers"].forEach((Ee) => {
|
|
1254
1254
|
T[Ee] = E[Ee];
|
|
1255
1255
|
});
|
|
1256
|
-
const L = a.toFiniteNumber(E.headers.get("content-length")), [P,
|
|
1256
|
+
const L = a.toFiniteNumber(E.headers.get("content-length")), [P, v] = c && xe(
|
|
1257
1257
|
L,
|
|
1258
1258
|
W(_e(c), !0)
|
|
1259
1259
|
) || [];
|
|
1260
1260
|
E = new Response(
|
|
1261
1261
|
Le(E.body, Pe, P, () => {
|
|
1262
|
-
|
|
1262
|
+
v && v(), y && y();
|
|
1263
1263
|
}),
|
|
1264
1264
|
T
|
|
1265
1265
|
);
|
|
@@ -1713,7 +1713,7 @@ const {
|
|
|
1713
1713
|
mergeConfig: gr
|
|
1714
1714
|
} = g;
|
|
1715
1715
|
/*! js-cookie v3.0.5 | MIT */
|
|
1716
|
-
function
|
|
1716
|
+
function $(e) {
|
|
1717
1717
|
for (var t = 1; t < arguments.length; t++) {
|
|
1718
1718
|
var n = arguments[t];
|
|
1719
1719
|
for (var r in n)
|
|
@@ -1735,7 +1735,7 @@ var zn = {
|
|
|
1735
1735
|
function he(e, t) {
|
|
1736
1736
|
function n(s, i, o) {
|
|
1737
1737
|
if (!(typeof document > "u")) {
|
|
1738
|
-
o =
|
|
1738
|
+
o = $({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
1739
1739
|
var c = "";
|
|
1740
1740
|
for (var f in o)
|
|
1741
1741
|
o[f] && (c += "; " + f, o[f] !== !0 && (c += "=" + o[f].split(";")[0]));
|
|
@@ -1764,16 +1764,16 @@ function he(e, t) {
|
|
|
1764
1764
|
n(
|
|
1765
1765
|
s,
|
|
1766
1766
|
"",
|
|
1767
|
-
|
|
1767
|
+
$({}, i, {
|
|
1768
1768
|
expires: -1
|
|
1769
1769
|
})
|
|
1770
1770
|
);
|
|
1771
1771
|
},
|
|
1772
1772
|
withAttributes: function(s) {
|
|
1773
|
-
return he(this.converter,
|
|
1773
|
+
return he(this.converter, $({}, this.attributes, s));
|
|
1774
1774
|
},
|
|
1775
1775
|
withConverter: function(s) {
|
|
1776
|
-
return he(
|
|
1776
|
+
return he($({}, this.converter, s), this.attributes);
|
|
1777
1777
|
}
|
|
1778
1778
|
},
|
|
1779
1779
|
{
|
|
@@ -1783,10 +1783,10 @@ function he(e, t) {
|
|
|
1783
1783
|
);
|
|
1784
1784
|
}
|
|
1785
1785
|
var Be = he(zn, { path: "/" });
|
|
1786
|
-
const ie = "loginType",
|
|
1787
|
-
const e =
|
|
1786
|
+
const ie = "loginType", vn = (e) => new URL(location.href).searchParams.get(e), $n = () => {
|
|
1787
|
+
const e = vn(ie) || "";
|
|
1788
1788
|
return e ? (localStorage.setItem(ie, e), e) : localStorage.getItem(ie) || "";
|
|
1789
|
-
}, Jn = "/api/justauth/client/v1/visitor/sso-param", Vn = "/api/justauth/client/v1/visitor/jmc/sso/status", Kn = "/api/justauth/client/v1/jmc/sso/logout", X = "thirdLogouSource", Wn = ["zhongshen", "jmc"], Gn = {
|
|
1789
|
+
}, Jn = "/api/justauth/client/v1/visitor/sso-param", Vn = "/api/justauth/client/v1/visitor/jmc/sso/status", Kn = "/api/justauth/client/v1/visitor/jmc/sso/logout", X = "thirdLogouSource", Wn = ["zhongshen", "jmc"], Gn = {
|
|
1790
1790
|
uat: "https://sso-uat.jmc.com.cn"
|
|
1791
1791
|
};
|
|
1792
1792
|
let be = "";
|
|
@@ -1803,7 +1803,7 @@ const me = (e) => {
|
|
|
1803
1803
|
const e = localStorage.getItem(X), t = me(e);
|
|
1804
1804
|
return e !== null && !t && localStorage.removeItem(X), t || me(be);
|
|
1805
1805
|
}, ct = (e) => {
|
|
1806
|
-
const t =
|
|
1806
|
+
const t = $n();
|
|
1807
1807
|
return e === "jmc" && t === "das" ? !1 : Wn.includes(e);
|
|
1808
1808
|
}, Sr = () => ct(Se()), ut = (e) => {
|
|
1809
1809
|
be = Se(), localStorage.removeItem(X), window.__isAutoCloseApp = !1, location.href = e;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.33",
|
|
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": "7.1.0-dev.
|
|
12
|
+
"@das-fed/utils": "7.1.0-dev.33",
|
|
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": "7.1.0-dev.
|
|
25
|
-
"@das-fed/web": "7.1.0-dev.
|
|
24
|
+
"@das-fed/cli": "7.1.0-dev.33",
|
|
25
|
+
"@das-fed/web": "7.1.0-dev.33",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|