mp-front-cli 0.0.44 → 0.0.45
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-30dbd365.js → custom-header-3ba5652e.js} +94 -94
- package/dist/custom-validator-74fcaf87.js +1644 -0
- package/dist/mp-front-cli-all.es.js +17 -15
- package/dist/mp-front-cli-core.es.js +191 -95
- package/dist/mp-front-cli-encoder.es.js +3704 -3
- package/dist/mp-front-cli-encrypter.es.js +53 -5
- package/dist/mp-front-cli-header.es.js +8 -6
- package/dist/mp-front-cli-validator.es.js +3 -3
- package/package.json +1 -1
- package/dist/custom-encoder-70a77460.js +0 -3734
- package/dist/custom-encrypter-8fbfd246.js +0 -20139
- package/dist/custom-validator-49426b3d.js +0 -14293
|
@@ -3,7 +3,7 @@ var J = (r, t, e) => t in r ? G(r, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var v = (r, t, e) => (J(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { switchMap as g, of as T, catchError as V } from "rxjs";
|
|
5
5
|
import { CustomLogger as q } from "./mp-front-cli-logger.es.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CustomEncrypter as z } from "./mp-front-cli-encrypter.es.js";
|
|
7
7
|
var O = function(r, t) {
|
|
8
8
|
return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
9
9
|
e.__proto__ = n;
|
|
@@ -12,7 +12,7 @@ var O = function(r, t) {
|
|
|
12
12
|
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
13
13
|
}, O(r, t);
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function C(r, t) {
|
|
16
16
|
if (typeof t != "function" && t !== null)
|
|
17
17
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
18
18
|
O(r, t);
|
|
@@ -47,24 +47,24 @@ function X(r, t, e, n) {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
return new (e || (e = Promise))(function(o, u) {
|
|
50
|
-
function
|
|
50
|
+
function s(f) {
|
|
51
51
|
try {
|
|
52
|
-
|
|
52
|
+
c(n.next(f));
|
|
53
53
|
} catch (y) {
|
|
54
54
|
u(y);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
function a(f) {
|
|
58
58
|
try {
|
|
59
|
-
|
|
59
|
+
c(n.throw(f));
|
|
60
60
|
} catch (y) {
|
|
61
61
|
u(y);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
f.done ? o(f.value) : i(f.value).then(
|
|
64
|
+
function c(f) {
|
|
65
|
+
f.done ? o(f.value) : i(f.value).then(s, a);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
c((n = n.apply(r, t || [])).next());
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
function F(r, t) {
|
|
@@ -73,63 +73,63 @@ function F(r, t) {
|
|
|
73
73
|
throw o[1];
|
|
74
74
|
return o[1];
|
|
75
75
|
}, trys: [], ops: [] }, n, i, o, u;
|
|
76
|
-
return u = { next:
|
|
76
|
+
return u = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
77
77
|
return this;
|
|
78
78
|
}), u;
|
|
79
|
-
function c
|
|
79
|
+
function s(c) {
|
|
80
80
|
return function(f) {
|
|
81
|
-
return a([
|
|
81
|
+
return a([c, f]);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function a(
|
|
84
|
+
function a(c) {
|
|
85
85
|
if (n)
|
|
86
86
|
throw new TypeError("Generator is already executing.");
|
|
87
|
-
for (; u && (u = 0,
|
|
87
|
+
for (; u && (u = 0, c[0] && (e = 0)), e; )
|
|
88
88
|
try {
|
|
89
|
-
if (n = 1, i && (o =
|
|
89
|
+
if (n = 1, i && (o = c[0] & 2 ? i.return : c[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, c[1])).done)
|
|
90
90
|
return o;
|
|
91
|
-
switch (i = 0, o && (
|
|
91
|
+
switch (i = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
|
|
92
92
|
case 0:
|
|
93
93
|
case 1:
|
|
94
|
-
o =
|
|
94
|
+
o = c;
|
|
95
95
|
break;
|
|
96
96
|
case 4:
|
|
97
|
-
return e.label++, { value:
|
|
97
|
+
return e.label++, { value: c[1], done: !1 };
|
|
98
98
|
case 5:
|
|
99
|
-
e.label++, i =
|
|
99
|
+
e.label++, i = c[1], c = [0];
|
|
100
100
|
continue;
|
|
101
101
|
case 7:
|
|
102
|
-
|
|
102
|
+
c = e.ops.pop(), e.trys.pop();
|
|
103
103
|
continue;
|
|
104
104
|
default:
|
|
105
|
-
if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (
|
|
105
|
+
if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
|
|
106
106
|
e = 0;
|
|
107
107
|
continue;
|
|
108
108
|
}
|
|
109
|
-
if (
|
|
110
|
-
e.label =
|
|
109
|
+
if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
|
|
110
|
+
e.label = c[1];
|
|
111
111
|
break;
|
|
112
112
|
}
|
|
113
|
-
if (
|
|
114
|
-
e.label = o[1], o =
|
|
113
|
+
if (c[0] === 6 && e.label < o[1]) {
|
|
114
|
+
e.label = o[1], o = c;
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
if (o && e.label < o[2]) {
|
|
118
|
-
e.label = o[2], e.ops.push(
|
|
118
|
+
e.label = o[2], e.ops.push(c);
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
o[2] && e.ops.pop(), e.trys.pop();
|
|
122
122
|
continue;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
c = t.call(r, e);
|
|
125
125
|
} catch (f) {
|
|
126
|
-
|
|
126
|
+
c = [6, f], i = 0;
|
|
127
127
|
} finally {
|
|
128
128
|
n = o = 0;
|
|
129
129
|
}
|
|
130
|
-
if (
|
|
131
|
-
throw
|
|
132
|
-
return { value:
|
|
130
|
+
if (c[0] & 5)
|
|
131
|
+
throw c[1];
|
|
132
|
+
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
function _(r) {
|
|
@@ -152,8 +152,8 @@ function P(r, t) {
|
|
|
152
152
|
try {
|
|
153
153
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
154
154
|
o.push(i.value);
|
|
155
|
-
} catch (
|
|
156
|
-
u = { error:
|
|
155
|
+
} catch (s) {
|
|
156
|
+
u = { error: s };
|
|
157
157
|
} finally {
|
|
158
158
|
try {
|
|
159
159
|
i && !i.done && (e = n.return) && e.call(n);
|
|
@@ -183,11 +183,11 @@ function Z(r, t, e) {
|
|
|
183
183
|
function u(l) {
|
|
184
184
|
n[l] && (i[l] = function(d) {
|
|
185
185
|
return new Promise(function(A, p) {
|
|
186
|
-
o.push([l, d, A, p]) > 1 ||
|
|
186
|
+
o.push([l, d, A, p]) > 1 || s(l, d);
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function s(l, d) {
|
|
191
191
|
try {
|
|
192
192
|
a(n[l](d));
|
|
193
193
|
} catch (A) {
|
|
@@ -195,16 +195,16 @@ function Z(r, t, e) {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
function a(l) {
|
|
198
|
-
l.value instanceof m ? Promise.resolve(l.value.v).then(
|
|
198
|
+
l.value instanceof m ? Promise.resolve(l.value.v).then(c, f) : y(o[0][2], l);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
200
|
+
function c(l) {
|
|
201
|
+
s("next", l);
|
|
202
202
|
}
|
|
203
203
|
function f(l) {
|
|
204
|
-
|
|
204
|
+
s("throw", l);
|
|
205
205
|
}
|
|
206
206
|
function y(l, d) {
|
|
207
|
-
l(d), o.shift(), o.length &&
|
|
207
|
+
l(d), o.shift(), o.length && s(o[0][0], o[0][1]);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
function N(r) {
|
|
@@ -216,14 +216,14 @@ function N(r) {
|
|
|
216
216
|
}, e);
|
|
217
217
|
function n(o) {
|
|
218
218
|
e[o] = r[o] && function(u) {
|
|
219
|
-
return new Promise(function(
|
|
220
|
-
u = r[o](u), i(
|
|
219
|
+
return new Promise(function(s, a) {
|
|
220
|
+
u = r[o](u), i(s, a, u.done, u.value);
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function i(o, u,
|
|
225
|
-
Promise.resolve(a).then(function(
|
|
226
|
-
o({ value:
|
|
224
|
+
function i(o, u, s, a) {
|
|
225
|
+
Promise.resolve(a).then(function(c) {
|
|
226
|
+
o({ value: c, done: s });
|
|
227
227
|
}, u);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -263,15 +263,15 @@ var x = function() {
|
|
|
263
263
|
if (u)
|
|
264
264
|
if (this._parentage = null, Array.isArray(u))
|
|
265
265
|
try {
|
|
266
|
-
for (var
|
|
267
|
-
var
|
|
268
|
-
|
|
266
|
+
for (var s = _(u), a = s.next(); !a.done; a = s.next()) {
|
|
267
|
+
var c = a.value;
|
|
268
|
+
c.remove(this);
|
|
269
269
|
}
|
|
270
270
|
} catch (p) {
|
|
271
271
|
t = { error: p };
|
|
272
272
|
} finally {
|
|
273
273
|
try {
|
|
274
|
-
a && !a.done && (e =
|
|
274
|
+
a && !a.done && (e = s.return) && e.call(s);
|
|
275
275
|
} finally {
|
|
276
276
|
if (t)
|
|
277
277
|
throw t.error;
|
|
@@ -355,21 +355,21 @@ var M = {
|
|
|
355
355
|
Promise: void 0,
|
|
356
356
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
357
357
|
useDeprecatedNextContext: !1
|
|
358
|
-
},
|
|
358
|
+
}, H = {
|
|
359
359
|
setTimeout: function(r, t) {
|
|
360
360
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
361
361
|
e[n - 2] = arguments[n];
|
|
362
|
-
var i =
|
|
362
|
+
var i = H.delegate;
|
|
363
363
|
return i != null && i.setTimeout ? i.setTimeout.apply(i, U([r, t], P(e))) : setTimeout.apply(void 0, U([r, t], P(e)));
|
|
364
364
|
},
|
|
365
365
|
clearTimeout: function(r) {
|
|
366
|
-
var t =
|
|
366
|
+
var t = H.delegate;
|
|
367
367
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
|
|
368
368
|
},
|
|
369
369
|
delegate: void 0
|
|
370
370
|
};
|
|
371
371
|
function Y(r) {
|
|
372
|
-
|
|
372
|
+
H.setTimeout(function() {
|
|
373
373
|
throw r;
|
|
374
374
|
});
|
|
375
375
|
}
|
|
@@ -379,13 +379,13 @@ function er(r) {
|
|
|
379
379
|
r();
|
|
380
380
|
}
|
|
381
381
|
var R = function(r) {
|
|
382
|
-
|
|
382
|
+
C(t, r);
|
|
383
383
|
function t(e) {
|
|
384
384
|
var n = r.call(this) || this;
|
|
385
385
|
return n.isStopped = !1, e ? (n.destination = e, $(e) && e.add(n)) : n.destination = ir, n;
|
|
386
386
|
}
|
|
387
387
|
return t.create = function(e, n, i) {
|
|
388
|
-
return new
|
|
388
|
+
return new B(e, n, i);
|
|
389
389
|
}, t.prototype.next = function(e) {
|
|
390
390
|
this.isStopped || this._next(e);
|
|
391
391
|
}, t.prototype.error = function(e) {
|
|
@@ -444,8 +444,8 @@ var nr = function() {
|
|
|
444
444
|
S(e);
|
|
445
445
|
}
|
|
446
446
|
}, r;
|
|
447
|
-
}(),
|
|
448
|
-
|
|
447
|
+
}(), B = function(r) {
|
|
448
|
+
C(t, r);
|
|
449
449
|
function t(e, n, i) {
|
|
450
450
|
var o = r.call(this) || this, u;
|
|
451
451
|
if (h(e) || !e)
|
|
@@ -455,13 +455,13 @@ var nr = function() {
|
|
|
455
455
|
complete: i ?? void 0
|
|
456
456
|
};
|
|
457
457
|
else {
|
|
458
|
-
var
|
|
459
|
-
o && M.useDeprecatedNextContext ? (
|
|
458
|
+
var s;
|
|
459
|
+
o && M.useDeprecatedNextContext ? (s = Object.create(e), s.unsubscribe = function() {
|
|
460
460
|
return o.unsubscribe();
|
|
461
461
|
}, u = {
|
|
462
|
-
next: e.next && I(e.next,
|
|
463
|
-
error: e.error && I(e.error,
|
|
464
|
-
complete: e.complete && I(e.complete,
|
|
462
|
+
next: e.next && I(e.next, s),
|
|
463
|
+
error: e.error && I(e.error, s),
|
|
464
|
+
complete: e.complete && I(e.complete, s)
|
|
465
465
|
}) : u = e;
|
|
466
466
|
}
|
|
467
467
|
return o.destination = new nr(u), o;
|
|
@@ -481,21 +481,21 @@ var ir = {
|
|
|
481
481
|
complete: D
|
|
482
482
|
};
|
|
483
483
|
function ur(r, t, e, n, i) {
|
|
484
|
-
return new
|
|
484
|
+
return new cr(r, t, e, n, i);
|
|
485
485
|
}
|
|
486
|
-
var
|
|
487
|
-
|
|
488
|
-
function t(e, n, i, o, u,
|
|
486
|
+
var cr = function(r) {
|
|
487
|
+
C(t, r);
|
|
488
|
+
function t(e, n, i, o, u, s) {
|
|
489
489
|
var a = r.call(this, e) || this;
|
|
490
|
-
return a.onFinalize = u, a.shouldUnsubscribe =
|
|
490
|
+
return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = n ? function(c) {
|
|
491
491
|
try {
|
|
492
|
-
n(
|
|
492
|
+
n(c);
|
|
493
493
|
} catch (f) {
|
|
494
494
|
e.error(f);
|
|
495
495
|
}
|
|
496
|
-
} : r.prototype._next, a._error = o ? function(
|
|
496
|
+
} : r.prototype._next, a._error = o ? function(c) {
|
|
497
497
|
try {
|
|
498
|
-
o(
|
|
498
|
+
o(c);
|
|
499
499
|
} catch (f) {
|
|
500
500
|
e.error(f);
|
|
501
501
|
} finally {
|
|
@@ -504,8 +504,8 @@ var sr = function(r) {
|
|
|
504
504
|
} : r.prototype._error, a._complete = i ? function() {
|
|
505
505
|
try {
|
|
506
506
|
i();
|
|
507
|
-
} catch (
|
|
508
|
-
e.error(
|
|
507
|
+
} catch (c) {
|
|
508
|
+
e.error(c);
|
|
509
509
|
} finally {
|
|
510
510
|
this.unsubscribe();
|
|
511
511
|
}
|
|
@@ -521,11 +521,11 @@ var sr = function(r) {
|
|
|
521
521
|
}(R), K = function() {
|
|
522
522
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
523
523
|
}();
|
|
524
|
-
function
|
|
524
|
+
function sr(r) {
|
|
525
525
|
return r;
|
|
526
526
|
}
|
|
527
527
|
function ar(r) {
|
|
528
|
-
return r.length === 0 ?
|
|
528
|
+
return r.length === 0 ? sr : r.length === 1 ? r[0] : function(e) {
|
|
529
529
|
return r.reduce(function(n, i) {
|
|
530
530
|
return i(n);
|
|
531
531
|
}, e);
|
|
@@ -539,10 +539,10 @@ var b = function() {
|
|
|
539
539
|
var e = new r();
|
|
540
540
|
return e.source = this, e.operator = t, e;
|
|
541
541
|
}, r.prototype.subscribe = function(t, e, n) {
|
|
542
|
-
var i = this, o = fr(t) ? t : new
|
|
542
|
+
var i = this, o = fr(t) ? t : new B(t, e, n);
|
|
543
543
|
return er(function() {
|
|
544
|
-
var u = i,
|
|
545
|
-
o.add(
|
|
544
|
+
var u = i, s = u.operator, a = u.source;
|
|
545
|
+
o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
|
|
546
546
|
}), o;
|
|
547
547
|
}, r.prototype._trySubscribe = function(t) {
|
|
548
548
|
try {
|
|
@@ -553,10 +553,10 @@ var b = function() {
|
|
|
553
553
|
}, r.prototype.forEach = function(t, e) {
|
|
554
554
|
var n = this;
|
|
555
555
|
return e = L(e), new e(function(i, o) {
|
|
556
|
-
var u = new
|
|
557
|
-
next: function(
|
|
556
|
+
var u = new B({
|
|
557
|
+
next: function(s) {
|
|
558
558
|
try {
|
|
559
|
-
t(
|
|
559
|
+
t(s);
|
|
560
560
|
} catch (a) {
|
|
561
561
|
o(a), u.unsubscribe();
|
|
562
562
|
}
|
|
@@ -709,8 +709,8 @@ function Ur(r) {
|
|
|
709
709
|
if (t.next(u), t.closed)
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
|
-
} catch (
|
|
713
|
-
e = { error:
|
|
712
|
+
} catch (s) {
|
|
713
|
+
e = { error: s };
|
|
714
714
|
} finally {
|
|
715
715
|
try {
|
|
716
716
|
o && !o.done && (n = i.return) && n.call(i);
|
|
@@ -735,7 +735,7 @@ function Er(r) {
|
|
|
735
735
|
function Ir(r, t) {
|
|
736
736
|
var e, n, i, o;
|
|
737
737
|
return X(this, void 0, void 0, function() {
|
|
738
|
-
var u,
|
|
738
|
+
var u, s;
|
|
739
739
|
return F(this, function(a) {
|
|
740
740
|
switch (a.label) {
|
|
741
741
|
case 0:
|
|
@@ -753,7 +753,7 @@ function Ir(r, t) {
|
|
|
753
753
|
case 4:
|
|
754
754
|
return [3, 11];
|
|
755
755
|
case 5:
|
|
756
|
-
return
|
|
756
|
+
return s = a.sent(), i = { error: s }, [3, 11];
|
|
757
757
|
case 6:
|
|
758
758
|
return a.trys.push([6, , 9, 10]), n && !n.done && (o = e.return) ? [4, o.call(e)] : [3, 8];
|
|
759
759
|
case 7:
|
|
@@ -776,31 +776,31 @@ function Or(r, t) {
|
|
|
776
776
|
t === void 0 && (t = {});
|
|
777
777
|
var e = t.selector, n = Q(t, ["selector"]);
|
|
778
778
|
return new b(function(i) {
|
|
779
|
-
var o = new AbortController(), u = o.signal,
|
|
779
|
+
var o = new AbortController(), u = o.signal, s = !0, a = n.signal;
|
|
780
780
|
if (a)
|
|
781
781
|
if (a.aborted)
|
|
782
782
|
o.abort();
|
|
783
783
|
else {
|
|
784
|
-
var
|
|
784
|
+
var c = function() {
|
|
785
785
|
u.aborted || o.abort();
|
|
786
786
|
};
|
|
787
|
-
a.addEventListener("abort",
|
|
788
|
-
return a.removeEventListener("abort",
|
|
787
|
+
a.addEventListener("abort", c), i.add(function() {
|
|
788
|
+
return a.removeEventListener("abort", c);
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
var f = w(w({}, n), { signal: u }), y = function(l) {
|
|
792
|
-
|
|
792
|
+
s = !1, i.error(l);
|
|
793
793
|
};
|
|
794
794
|
return fetch(r, f).then(function(l) {
|
|
795
795
|
e ? gr(e(l)).subscribe(ur(i, void 0, function() {
|
|
796
|
-
|
|
797
|
-
}, y)) : (
|
|
796
|
+
s = !1, i.complete();
|
|
797
|
+
}, y)) : (s = !1, i.next(l), i.complete());
|
|
798
798
|
}).catch(y), function() {
|
|
799
|
-
|
|
799
|
+
s && o.abort();
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
|
-
class
|
|
803
|
+
class Hr extends q {
|
|
804
804
|
constructor() {
|
|
805
805
|
super();
|
|
806
806
|
v(this, "API_AUTH_BACK_URL");
|
|
@@ -849,7 +849,7 @@ class Kr extends z {
|
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
851
|
addTokenBackend(e) {
|
|
852
|
-
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new
|
|
852
|
+
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new Hr().get().pipe(
|
|
853
853
|
g((n) => T({ ...e, Authorization: `Bearer ${n}` }))
|
|
854
854
|
);
|
|
855
855
|
}
|
|
@@ -861,6 +861,6 @@ class Kr extends z {
|
|
|
861
861
|
}
|
|
862
862
|
export {
|
|
863
863
|
Kr as C,
|
|
864
|
-
|
|
864
|
+
Hr as S,
|
|
865
865
|
Or as f
|
|
866
866
|
};
|