mp-front-cli 0.0.54 → 0.0.55
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/dist/core/utils/api-request/fetch-service-be.d.ts +5 -3
- package/dist/core/utils/api-request/fetch-service-be.d.ts.map +1 -1
- package/dist/core/utils/custom-adapter.d.ts +16 -0
- package/dist/core/utils/custom-adapter.d.ts.map +1 -0
- package/dist/{custom-encoder-05d6a9f1.js → custom-encoder-70a77460.js} +969 -947
- package/dist/{custom-encrypter-1573699a.js → custom-encrypter-e3901c44.js} +3945 -4158
- package/dist/{custom-header-eeb04e28.js → custom-header-db08aa72.js} +1 -1
- package/dist/mp-front-cli-adapter.es.js +149 -0
- package/dist/mp-front-cli-all.es.js +14 -13
- package/dist/mp-front-cli-cache.es.js +5 -4
- package/dist/mp-front-cli-core.es.js +626 -599
- package/dist/mp-front-cli-encoder.es.js +1 -1
- package/dist/mp-front-cli-encrypter.es.js +4 -3
- package/dist/mp-front-cli-header.es.js +5 -4
- package/dist/v4-8464ab21.js +46 -0
- package/package.json +8 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as e } from "./custom-encrypter-e3901c44.js";
|
|
2
2
|
import "crypto";
|
|
3
|
-
import "./custom-encoder-
|
|
3
|
+
import "./custom-encoder-70a77460.js";
|
|
4
|
+
import "./v4-8464ab21.js";
|
|
4
5
|
import "./mp-front-cli-logger.es.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
e as CustomEncrypter
|
|
7
8
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "rxjs";
|
|
2
|
-
import { C as
|
|
3
|
-
import "./custom-encrypter-
|
|
2
|
+
import { C as s } from "./custom-header-db08aa72.js";
|
|
3
|
+
import "./custom-encrypter-e3901c44.js";
|
|
4
4
|
import "./mp-front-cli-logger.es.js";
|
|
5
|
-
import "./custom-encoder-
|
|
5
|
+
import "./custom-encoder-70a77460.js";
|
|
6
6
|
import "crypto";
|
|
7
|
+
import "./v4-8464ab21.js";
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
s as CustomHeader
|
|
9
10
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
let r;
|
|
2
|
+
const a = new Uint8Array(16);
|
|
3
|
+
function y() {
|
|
4
|
+
if (!r && (r = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !r))
|
|
5
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
|
+
return r(a);
|
|
7
|
+
}
|
|
8
|
+
const p = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
9
|
+
function g(n) {
|
|
10
|
+
return typeof n == "string" && p.test(n);
|
|
11
|
+
}
|
|
12
|
+
const i = [];
|
|
13
|
+
for (let n = 0; n < 256; ++n)
|
|
14
|
+
i.push((n + 256).toString(16).slice(1));
|
|
15
|
+
function c(n, t = 0) {
|
|
16
|
+
return i[n[t + 0]] + i[n[t + 1]] + i[n[t + 2]] + i[n[t + 3]] + "-" + i[n[t + 4]] + i[n[t + 5]] + "-" + i[n[t + 6]] + i[n[t + 7]] + "-" + i[n[t + 8]] + i[n[t + 9]] + "-" + i[n[t + 10]] + i[n[t + 11]] + i[n[t + 12]] + i[n[t + 13]] + i[n[t + 14]] + i[n[t + 15]];
|
|
17
|
+
}
|
|
18
|
+
function m(n, t = 0) {
|
|
19
|
+
const d = c(n, t);
|
|
20
|
+
if (!g(d))
|
|
21
|
+
throw TypeError("Stringified UUID is invalid");
|
|
22
|
+
return d;
|
|
23
|
+
}
|
|
24
|
+
const U = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), o = {
|
|
25
|
+
randomUUID: U
|
|
26
|
+
};
|
|
27
|
+
function l(n, t, d) {
|
|
28
|
+
if (o.randomUUID && !t && !n)
|
|
29
|
+
return o.randomUUID();
|
|
30
|
+
n = n || {};
|
|
31
|
+
const e = n.random || (n.rng || y)();
|
|
32
|
+
if (e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, t) {
|
|
33
|
+
d = d || 0;
|
|
34
|
+
for (let u = 0; u < 16; ++u)
|
|
35
|
+
t[d + u] = e[u];
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
return c(e);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
g as a,
|
|
42
|
+
y as r,
|
|
43
|
+
m as s,
|
|
44
|
+
c as u,
|
|
45
|
+
l as v
|
|
46
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mp-front-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"types": "./dist/core/utils/custom-cache.d.ts",
|
|
48
48
|
"import": "./dist/mp-front-cli-cache.es.js"
|
|
49
49
|
},
|
|
50
|
+
"./core/adapter": {
|
|
51
|
+
"types": "./dist/core/utils/custom-adapter.d.ts",
|
|
52
|
+
"import": "./dist/mp-front-cli-adapter.es.js"
|
|
53
|
+
},
|
|
50
54
|
"./locale": {
|
|
51
55
|
"types": "./dist/lang/index.d.ts",
|
|
52
56
|
"import": "./dist/mp-front-cli-locale.es.js"
|
|
@@ -54,7 +58,8 @@
|
|
|
54
58
|
},
|
|
55
59
|
"peerDependencies": {
|
|
56
60
|
"ioredis": "5.3.2",
|
|
57
|
-
"rxjs": "7.8.1"
|
|
61
|
+
"rxjs": "7.8.1",
|
|
62
|
+
"next-auth": "^4.24.6"
|
|
58
63
|
},
|
|
59
64
|
"dependencies": {
|
|
60
65
|
"@types/node-jose": "1.1.13",
|
|
@@ -64,6 +69,7 @@
|
|
|
64
69
|
"ioredis": "5.3.2",
|
|
65
70
|
"lodash": "4.17.21",
|
|
66
71
|
"next": "14.1.0",
|
|
72
|
+
"next-auth": "4.24.6",
|
|
67
73
|
"node-jose": "2.2.0",
|
|
68
74
|
"rxjs": "7.8.1",
|
|
69
75
|
"uuid": "9.0.1"
|