mp-front-cli 0.0.40 → 0.0.41
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/{custom-header-1fcfa265.js → custom-encrypter-fa4e497d.js} +5018 -5717
- package/dist/custom-header-9277c393.js +881 -0
- package/dist/mp-front-cli-all.es.js +13 -12
- package/dist/mp-front-cli-core.es.js +22 -21
- package/dist/mp-front-cli-encrypter.es.js +9 -0
- package/dist/mp-front-cli-header.es.js +3 -2
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { ApiMiddleware as
|
|
3
|
-
import { S as
|
|
4
|
-
import { LoadingHandler as
|
|
1
|
+
import { E as c } from "./custom-validator-8a042f7f.js";
|
|
2
|
+
import { ApiMiddleware as n, FetchServiceBE as x, FetchServiceFE as S } from "./mp-front-cli-core.es.js";
|
|
3
|
+
import { S as g } from "./custom-header-9277c393.js";
|
|
4
|
+
import { LoadingHandler as s, MessageHandler as E, RxSubjectManager as v } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
5
|
import "./custom-encoder-70a77460.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "./index-df4e0539.js";
|
|
8
8
|
import "rxjs";
|
|
9
|
+
import "./custom-encrypter-fa4e497d.js";
|
|
9
10
|
import "crypto";
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
n as ApiMiddleware,
|
|
13
|
+
c as ErrorCatalog,
|
|
14
|
+
x as FetchServiceBE,
|
|
15
|
+
S as FetchServiceFE,
|
|
16
|
+
s as LoadingHandler,
|
|
17
|
+
E as MessageHandler,
|
|
18
|
+
v as RxSubjectManager,
|
|
19
|
+
g as ServiceToken
|
|
19
20
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
var x = Object.defineProperty;
|
|
2
2
|
var E = (d, n, t) => n in d ? x(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t;
|
|
3
3
|
var u = (d, n, t) => (E(d, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
-
import { E as
|
|
5
|
-
import { C as y,
|
|
6
|
-
import { S as
|
|
7
|
-
import { MessageHandler as
|
|
8
|
-
import { RxSubjectManager as
|
|
4
|
+
import { E as m, C as B } from "./custom-validator-8a042f7f.js";
|
|
5
|
+
import { C as y, f as S } from "./custom-header-9277c393.js";
|
|
6
|
+
import { S as C } from "./custom-header-9277c393.js";
|
|
7
|
+
import { MessageHandler as l, LoadingHandler as c } from "./mp-front-cli-utils-rxjs.es.js";
|
|
8
|
+
import { RxSubjectManager as T } from "./mp-front-cli-utils-rxjs.es.js";
|
|
9
9
|
import { of as a, switchMap as o, catchError as p, EMPTY as f, filter as b } from "rxjs";
|
|
10
|
+
import { C as O, c as g } from "./custom-encrypter-fa4e497d.js";
|
|
10
11
|
import "./custom-encoder-70a77460.js";
|
|
11
12
|
import "./mp-front-cli-logger.es.js";
|
|
12
13
|
import "./index-df4e0539.js";
|
|
13
14
|
import "crypto";
|
|
14
|
-
class
|
|
15
|
+
class I extends O {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
17
18
|
u(this, "uuid", "");
|
|
@@ -21,7 +22,7 @@ class J extends y {
|
|
|
21
22
|
t.status(200).json(s);
|
|
22
23
|
}
|
|
23
24
|
returnError(t, i) {
|
|
24
|
-
return i != null && i.uuid ? t.status(520).json(i) : t.status(520).json(new
|
|
25
|
+
return i != null && i.uuid ? t.status(520).json(i) : t.status(520).json(new m().get(i, this.uuid));
|
|
25
26
|
}
|
|
26
27
|
get(t) {
|
|
27
28
|
return this.logDebug("get ApiMiddleware"), (i, r) => {
|
|
@@ -51,7 +52,7 @@ class J extends y {
|
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
class
|
|
55
|
+
class H extends y {
|
|
55
56
|
constructor(t, i) {
|
|
56
57
|
super();
|
|
57
58
|
u(this, "apiUrl");
|
|
@@ -60,7 +61,7 @@ class I extends O {
|
|
|
60
61
|
}
|
|
61
62
|
errorHandler(t, i) {
|
|
62
63
|
if (t != null && t.errors)
|
|
63
|
-
throw new
|
|
64
|
+
throw new m().get(t.errors[0], i);
|
|
64
65
|
return !(t != null && t.errors);
|
|
65
66
|
}
|
|
66
67
|
fetchData(t = {}, i) {
|
|
@@ -88,7 +89,7 @@ class I extends O {
|
|
|
88
89
|
);
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
|
-
class
|
|
92
|
+
class L extends B {
|
|
92
93
|
constructor(t, i = "POST", r = {}) {
|
|
93
94
|
super();
|
|
94
95
|
u(this, "apiUrl");
|
|
@@ -104,10 +105,10 @@ class H extends B {
|
|
|
104
105
|
this.isLoadingEnabled = t;
|
|
105
106
|
}
|
|
106
107
|
errorHandler(t) {
|
|
107
|
-
return t.code && (
|
|
108
|
+
return t.code && (l.getInstance().setSubject(t), c.getInstance().setSubject(!1)), !t.code;
|
|
108
109
|
}
|
|
109
110
|
fetchData(t = {}) {
|
|
110
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), r = g(i, g.URL), s = this.encode({ ...t }, r);
|
|
111
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), r = g.v5(i, g.v5.URL), s = this.encode({ ...t }, r);
|
|
111
112
|
return c.getInstance().setSubject(this.isLoadingEnabled), S(this.apiUrl, {
|
|
112
113
|
method: this.method,
|
|
113
114
|
headers: this.headers,
|
|
@@ -120,19 +121,19 @@ class H extends B {
|
|
|
120
121
|
), a(e))),
|
|
121
122
|
b(this.errorHandler),
|
|
122
123
|
o((e) => (c.getInstance().setSubject(!1), a(e))),
|
|
123
|
-
p((e) => (c.getInstance().setSubject(!1),
|
|
124
|
-
new
|
|
124
|
+
p((e) => (c.getInstance().setSubject(!1), l.getInstance().setSubject(
|
|
125
|
+
new m().get(e, r)
|
|
125
126
|
), f))
|
|
126
127
|
);
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
I as ApiMiddleware,
|
|
132
|
+
m as ErrorCatalog,
|
|
133
|
+
H as FetchServiceBE,
|
|
134
|
+
L as FetchServiceFE,
|
|
134
135
|
c as LoadingHandler,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
l as MessageHandler,
|
|
137
|
+
T as RxSubjectManager,
|
|
138
|
+
C as ServiceToken
|
|
138
139
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { C as s } from "./custom-encrypter-fa4e497d.js";
|
|
2
|
+
import "crypto";
|
|
3
|
+
import "./custom-validator-8a042f7f.js";
|
|
4
|
+
import "./custom-encoder-70a77460.js";
|
|
5
|
+
import "./mp-front-cli-logger.es.js";
|
|
6
|
+
import "./index-df4e0539.js";
|
|
7
|
+
export {
|
|
8
|
+
s as CustomEncrypter
|
|
9
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "rxjs";
|
|
2
|
-
import {
|
|
2
|
+
import { C } from "./custom-header-9277c393.js";
|
|
3
|
+
import "./custom-encrypter-fa4e497d.js";
|
|
3
4
|
import "./mp-front-cli-logger.es.js";
|
|
4
5
|
import "./custom-encoder-70a77460.js";
|
|
5
6
|
import "crypto";
|
|
6
7
|
import "./custom-validator-8a042f7f.js";
|
|
7
8
|
import "./index-df4e0539.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
C as CustomHeader
|
|
10
11
|
};
|