mp-front-cli 0.0.37 → 0.0.39
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/middleware/index.d.ts +2 -2
- package/dist/core/middleware/index.d.ts.map +1 -1
- package/dist/core/utils/api-request/fetch-service-fe.d.ts +2 -2
- package/dist/core/utils/api-request/fetch-service-fe.d.ts.map +1 -1
- package/dist/core/utils/custom-encoder.d.ts +2 -2
- package/dist/core/utils/custom-encoder.d.ts.map +1 -1
- package/dist/core/utils/custom-encrypter.d.ts +12 -0
- package/dist/core/utils/custom-encrypter.d.ts.map +1 -0
- package/dist/core/utils/custom-header.d.ts +2 -2
- package/dist/core/utils/custom-header.d.ts.map +1 -1
- package/dist/custom-encoder-04bc877a.js +23877 -0
- package/dist/{custom-header-4aec1dac.js → custom-header-89182d9e.js} +171 -178
- package/dist/{custom-validator-ae5da0a7.js → custom-validator-3bb58ece.js} +1 -1
- package/dist/mp-front-cli-all.es.js +12 -12
- package/dist/mp-front-cli-core.es.js +84 -176
- package/dist/mp-front-cli-encoder.es.js +3 -2
- package/dist/mp-front-cli-header.es.js +4 -4
- package/dist/mp-front-cli-utils-rxjs.es.js +36 -11
- package/dist/mp-front-cli-validator.es.js +4 -3
- package/package.json +7 -1
- package/dist/core/utils/custom-catch-error.d.ts +0 -5
- package/dist/core/utils/custom-catch-error.d.ts.map +0 -1
- package/dist/custom-encoder-6737c6cb.js +0 -3729
- package/dist/message-handler-d90f2bb6.js +0 -35
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
var W = Object.defineProperty;
|
|
2
2
|
var J = (r, t, e) => t in r ? W(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var v = (r, t, e) => (J(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import {
|
|
5
|
-
import { CustomLogger as
|
|
6
|
-
import { C as
|
|
7
|
-
import { M as X } from "./message-handler-d90f2bb6.js";
|
|
8
|
-
class Z extends z {
|
|
9
|
-
catch(t, e) {
|
|
10
|
-
return console.log(`CustomCatchError ${t}`), X.getInstance().setSubject(new Q().get(t, e)), N;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
4
|
+
import { switchMap as _, of as S, catchError as N } from "rxjs";
|
|
5
|
+
import { CustomLogger as V } from "./mp-front-cli-logger.es.js";
|
|
6
|
+
import { C as q } from "./custom-validator-3bb58ece.js";
|
|
13
7
|
var I = function(r, t) {
|
|
14
8
|
return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
15
9
|
e.__proto__ = n;
|
|
@@ -18,7 +12,7 @@ var I = function(r, t) {
|
|
|
18
12
|
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
19
13
|
}, I(r, t);
|
|
20
14
|
};
|
|
21
|
-
function
|
|
15
|
+
function B(r, t) {
|
|
22
16
|
if (typeof t != "function" && t !== null)
|
|
23
17
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
24
18
|
I(r, t);
|
|
@@ -37,7 +31,7 @@ var w = function() {
|
|
|
37
31
|
return t;
|
|
38
32
|
}, w.apply(this, arguments);
|
|
39
33
|
};
|
|
40
|
-
function
|
|
34
|
+
function z(r, t) {
|
|
41
35
|
var e = {};
|
|
42
36
|
for (var n in r)
|
|
43
37
|
Object.prototype.hasOwnProperty.call(r, n) && t.indexOf(n) < 0 && (e[n] = r[n]);
|
|
@@ -46,96 +40,96 @@ function ee(r, t) {
|
|
|
46
40
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (e[n[i]] = r[n[i]]);
|
|
47
41
|
return e;
|
|
48
42
|
}
|
|
49
|
-
function
|
|
43
|
+
function Q(r, t, e, n) {
|
|
50
44
|
function i(o) {
|
|
51
45
|
return o instanceof e ? o : new e(function(s) {
|
|
52
46
|
s(o);
|
|
53
47
|
});
|
|
54
48
|
}
|
|
55
49
|
return new (e || (e = Promise))(function(o, s) {
|
|
56
|
-
function
|
|
50
|
+
function a(f) {
|
|
57
51
|
try {
|
|
58
|
-
|
|
52
|
+
c(n.next(f));
|
|
59
53
|
} catch (y) {
|
|
60
54
|
s(y);
|
|
61
55
|
}
|
|
62
56
|
}
|
|
63
57
|
function u(f) {
|
|
64
58
|
try {
|
|
65
|
-
|
|
59
|
+
c(n.throw(f));
|
|
66
60
|
} catch (y) {
|
|
67
61
|
s(y);
|
|
68
62
|
}
|
|
69
63
|
}
|
|
70
|
-
function
|
|
71
|
-
f.done ? o(f.value) : i(f.value).then(
|
|
64
|
+
function c(f) {
|
|
65
|
+
f.done ? o(f.value) : i(f.value).then(a, u);
|
|
72
66
|
}
|
|
73
|
-
|
|
67
|
+
c((n = n.apply(r, t || [])).next());
|
|
74
68
|
});
|
|
75
69
|
}
|
|
76
|
-
function
|
|
70
|
+
function F(r, t) {
|
|
77
71
|
var e = { label: 0, sent: function() {
|
|
78
72
|
if (o[0] & 1)
|
|
79
73
|
throw o[1];
|
|
80
74
|
return o[1];
|
|
81
75
|
}, trys: [], ops: [] }, n, i, o, s;
|
|
82
|
-
return s = { next:
|
|
76
|
+
return s = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
83
77
|
return this;
|
|
84
78
|
}), s;
|
|
85
|
-
function c
|
|
79
|
+
function a(c) {
|
|
86
80
|
return function(f) {
|
|
87
|
-
return u([
|
|
81
|
+
return u([c, f]);
|
|
88
82
|
};
|
|
89
83
|
}
|
|
90
|
-
function u(
|
|
84
|
+
function u(c) {
|
|
91
85
|
if (n)
|
|
92
86
|
throw new TypeError("Generator is already executing.");
|
|
93
|
-
for (; s && (s = 0,
|
|
87
|
+
for (; s && (s = 0, c[0] && (e = 0)), e; )
|
|
94
88
|
try {
|
|
95
|
-
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)
|
|
96
90
|
return o;
|
|
97
|
-
switch (i = 0, o && (
|
|
91
|
+
switch (i = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
|
|
98
92
|
case 0:
|
|
99
93
|
case 1:
|
|
100
|
-
o =
|
|
94
|
+
o = c;
|
|
101
95
|
break;
|
|
102
96
|
case 4:
|
|
103
|
-
return e.label++, { value:
|
|
97
|
+
return e.label++, { value: c[1], done: !1 };
|
|
104
98
|
case 5:
|
|
105
|
-
e.label++, i =
|
|
99
|
+
e.label++, i = c[1], c = [0];
|
|
106
100
|
continue;
|
|
107
101
|
case 7:
|
|
108
|
-
|
|
102
|
+
c = e.ops.pop(), e.trys.pop();
|
|
109
103
|
continue;
|
|
110
104
|
default:
|
|
111
|
-
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)) {
|
|
112
106
|
e = 0;
|
|
113
107
|
continue;
|
|
114
108
|
}
|
|
115
|
-
if (
|
|
116
|
-
e.label =
|
|
109
|
+
if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
|
|
110
|
+
e.label = c[1];
|
|
117
111
|
break;
|
|
118
112
|
}
|
|
119
|
-
if (
|
|
120
|
-
e.label = o[1], o =
|
|
113
|
+
if (c[0] === 6 && e.label < o[1]) {
|
|
114
|
+
e.label = o[1], o = c;
|
|
121
115
|
break;
|
|
122
116
|
}
|
|
123
117
|
if (o && e.label < o[2]) {
|
|
124
|
-
e.label = o[2], e.ops.push(
|
|
118
|
+
e.label = o[2], e.ops.push(c);
|
|
125
119
|
break;
|
|
126
120
|
}
|
|
127
121
|
o[2] && e.ops.pop(), e.trys.pop();
|
|
128
122
|
continue;
|
|
129
123
|
}
|
|
130
|
-
|
|
124
|
+
c = t.call(r, e);
|
|
131
125
|
} catch (f) {
|
|
132
|
-
|
|
126
|
+
c = [6, f], i = 0;
|
|
133
127
|
} finally {
|
|
134
128
|
n = o = 0;
|
|
135
129
|
}
|
|
136
|
-
if (
|
|
137
|
-
throw
|
|
138
|
-
return { value:
|
|
130
|
+
if (c[0] & 5)
|
|
131
|
+
throw c[1];
|
|
132
|
+
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
139
133
|
}
|
|
140
134
|
}
|
|
141
135
|
function g(r) {
|
|
@@ -150,7 +144,7 @@ function g(r) {
|
|
|
150
144
|
};
|
|
151
145
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
152
146
|
}
|
|
153
|
-
function
|
|
147
|
+
function P(r, t) {
|
|
154
148
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
155
149
|
if (!e)
|
|
156
150
|
return r;
|
|
@@ -158,8 +152,8 @@ function E(r, t) {
|
|
|
158
152
|
try {
|
|
159
153
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
160
154
|
o.push(i.value);
|
|
161
|
-
} catch (
|
|
162
|
-
s = { error:
|
|
155
|
+
} catch (a) {
|
|
156
|
+
s = { error: a };
|
|
163
157
|
} finally {
|
|
164
158
|
try {
|
|
165
159
|
i && !i.done && (e = n.return) && e.call(n);
|
|
@@ -170,7 +164,7 @@ function E(r, t) {
|
|
|
170
164
|
}
|
|
171
165
|
return o;
|
|
172
166
|
}
|
|
173
|
-
function
|
|
167
|
+
function E(r, t, e) {
|
|
174
168
|
if (e || arguments.length === 2)
|
|
175
169
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
176
170
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
@@ -179,7 +173,7 @@ function P(r, t, e) {
|
|
|
179
173
|
function m(r) {
|
|
180
174
|
return this instanceof m ? (this.v = r, this) : new m(r);
|
|
181
175
|
}
|
|
182
|
-
function
|
|
176
|
+
function X(r, t, e) {
|
|
183
177
|
if (!Symbol.asyncIterator)
|
|
184
178
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
185
179
|
var n = e.apply(r, t || []), i, o = [];
|
|
@@ -189,11 +183,11 @@ function te(r, t, e) {
|
|
|
189
183
|
function s(l) {
|
|
190
184
|
n[l] && (i[l] = function(d) {
|
|
191
185
|
return new Promise(function(A, p) {
|
|
192
|
-
o.push([l, d, A, p]) > 1 ||
|
|
186
|
+
o.push([l, d, A, p]) > 1 || a(l, d);
|
|
193
187
|
});
|
|
194
188
|
});
|
|
195
189
|
}
|
|
196
|
-
function
|
|
190
|
+
function a(l, d) {
|
|
197
191
|
try {
|
|
198
192
|
u(n[l](d));
|
|
199
193
|
} catch (A) {
|
|
@@ -201,19 +195,19 @@ function te(r, t, e) {
|
|
|
201
195
|
}
|
|
202
196
|
}
|
|
203
197
|
function u(l) {
|
|
204
|
-
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);
|
|
205
199
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
200
|
+
function c(l) {
|
|
201
|
+
a("next", l);
|
|
208
202
|
}
|
|
209
203
|
function f(l) {
|
|
210
|
-
|
|
204
|
+
a("throw", l);
|
|
211
205
|
}
|
|
212
206
|
function y(l, d) {
|
|
213
|
-
l(d), o.shift(), o.length &&
|
|
207
|
+
l(d), o.shift(), o.length && a(o[0][0], o[0][1]);
|
|
214
208
|
}
|
|
215
209
|
}
|
|
216
|
-
function
|
|
210
|
+
function Z(r) {
|
|
217
211
|
if (!Symbol.asyncIterator)
|
|
218
212
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
219
213
|
var t = r[Symbol.asyncIterator], e;
|
|
@@ -222,27 +216,27 @@ function ne(r) {
|
|
|
222
216
|
}, e);
|
|
223
217
|
function n(o) {
|
|
224
218
|
e[o] = r[o] && function(s) {
|
|
225
|
-
return new Promise(function(
|
|
226
|
-
s = r[o](s), i(
|
|
219
|
+
return new Promise(function(a, u) {
|
|
220
|
+
s = r[o](s), i(a, u, s.done, s.value);
|
|
227
221
|
});
|
|
228
222
|
};
|
|
229
223
|
}
|
|
230
|
-
function i(o, s,
|
|
231
|
-
Promise.resolve(u).then(function(
|
|
232
|
-
o({ value:
|
|
224
|
+
function i(o, s, a, u) {
|
|
225
|
+
Promise.resolve(u).then(function(c) {
|
|
226
|
+
o({ value: c, done: a });
|
|
233
227
|
}, s);
|
|
234
228
|
}
|
|
235
229
|
}
|
|
236
230
|
function h(r) {
|
|
237
231
|
return typeof r == "function";
|
|
238
232
|
}
|
|
239
|
-
function
|
|
233
|
+
function ee(r) {
|
|
240
234
|
var t = function(n) {
|
|
241
235
|
Error.call(n), n.stack = new Error().stack;
|
|
242
236
|
}, e = r(t);
|
|
243
237
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
244
238
|
}
|
|
245
|
-
var U =
|
|
239
|
+
var U = ee(function(r) {
|
|
246
240
|
return function(e) {
|
|
247
241
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
248
242
|
` + e.map(function(n, i) {
|
|
@@ -257,7 +251,7 @@ function k(r, t) {
|
|
|
257
251
|
0 <= e && r.splice(e, 1);
|
|
258
252
|
}
|
|
259
253
|
}
|
|
260
|
-
var
|
|
254
|
+
var x = function() {
|
|
261
255
|
function r(t) {
|
|
262
256
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
263
257
|
}
|
|
@@ -269,15 +263,15 @@ var B = function() {
|
|
|
269
263
|
if (s)
|
|
270
264
|
if (this._parentage = null, Array.isArray(s))
|
|
271
265
|
try {
|
|
272
|
-
for (var
|
|
273
|
-
var
|
|
274
|
-
|
|
266
|
+
for (var a = g(s), u = a.next(); !u.done; u = a.next()) {
|
|
267
|
+
var c = u.value;
|
|
268
|
+
c.remove(this);
|
|
275
269
|
}
|
|
276
270
|
} catch (p) {
|
|
277
271
|
t = { error: p };
|
|
278
272
|
} finally {
|
|
279
273
|
try {
|
|
280
|
-
u && !u.done && (e =
|
|
274
|
+
u && !u.done && (e = a.return) && e.call(a);
|
|
281
275
|
} finally {
|
|
282
276
|
if (t)
|
|
283
277
|
throw t.error;
|
|
@@ -299,9 +293,9 @@ var B = function() {
|
|
|
299
293
|
for (var l = g(y), d = l.next(); !d.done; d = l.next()) {
|
|
300
294
|
var A = d.value;
|
|
301
295
|
try {
|
|
302
|
-
|
|
296
|
+
D(A);
|
|
303
297
|
} catch (p) {
|
|
304
|
-
o = o ?? [], p instanceof U ? o =
|
|
298
|
+
o = o ?? [], p instanceof U ? o = E(E([], P(o)), P(p.errors)) : o.push(p);
|
|
305
299
|
}
|
|
306
300
|
}
|
|
307
301
|
} catch (p) {
|
|
@@ -322,7 +316,7 @@ var B = function() {
|
|
|
322
316
|
var e;
|
|
323
317
|
if (t && t !== this)
|
|
324
318
|
if (this.closed)
|
|
325
|
-
|
|
319
|
+
D(t);
|
|
326
320
|
else {
|
|
327
321
|
if (t instanceof r) {
|
|
328
322
|
if (t.closed || t._hasParent(this))
|
|
@@ -348,11 +342,11 @@ var B = function() {
|
|
|
348
342
|
return t.closed = !0, t;
|
|
349
343
|
}(), r;
|
|
350
344
|
}();
|
|
351
|
-
|
|
352
|
-
function
|
|
353
|
-
return r instanceof
|
|
345
|
+
x.EMPTY;
|
|
346
|
+
function M(r) {
|
|
347
|
+
return r instanceof x || r && "closed" in r && h(r.remove) && h(r.add) && h(r.unsubscribe);
|
|
354
348
|
}
|
|
355
|
-
function
|
|
349
|
+
function D(r) {
|
|
356
350
|
h(r) ? r() : r.unsubscribe();
|
|
357
351
|
}
|
|
358
352
|
var $ = {
|
|
@@ -366,7 +360,7 @@ var $ = {
|
|
|
366
360
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
367
361
|
e[n - 2] = arguments[n];
|
|
368
362
|
var i = C.delegate;
|
|
369
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i,
|
|
363
|
+
return i != null && i.setTimeout ? i.setTimeout.apply(i, E([r, t], P(e))) : setTimeout.apply(void 0, E([r, t], P(e)));
|
|
370
364
|
},
|
|
371
365
|
clearTimeout: function(r) {
|
|
372
366
|
var t = C.delegate;
|
|
@@ -379,16 +373,16 @@ function G(r) {
|
|
|
379
373
|
throw r;
|
|
380
374
|
});
|
|
381
375
|
}
|
|
382
|
-
function
|
|
376
|
+
function j() {
|
|
383
377
|
}
|
|
384
|
-
function
|
|
378
|
+
function re(r) {
|
|
385
379
|
r();
|
|
386
380
|
}
|
|
387
381
|
var R = function(r) {
|
|
388
|
-
|
|
382
|
+
B(t, r);
|
|
389
383
|
function t(e) {
|
|
390
384
|
var n = r.call(this) || this;
|
|
391
|
-
return n.isStopped = !1, e ? (n.destination = e,
|
|
385
|
+
return n.isStopped = !1, e ? (n.destination = e, M(e) && e.add(n)) : n.destination = ie, n;
|
|
392
386
|
}
|
|
393
387
|
return t.create = function(e, n, i) {
|
|
394
388
|
return new H(e, n, i);
|
|
@@ -415,11 +409,11 @@ var R = function(r) {
|
|
|
415
409
|
this.unsubscribe();
|
|
416
410
|
}
|
|
417
411
|
}, t;
|
|
418
|
-
}(
|
|
412
|
+
}(x), te = Function.prototype.bind;
|
|
419
413
|
function O(r, t) {
|
|
420
|
-
return
|
|
414
|
+
return te.call(r, t);
|
|
421
415
|
}
|
|
422
|
-
var
|
|
416
|
+
var ne = function() {
|
|
423
417
|
function r(t) {
|
|
424
418
|
this.partialObserver = t;
|
|
425
419
|
}
|
|
@@ -451,7 +445,7 @@ var ae = function() {
|
|
|
451
445
|
}
|
|
452
446
|
}, r;
|
|
453
447
|
}(), H = function(r) {
|
|
454
|
-
|
|
448
|
+
B(t, r);
|
|
455
449
|
function t(e, n, i) {
|
|
456
450
|
var o = r.call(this) || this, s;
|
|
457
451
|
if (h(e) || !e)
|
|
@@ -461,47 +455,47 @@ var ae = function() {
|
|
|
461
455
|
complete: i ?? void 0
|
|
462
456
|
};
|
|
463
457
|
else {
|
|
464
|
-
var
|
|
465
|
-
o && $.useDeprecatedNextContext ? (
|
|
458
|
+
var a;
|
|
459
|
+
o && $.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
|
466
460
|
return o.unsubscribe();
|
|
467
461
|
}, s = {
|
|
468
|
-
next: e.next && O(e.next,
|
|
469
|
-
error: e.error && O(e.error,
|
|
470
|
-
complete: e.complete && O(e.complete,
|
|
462
|
+
next: e.next && O(e.next, a),
|
|
463
|
+
error: e.error && O(e.error, a),
|
|
464
|
+
complete: e.complete && O(e.complete, a)
|
|
471
465
|
}) : s = e;
|
|
472
466
|
}
|
|
473
|
-
return o.destination = new
|
|
467
|
+
return o.destination = new ne(s), o;
|
|
474
468
|
}
|
|
475
469
|
return t;
|
|
476
470
|
}(R);
|
|
477
471
|
function T(r) {
|
|
478
472
|
G(r);
|
|
479
473
|
}
|
|
480
|
-
function
|
|
474
|
+
function oe(r) {
|
|
481
475
|
throw r;
|
|
482
476
|
}
|
|
483
|
-
var
|
|
477
|
+
var ie = {
|
|
484
478
|
closed: !0,
|
|
485
|
-
next:
|
|
486
|
-
error:
|
|
487
|
-
complete:
|
|
479
|
+
next: j,
|
|
480
|
+
error: oe,
|
|
481
|
+
complete: j
|
|
488
482
|
};
|
|
489
|
-
function
|
|
490
|
-
return new
|
|
483
|
+
function se(r, t, e, n, i) {
|
|
484
|
+
return new ce(r, t, e, n, i);
|
|
491
485
|
}
|
|
492
|
-
var
|
|
493
|
-
|
|
494
|
-
function t(e, n, i, o, s,
|
|
486
|
+
var ce = function(r) {
|
|
487
|
+
B(t, r);
|
|
488
|
+
function t(e, n, i, o, s, a) {
|
|
495
489
|
var u = r.call(this, e) || this;
|
|
496
|
-
return u.onFinalize = s, u.shouldUnsubscribe =
|
|
490
|
+
return u.onFinalize = s, u.shouldUnsubscribe = a, u._next = n ? function(c) {
|
|
497
491
|
try {
|
|
498
|
-
n(
|
|
492
|
+
n(c);
|
|
499
493
|
} catch (f) {
|
|
500
494
|
e.error(f);
|
|
501
495
|
}
|
|
502
|
-
} : r.prototype._next, u._error = o ? function(
|
|
496
|
+
} : r.prototype._next, u._error = o ? function(c) {
|
|
503
497
|
try {
|
|
504
|
-
o(
|
|
498
|
+
o(c);
|
|
505
499
|
} catch (f) {
|
|
506
500
|
e.error(f);
|
|
507
501
|
} finally {
|
|
@@ -510,8 +504,8 @@ var fe = function(r) {
|
|
|
510
504
|
} : r.prototype._error, u._complete = i ? function() {
|
|
511
505
|
try {
|
|
512
506
|
i();
|
|
513
|
-
} catch (
|
|
514
|
-
e.error(
|
|
507
|
+
} catch (c) {
|
|
508
|
+
e.error(c);
|
|
515
509
|
} finally {
|
|
516
510
|
this.unsubscribe();
|
|
517
511
|
}
|
|
@@ -527,11 +521,11 @@ var fe = function(r) {
|
|
|
527
521
|
}(R), K = function() {
|
|
528
522
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
529
523
|
}();
|
|
530
|
-
function
|
|
524
|
+
function ae(r) {
|
|
531
525
|
return r;
|
|
532
526
|
}
|
|
533
|
-
function
|
|
534
|
-
return r.length === 0 ?
|
|
527
|
+
function ue(r) {
|
|
528
|
+
return r.length === 0 ? ae : r.length === 1 ? r[0] : function(e) {
|
|
535
529
|
return r.reduce(function(n, i) {
|
|
536
530
|
return i(n);
|
|
537
531
|
}, e);
|
|
@@ -545,10 +539,10 @@ var b = function() {
|
|
|
545
539
|
var e = new r();
|
|
546
540
|
return e.source = this, e.operator = t, e;
|
|
547
541
|
}, r.prototype.subscribe = function(t, e, n) {
|
|
548
|
-
var i = this, o =
|
|
549
|
-
return
|
|
550
|
-
var s = i,
|
|
551
|
-
o.add(
|
|
542
|
+
var i = this, o = fe(t) ? t : new H(t, e, n);
|
|
543
|
+
return re(function() {
|
|
544
|
+
var s = i, a = s.operator, u = s.source;
|
|
545
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
552
546
|
}), o;
|
|
553
547
|
}, r.prototype._trySubscribe = function(t) {
|
|
554
548
|
try {
|
|
@@ -560,9 +554,9 @@ var b = function() {
|
|
|
560
554
|
var n = this;
|
|
561
555
|
return e = L(e), new e(function(i, o) {
|
|
562
556
|
var s = new H({
|
|
563
|
-
next: function(
|
|
557
|
+
next: function(a) {
|
|
564
558
|
try {
|
|
565
|
-
t(
|
|
559
|
+
t(a);
|
|
566
560
|
} catch (u) {
|
|
567
561
|
o(u), s.unsubscribe();
|
|
568
562
|
}
|
|
@@ -580,7 +574,7 @@ var b = function() {
|
|
|
580
574
|
}, r.prototype.pipe = function() {
|
|
581
575
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
582
576
|
t[e] = arguments[e];
|
|
583
|
-
return
|
|
577
|
+
return ue(t)(this);
|
|
584
578
|
}, r.prototype.toPromise = function(t) {
|
|
585
579
|
var e = this;
|
|
586
580
|
return t = L(t), new t(function(n, i) {
|
|
@@ -601,38 +595,38 @@ function L(r) {
|
|
|
601
595
|
var t;
|
|
602
596
|
return (t = r ?? $.Promise) !== null && t !== void 0 ? t : Promise;
|
|
603
597
|
}
|
|
604
|
-
function
|
|
598
|
+
function le(r) {
|
|
605
599
|
return r && h(r.next) && h(r.error) && h(r.complete);
|
|
606
600
|
}
|
|
607
|
-
function
|
|
608
|
-
return r && r instanceof R ||
|
|
601
|
+
function fe(r) {
|
|
602
|
+
return r && r instanceof R || le(r) && M(r);
|
|
609
603
|
}
|
|
610
|
-
var
|
|
604
|
+
var he = function(r) {
|
|
611
605
|
return r && typeof r.length == "number" && typeof r != "function";
|
|
612
606
|
};
|
|
613
|
-
function
|
|
607
|
+
function pe(r) {
|
|
614
608
|
return h(r == null ? void 0 : r.then);
|
|
615
609
|
}
|
|
616
|
-
function
|
|
610
|
+
function ye(r) {
|
|
617
611
|
return h(r[K]);
|
|
618
612
|
}
|
|
619
|
-
function
|
|
613
|
+
function de(r) {
|
|
620
614
|
return Symbol.asyncIterator && h(r == null ? void 0 : r[Symbol.asyncIterator]);
|
|
621
615
|
}
|
|
622
|
-
function
|
|
616
|
+
function ve(r) {
|
|
623
617
|
return new TypeError("You provided " + (r !== null && typeof r == "object" ? "an invalid object" : "'" + r + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
624
618
|
}
|
|
625
|
-
function
|
|
619
|
+
function be() {
|
|
626
620
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
627
621
|
}
|
|
628
|
-
var
|
|
629
|
-
function
|
|
630
|
-
return h(r == null ? void 0 : r[
|
|
622
|
+
var me = be();
|
|
623
|
+
function Ae(r) {
|
|
624
|
+
return h(r == null ? void 0 : r[me]);
|
|
631
625
|
}
|
|
632
|
-
function
|
|
633
|
-
return
|
|
626
|
+
function _e(r) {
|
|
627
|
+
return X(this, arguments, function() {
|
|
634
628
|
var e, n, i, o;
|
|
635
|
-
return
|
|
629
|
+
return F(this, function(s) {
|
|
636
630
|
switch (s.label) {
|
|
637
631
|
case 0:
|
|
638
632
|
e = r.getReader(), s.label = 1;
|
|
@@ -660,29 +654,29 @@ function we(r) {
|
|
|
660
654
|
});
|
|
661
655
|
});
|
|
662
656
|
}
|
|
663
|
-
function
|
|
657
|
+
function Se(r) {
|
|
664
658
|
return h(r == null ? void 0 : r.getReader);
|
|
665
659
|
}
|
|
666
|
-
function
|
|
660
|
+
function ge(r) {
|
|
667
661
|
if (r instanceof b)
|
|
668
662
|
return r;
|
|
669
663
|
if (r != null) {
|
|
670
|
-
if (
|
|
671
|
-
return
|
|
672
|
-
if (
|
|
673
|
-
return
|
|
674
|
-
if (
|
|
675
|
-
return
|
|
676
|
-
if (
|
|
664
|
+
if (ye(r))
|
|
665
|
+
return Te(r);
|
|
666
|
+
if (he(r))
|
|
667
|
+
return we(r);
|
|
668
|
+
if (pe(r))
|
|
669
|
+
return Pe(r);
|
|
670
|
+
if (de(r))
|
|
677
671
|
return Y(r);
|
|
678
|
-
if (
|
|
679
|
-
return
|
|
680
|
-
if (
|
|
681
|
-
return
|
|
672
|
+
if (Ae(r))
|
|
673
|
+
return Ee(r);
|
|
674
|
+
if (Se(r))
|
|
675
|
+
return Ue(r);
|
|
682
676
|
}
|
|
683
|
-
throw
|
|
677
|
+
throw ve(r);
|
|
684
678
|
}
|
|
685
|
-
function
|
|
679
|
+
function Te(r) {
|
|
686
680
|
return new b(function(t) {
|
|
687
681
|
var e = r[K]();
|
|
688
682
|
if (h(e.subscribe))
|
|
@@ -690,14 +684,14 @@ function Ue(r) {
|
|
|
690
684
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
691
685
|
});
|
|
692
686
|
}
|
|
693
|
-
function
|
|
687
|
+
function we(r) {
|
|
694
688
|
return new b(function(t) {
|
|
695
689
|
for (var e = 0; e < r.length && !t.closed; e++)
|
|
696
690
|
t.next(r[e]);
|
|
697
691
|
t.complete();
|
|
698
692
|
});
|
|
699
693
|
}
|
|
700
|
-
function
|
|
694
|
+
function Pe(r) {
|
|
701
695
|
return new b(function(t) {
|
|
702
696
|
r.then(function(e) {
|
|
703
697
|
t.closed || (t.next(e), t.complete());
|
|
@@ -706,7 +700,7 @@ function Ie(r) {
|
|
|
706
700
|
}).then(null, G);
|
|
707
701
|
});
|
|
708
702
|
}
|
|
709
|
-
function
|
|
703
|
+
function Ee(r) {
|
|
710
704
|
return new b(function(t) {
|
|
711
705
|
var e, n;
|
|
712
706
|
try {
|
|
@@ -715,8 +709,8 @@ function Ce(r) {
|
|
|
715
709
|
if (t.next(s), t.closed)
|
|
716
710
|
return;
|
|
717
711
|
}
|
|
718
|
-
} catch (
|
|
719
|
-
e = { error:
|
|
712
|
+
} catch (a) {
|
|
713
|
+
e = { error: a };
|
|
720
714
|
} finally {
|
|
721
715
|
try {
|
|
722
716
|
o && !o.done && (n = i.return) && n.call(i);
|
|
@@ -730,22 +724,22 @@ function Ce(r) {
|
|
|
730
724
|
}
|
|
731
725
|
function Y(r) {
|
|
732
726
|
return new b(function(t) {
|
|
733
|
-
|
|
727
|
+
Oe(r, t).catch(function(e) {
|
|
734
728
|
return t.error(e);
|
|
735
729
|
});
|
|
736
730
|
});
|
|
737
731
|
}
|
|
738
|
-
function
|
|
739
|
-
return Y(
|
|
732
|
+
function Ue(r) {
|
|
733
|
+
return Y(_e(r));
|
|
740
734
|
}
|
|
741
|
-
function
|
|
735
|
+
function Oe(r, t) {
|
|
742
736
|
var e, n, i, o;
|
|
743
|
-
return
|
|
744
|
-
var s,
|
|
745
|
-
return
|
|
737
|
+
return Q(this, void 0, void 0, function() {
|
|
738
|
+
var s, a;
|
|
739
|
+
return F(this, function(u) {
|
|
746
740
|
switch (u.label) {
|
|
747
741
|
case 0:
|
|
748
|
-
u.trys.push([0, 5, 6, 11]), e =
|
|
742
|
+
u.trys.push([0, 5, 6, 11]), e = Z(r), u.label = 1;
|
|
749
743
|
case 1:
|
|
750
744
|
return [4, e.next()];
|
|
751
745
|
case 2:
|
|
@@ -759,7 +753,7 @@ function xe(r, t) {
|
|
|
759
753
|
case 4:
|
|
760
754
|
return [3, 11];
|
|
761
755
|
case 5:
|
|
762
|
-
return
|
|
756
|
+
return a = u.sent(), i = { error: a }, [3, 11];
|
|
763
757
|
case 6:
|
|
764
758
|
return u.trys.push([6, , 9, 10]), n && !n.done && (o = e.return) ? [4, o.call(e)] : [3, 8];
|
|
765
759
|
case 7:
|
|
@@ -778,35 +772,35 @@ function xe(r, t) {
|
|
|
778
772
|
});
|
|
779
773
|
});
|
|
780
774
|
}
|
|
781
|
-
function
|
|
775
|
+
function Ie(r, t) {
|
|
782
776
|
t === void 0 && (t = {});
|
|
783
|
-
var e = t.selector, n =
|
|
777
|
+
var e = t.selector, n = z(t, ["selector"]);
|
|
784
778
|
return new b(function(i) {
|
|
785
|
-
var o = new AbortController(), s = o.signal,
|
|
779
|
+
var o = new AbortController(), s = o.signal, a = !0, u = n.signal;
|
|
786
780
|
if (u)
|
|
787
781
|
if (u.aborted)
|
|
788
782
|
o.abort();
|
|
789
783
|
else {
|
|
790
|
-
var
|
|
784
|
+
var c = function() {
|
|
791
785
|
s.aborted || o.abort();
|
|
792
786
|
};
|
|
793
|
-
u.addEventListener("abort",
|
|
794
|
-
return u.removeEventListener("abort",
|
|
787
|
+
u.addEventListener("abort", c), i.add(function() {
|
|
788
|
+
return u.removeEventListener("abort", c);
|
|
795
789
|
});
|
|
796
790
|
}
|
|
797
791
|
var f = w(w({}, n), { signal: s }), y = function(l) {
|
|
798
|
-
|
|
792
|
+
a = !1, i.error(l);
|
|
799
793
|
};
|
|
800
794
|
return fetch(r, f).then(function(l) {
|
|
801
|
-
e ?
|
|
802
|
-
|
|
803
|
-
}, y)) : (
|
|
795
|
+
e ? ge(e(l)).subscribe(se(i, void 0, function() {
|
|
796
|
+
a = !1, i.complete();
|
|
797
|
+
}, y)) : (a = !1, i.next(l), i.complete());
|
|
804
798
|
}).catch(y), function() {
|
|
805
|
-
|
|
799
|
+
a && o.abort();
|
|
806
800
|
};
|
|
807
801
|
});
|
|
808
802
|
}
|
|
809
|
-
class
|
|
803
|
+
class Ce extends V {
|
|
810
804
|
constructor() {
|
|
811
805
|
super();
|
|
812
806
|
v(this, "API_AUTH_BACK_URL");
|
|
@@ -825,7 +819,7 @@ class Re extends q {
|
|
|
825
819
|
};
|
|
826
820
|
}
|
|
827
821
|
get() {
|
|
828
|
-
return this.logDebug("get ServiceToken"),
|
|
822
|
+
return this.logDebug("get ServiceToken"), Ie(this.API_AUTH_BACK_URL, {
|
|
829
823
|
method: "POST",
|
|
830
824
|
headers: this.headers,
|
|
831
825
|
body: JSON.stringify({
|
|
@@ -841,11 +835,11 @@ class Re extends q {
|
|
|
841
835
|
`ServiceToken <URL>: \x1B[33m ${this.API_AUTH_BACK_URL} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(this.headers)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(e)} \x1B[37m`
|
|
842
836
|
), S(((n = e == null ? void 0 : e.data) == null ? void 0 : n.Token) || "");
|
|
843
837
|
}),
|
|
844
|
-
|
|
838
|
+
N((e) => (this.logError(`ServiceToken ${e}`), S("")))
|
|
845
839
|
);
|
|
846
840
|
}
|
|
847
841
|
}
|
|
848
|
-
class
|
|
842
|
+
class Ke extends q {
|
|
849
843
|
constructor() {
|
|
850
844
|
super();
|
|
851
845
|
v(this, "headers");
|
|
@@ -855,7 +849,7 @@ class Me extends Z {
|
|
|
855
849
|
};
|
|
856
850
|
}
|
|
857
851
|
addTokenBackend(e) {
|
|
858
|
-
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new
|
|
852
|
+
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new Ce().get().pipe(
|
|
859
853
|
_((n) => S({ ...e, Authorization: `Bearer ${n}` }))
|
|
860
854
|
);
|
|
861
855
|
}
|
|
@@ -881,8 +875,7 @@ class Me extends Z {
|
|
|
881
875
|
}
|
|
882
876
|
}
|
|
883
877
|
export {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
Be as f
|
|
878
|
+
Ke as C,
|
|
879
|
+
Ce as S,
|
|
880
|
+
Ie as f
|
|
888
881
|
};
|