mp-front-cli 0.0.56 → 0.0.58
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/interfaces/api-response.d.ts +9 -12
- package/dist/core/interfaces/api-response.d.ts.map +1 -1
- package/dist/core/middleware/index.d.ts +1 -1
- package/dist/core/middleware/index.d.ts.map +1 -1
- package/dist/core/utils/api-request/fetch-service-be.d.ts +3 -3
- package/dist/core/utils/api-request/fetch-service-be.d.ts.map +1 -1
- package/dist/core/utils/custom-cache.d.ts +1 -0
- package/dist/core/utils/custom-cache.d.ts.map +1 -1
- package/dist/core/utils/custom-header.d.ts +1 -1
- package/dist/core/utils/custom-header.d.ts.map +1 -1
- package/dist/{custom-header-3ba5652e.js → custom-header-596dcd13.js} +300 -299
- package/dist/mp-front-cli-all.es.js +1 -1
- package/dist/mp-front-cli-cache.es.js +18 -14
- package/dist/mp-front-cli-core.es.js +103 -98
- package/dist/mp-front-cli-header.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
var G = Object.defineProperty;
|
|
2
|
-
var J = (
|
|
3
|
-
var v = (
|
|
2
|
+
var J = (e, t, r) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var v = (e, t, r) => (J(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
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
6
|
import { CustomEncrypter as z } from "./mp-front-cli-encrypter.es.js";
|
|
7
|
-
var O = function(
|
|
8
|
-
return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
9
|
-
|
|
10
|
-
} || function(
|
|
7
|
+
var O = function(e, t) {
|
|
8
|
+
return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
9
|
+
r.__proto__ = n;
|
|
10
|
+
} || function(r, n) {
|
|
11
11
|
for (var i in n)
|
|
12
|
-
Object.prototype.hasOwnProperty.call(n, i) && (
|
|
13
|
-
}, O(
|
|
12
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
13
|
+
}, O(e, t);
|
|
14
14
|
};
|
|
15
|
-
function C(
|
|
15
|
+
function C(e, 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
|
-
O(
|
|
19
|
-
function
|
|
20
|
-
this.constructor =
|
|
18
|
+
O(e, t);
|
|
19
|
+
function r() {
|
|
20
|
+
this.constructor = e;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
23
23
|
}
|
|
24
24
|
var w = function() {
|
|
25
25
|
return w = Object.assign || function(t) {
|
|
26
|
-
for (var
|
|
27
|
-
|
|
28
|
-
for (var o in
|
|
29
|
-
Object.prototype.hasOwnProperty.call(
|
|
26
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
27
|
+
r = arguments[n];
|
|
28
|
+
for (var o in r)
|
|
29
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
30
30
|
}
|
|
31
31
|
return t;
|
|
32
32
|
}, w.apply(this, arguments);
|
|
33
33
|
};
|
|
34
|
-
function Q(
|
|
35
|
-
var
|
|
36
|
-
for (var n in
|
|
37
|
-
Object.prototype.hasOwnProperty.call(
|
|
38
|
-
if (
|
|
39
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(
|
|
40
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(
|
|
41
|
-
return
|
|
34
|
+
function Q(e, t) {
|
|
35
|
+
var r = {};
|
|
36
|
+
for (var n in e)
|
|
37
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
38
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
39
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
40
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
41
|
+
return r;
|
|
42
42
|
}
|
|
43
|
-
function X(
|
|
43
|
+
function X(e, t, r, n) {
|
|
44
44
|
function i(o) {
|
|
45
|
-
return o instanceof
|
|
45
|
+
return o instanceof r ? o : new r(function(u) {
|
|
46
46
|
u(o);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
return new (
|
|
49
|
+
return new (r || (r = Promise))(function(o, u) {
|
|
50
50
|
function s(f) {
|
|
51
51
|
try {
|
|
52
52
|
c(n.next(f));
|
|
@@ -64,11 +64,11 @@ function X(r, t, e, n) {
|
|
|
64
64
|
function c(f) {
|
|
65
65
|
f.done ? o(f.value) : i(f.value).then(s, a);
|
|
66
66
|
}
|
|
67
|
-
c((n = n.apply(
|
|
67
|
+
c((n = n.apply(e, t || [])).next());
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
function F(
|
|
71
|
-
var
|
|
70
|
+
function F(e, t) {
|
|
71
|
+
var r = { label: 0, sent: function() {
|
|
72
72
|
if (o[0] & 1)
|
|
73
73
|
throw o[1];
|
|
74
74
|
return o[1];
|
|
@@ -84,7 +84,7 @@ function F(r, t) {
|
|
|
84
84
|
function a(c) {
|
|
85
85
|
if (n)
|
|
86
86
|
throw new TypeError("Generator is already executing.");
|
|
87
|
-
for (; u && (u = 0, c[0] && (
|
|
87
|
+
for (; u && (u = 0, c[0] && (r = 0)), r; )
|
|
88
88
|
try {
|
|
89
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;
|
|
@@ -94,34 +94,34 @@ function F(r, t) {
|
|
|
94
94
|
o = c;
|
|
95
95
|
break;
|
|
96
96
|
case 4:
|
|
97
|
-
return
|
|
97
|
+
return r.label++, { value: c[1], done: !1 };
|
|
98
98
|
case 5:
|
|
99
|
-
|
|
99
|
+
r.label++, i = c[1], c = [0];
|
|
100
100
|
continue;
|
|
101
101
|
case 7:
|
|
102
|
-
c =
|
|
102
|
+
c = r.ops.pop(), r.trys.pop();
|
|
103
103
|
continue;
|
|
104
104
|
default:
|
|
105
|
-
if (o =
|
|
106
|
-
|
|
105
|
+
if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
|
|
106
|
+
r = 0;
|
|
107
107
|
continue;
|
|
108
108
|
}
|
|
109
109
|
if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
|
|
110
|
-
|
|
110
|
+
r.label = c[1];
|
|
111
111
|
break;
|
|
112
112
|
}
|
|
113
|
-
if (c[0] === 6 &&
|
|
114
|
-
|
|
113
|
+
if (c[0] === 6 && r.label < o[1]) {
|
|
114
|
+
r.label = o[1], o = c;
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
|
-
if (o &&
|
|
118
|
-
|
|
117
|
+
if (o && r.label < o[2]) {
|
|
118
|
+
r.label = o[2], r.ops.push(c);
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
|
-
o[2] &&
|
|
121
|
+
o[2] && r.ops.pop(), r.trys.pop();
|
|
122
122
|
continue;
|
|
123
123
|
}
|
|
124
|
-
c = t.call(
|
|
124
|
+
c = t.call(e, r);
|
|
125
125
|
} catch (f) {
|
|
126
126
|
c = [6, f], i = 0;
|
|
127
127
|
} finally {
|
|
@@ -132,23 +132,23 @@ function F(r, t) {
|
|
|
132
132
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
function _(
|
|
136
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
137
|
-
if (
|
|
138
|
-
return
|
|
139
|
-
if (
|
|
135
|
+
function _(e) {
|
|
136
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
137
|
+
if (r)
|
|
138
|
+
return r.call(e);
|
|
139
|
+
if (e && typeof e.length == "number")
|
|
140
140
|
return {
|
|
141
141
|
next: function() {
|
|
142
|
-
return
|
|
142
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
146
146
|
}
|
|
147
|
-
function P(
|
|
148
|
-
var
|
|
149
|
-
if (!
|
|
150
|
-
return
|
|
151
|
-
var n =
|
|
147
|
+
function P(e, t) {
|
|
148
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
149
|
+
if (!r)
|
|
150
|
+
return e;
|
|
151
|
+
var n = r.call(e), i, o = [], u;
|
|
152
152
|
try {
|
|
153
153
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
154
154
|
o.push(i.value);
|
|
@@ -156,7 +156,7 @@ function P(r, t) {
|
|
|
156
156
|
u = { error: s };
|
|
157
157
|
} finally {
|
|
158
158
|
try {
|
|
159
|
-
i && !i.done && (
|
|
159
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
160
160
|
} finally {
|
|
161
161
|
if (u)
|
|
162
162
|
throw u.error;
|
|
@@ -164,19 +164,19 @@ function P(r, t) {
|
|
|
164
164
|
}
|
|
165
165
|
return o;
|
|
166
166
|
}
|
|
167
|
-
function U(
|
|
168
|
-
if (
|
|
167
|
+
function U(e, t, r) {
|
|
168
|
+
if (r || arguments.length === 2)
|
|
169
169
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
170
170
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
171
|
-
return
|
|
171
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
172
172
|
}
|
|
173
|
-
function m(
|
|
174
|
-
return this instanceof m ? (this.v =
|
|
173
|
+
function m(e) {
|
|
174
|
+
return this instanceof m ? (this.v = e, this) : new m(e);
|
|
175
175
|
}
|
|
176
|
-
function Z(
|
|
176
|
+
function Z(e, t, r) {
|
|
177
177
|
if (!Symbol.asyncIterator)
|
|
178
178
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
179
|
-
var n =
|
|
179
|
+
var n = r.apply(e, t || []), i, o = [];
|
|
180
180
|
return i = {}, u("next"), u("throw"), u("return"), i[Symbol.asyncIterator] = function() {
|
|
181
181
|
return this;
|
|
182
182
|
}, i;
|
|
@@ -207,17 +207,17 @@ function Z(r, t, e) {
|
|
|
207
207
|
l(d), o.shift(), o.length && s(o[0][0], o[0][1]);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
function N(
|
|
210
|
+
function N(e) {
|
|
211
211
|
if (!Symbol.asyncIterator)
|
|
212
212
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
213
|
-
var t =
|
|
214
|
-
return t ? t.call(
|
|
213
|
+
var t = e[Symbol.asyncIterator], r;
|
|
214
|
+
return t ? t.call(e) : (e = typeof _ == "function" ? _(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
|
|
215
215
|
return this;
|
|
216
|
-
},
|
|
216
|
+
}, r);
|
|
217
217
|
function n(o) {
|
|
218
|
-
|
|
218
|
+
r[o] = e[o] && function(u) {
|
|
219
219
|
return new Promise(function(s, a) {
|
|
220
|
-
u =
|
|
220
|
+
u = e[o](u), i(s, a, u.done, u.value);
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
223
|
}
|
|
@@ -227,36 +227,36 @@ function N(r) {
|
|
|
227
227
|
}, u);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function h(
|
|
231
|
-
return typeof
|
|
230
|
+
function h(e) {
|
|
231
|
+
return typeof e == "function";
|
|
232
232
|
}
|
|
233
|
-
function rr(
|
|
233
|
+
function rr(e) {
|
|
234
234
|
var t = function(n) {
|
|
235
235
|
Error.call(n), n.stack = new Error().stack;
|
|
236
|
-
},
|
|
237
|
-
return
|
|
236
|
+
}, r = e(t);
|
|
237
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
238
238
|
}
|
|
239
|
-
var E = rr(function(
|
|
240
|
-
return function(
|
|
241
|
-
|
|
242
|
-
` +
|
|
239
|
+
var E = rr(function(e) {
|
|
240
|
+
return function(r) {
|
|
241
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
242
|
+
` + r.map(function(n, i) {
|
|
243
243
|
return i + 1 + ") " + n.toString();
|
|
244
244
|
}).join(`
|
|
245
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
245
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
246
246
|
};
|
|
247
247
|
});
|
|
248
|
-
function k(
|
|
249
|
-
if (
|
|
250
|
-
var
|
|
251
|
-
0 <=
|
|
248
|
+
function k(e, t) {
|
|
249
|
+
if (e) {
|
|
250
|
+
var r = e.indexOf(t);
|
|
251
|
+
0 <= r && e.splice(r, 1);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
var x = function() {
|
|
255
|
-
function
|
|
255
|
+
function e(t) {
|
|
256
256
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
257
257
|
}
|
|
258
|
-
return
|
|
259
|
-
var t,
|
|
258
|
+
return e.prototype.unsubscribe = function() {
|
|
259
|
+
var t, r, n, i, o;
|
|
260
260
|
if (!this.closed) {
|
|
261
261
|
this.closed = !0;
|
|
262
262
|
var u = this._parentage;
|
|
@@ -271,7 +271,7 @@ var x = function() {
|
|
|
271
271
|
t = { error: p };
|
|
272
272
|
} finally {
|
|
273
273
|
try {
|
|
274
|
-
a && !a.done && (
|
|
274
|
+
a && !a.done && (r = s.return) && r.call(s);
|
|
275
275
|
} finally {
|
|
276
276
|
if (t)
|
|
277
277
|
throw t.error;
|
|
@@ -312,42 +312,42 @@ var x = function() {
|
|
|
312
312
|
if (o)
|
|
313
313
|
throw new E(o);
|
|
314
314
|
}
|
|
315
|
-
},
|
|
316
|
-
var
|
|
315
|
+
}, e.prototype.add = function(t) {
|
|
316
|
+
var r;
|
|
317
317
|
if (t && t !== this)
|
|
318
318
|
if (this.closed)
|
|
319
319
|
j(t);
|
|
320
320
|
else {
|
|
321
|
-
if (t instanceof
|
|
321
|
+
if (t instanceof e) {
|
|
322
322
|
if (t.closed || t._hasParent(this))
|
|
323
323
|
return;
|
|
324
324
|
t._addParent(this);
|
|
325
325
|
}
|
|
326
|
-
(this._finalizers = (
|
|
326
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
327
327
|
}
|
|
328
|
-
},
|
|
329
|
-
var
|
|
330
|
-
return
|
|
331
|
-
},
|
|
332
|
-
var
|
|
333
|
-
this._parentage = Array.isArray(
|
|
334
|
-
},
|
|
335
|
-
var
|
|
336
|
-
|
|
337
|
-
},
|
|
338
|
-
var
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
var t = new
|
|
328
|
+
}, e.prototype._hasParent = function(t) {
|
|
329
|
+
var r = this._parentage;
|
|
330
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
331
|
+
}, e.prototype._addParent = function(t) {
|
|
332
|
+
var r = this._parentage;
|
|
333
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
334
|
+
}, e.prototype._removeParent = function(t) {
|
|
335
|
+
var r = this._parentage;
|
|
336
|
+
r === t ? this._parentage = null : Array.isArray(r) && k(r, t);
|
|
337
|
+
}, e.prototype.remove = function(t) {
|
|
338
|
+
var r = this._finalizers;
|
|
339
|
+
r && k(r, t), t instanceof e && t._removeParent(this);
|
|
340
|
+
}, e.EMPTY = function() {
|
|
341
|
+
var t = new e();
|
|
342
342
|
return t.closed = !0, t;
|
|
343
|
-
}(),
|
|
343
|
+
}(), e;
|
|
344
344
|
}();
|
|
345
345
|
x.EMPTY;
|
|
346
|
-
function $(
|
|
347
|
-
return
|
|
346
|
+
function $(e) {
|
|
347
|
+
return e instanceof x || e && "closed" in e && h(e.remove) && h(e.add) && h(e.unsubscribe);
|
|
348
348
|
}
|
|
349
|
-
function j(
|
|
350
|
-
h(
|
|
349
|
+
function j(e) {
|
|
350
|
+
h(e) ? e() : e.unsubscribe();
|
|
351
351
|
}
|
|
352
352
|
var M = {
|
|
353
353
|
onUnhandledError: null,
|
|
@@ -356,49 +356,49 @@ var M = {
|
|
|
356
356
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
357
357
|
useDeprecatedNextContext: !1
|
|
358
358
|
}, H = {
|
|
359
|
-
setTimeout: function(
|
|
360
|
-
for (var
|
|
361
|
-
|
|
359
|
+
setTimeout: function(e, t) {
|
|
360
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
361
|
+
r[n - 2] = arguments[n];
|
|
362
362
|
var i = H.delegate;
|
|
363
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i, U([
|
|
363
|
+
return i != null && i.setTimeout ? i.setTimeout.apply(i, U([e, t], P(r))) : setTimeout.apply(void 0, U([e, t], P(r)));
|
|
364
364
|
},
|
|
365
|
-
clearTimeout: function(
|
|
365
|
+
clearTimeout: function(e) {
|
|
366
366
|
var t = H.delegate;
|
|
367
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
|
367
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
368
368
|
},
|
|
369
369
|
delegate: void 0
|
|
370
370
|
};
|
|
371
|
-
function Y(
|
|
371
|
+
function Y(e) {
|
|
372
372
|
H.setTimeout(function() {
|
|
373
|
-
throw
|
|
373
|
+
throw e;
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
function D() {
|
|
377
377
|
}
|
|
378
|
-
function er(
|
|
379
|
-
|
|
378
|
+
function er(e) {
|
|
379
|
+
e();
|
|
380
380
|
}
|
|
381
|
-
var R = function(
|
|
382
|
-
C(t,
|
|
383
|
-
function t(
|
|
384
|
-
var n =
|
|
385
|
-
return n.isStopped = !1,
|
|
381
|
+
var R = function(e) {
|
|
382
|
+
C(t, e);
|
|
383
|
+
function t(r) {
|
|
384
|
+
var n = e.call(this) || this;
|
|
385
|
+
return n.isStopped = !1, r ? (n.destination = r, $(r) && r.add(n)) : n.destination = ir, n;
|
|
386
386
|
}
|
|
387
|
-
return t.create = function(
|
|
388
|
-
return new B(
|
|
389
|
-
}, t.prototype.next = function(
|
|
390
|
-
this.isStopped || this._next(
|
|
391
|
-
}, t.prototype.error = function(
|
|
392
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
387
|
+
return t.create = function(r, n, i) {
|
|
388
|
+
return new B(r, n, i);
|
|
389
|
+
}, t.prototype.next = function(r) {
|
|
390
|
+
this.isStopped || this._next(r);
|
|
391
|
+
}, t.prototype.error = function(r) {
|
|
392
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
393
393
|
}, t.prototype.complete = function() {
|
|
394
394
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
395
395
|
}, t.prototype.unsubscribe = function() {
|
|
396
|
-
this.closed || (this.isStopped = !0,
|
|
397
|
-
}, t.prototype._next = function(
|
|
398
|
-
this.destination.next(
|
|
399
|
-
}, t.prototype._error = function(
|
|
396
|
+
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
397
|
+
}, t.prototype._next = function(r) {
|
|
398
|
+
this.destination.next(r);
|
|
399
|
+
}, t.prototype._error = function(r) {
|
|
400
400
|
try {
|
|
401
|
-
this.destination.error(
|
|
401
|
+
this.destination.error(r);
|
|
402
402
|
} finally {
|
|
403
403
|
this.unsubscribe();
|
|
404
404
|
}
|
|
@@ -410,69 +410,69 @@ var R = function(r) {
|
|
|
410
410
|
}
|
|
411
411
|
}, t;
|
|
412
412
|
}(x), tr = Function.prototype.bind;
|
|
413
|
-
function I(
|
|
414
|
-
return tr.call(
|
|
413
|
+
function I(e, t) {
|
|
414
|
+
return tr.call(e, t);
|
|
415
415
|
}
|
|
416
416
|
var nr = function() {
|
|
417
|
-
function
|
|
417
|
+
function e(t) {
|
|
418
418
|
this.partialObserver = t;
|
|
419
419
|
}
|
|
420
|
-
return
|
|
421
|
-
var
|
|
422
|
-
if (
|
|
420
|
+
return e.prototype.next = function(t) {
|
|
421
|
+
var r = this.partialObserver;
|
|
422
|
+
if (r.next)
|
|
423
423
|
try {
|
|
424
|
-
|
|
424
|
+
r.next(t);
|
|
425
425
|
} catch (n) {
|
|
426
426
|
S(n);
|
|
427
427
|
}
|
|
428
|
-
},
|
|
429
|
-
var
|
|
430
|
-
if (
|
|
428
|
+
}, e.prototype.error = function(t) {
|
|
429
|
+
var r = this.partialObserver;
|
|
430
|
+
if (r.error)
|
|
431
431
|
try {
|
|
432
|
-
|
|
432
|
+
r.error(t);
|
|
433
433
|
} catch (n) {
|
|
434
434
|
S(n);
|
|
435
435
|
}
|
|
436
436
|
else
|
|
437
437
|
S(t);
|
|
438
|
-
},
|
|
438
|
+
}, e.prototype.complete = function() {
|
|
439
439
|
var t = this.partialObserver;
|
|
440
440
|
if (t.complete)
|
|
441
441
|
try {
|
|
442
442
|
t.complete();
|
|
443
|
-
} catch (
|
|
444
|
-
S(
|
|
443
|
+
} catch (r) {
|
|
444
|
+
S(r);
|
|
445
445
|
}
|
|
446
|
-
},
|
|
447
|
-
}(), B = function(
|
|
448
|
-
C(t,
|
|
449
|
-
function t(
|
|
450
|
-
var o =
|
|
451
|
-
if (h(
|
|
446
|
+
}, e;
|
|
447
|
+
}(), B = function(e) {
|
|
448
|
+
C(t, e);
|
|
449
|
+
function t(r, n, i) {
|
|
450
|
+
var o = e.call(this) || this, u;
|
|
451
|
+
if (h(r) || !r)
|
|
452
452
|
u = {
|
|
453
|
-
next:
|
|
453
|
+
next: r ?? void 0,
|
|
454
454
|
error: n ?? void 0,
|
|
455
455
|
complete: i ?? void 0
|
|
456
456
|
};
|
|
457
457
|
else {
|
|
458
458
|
var s;
|
|
459
|
-
o && M.useDeprecatedNextContext ? (s = Object.create(
|
|
459
|
+
o && M.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
460
460
|
return o.unsubscribe();
|
|
461
461
|
}, u = {
|
|
462
|
-
next:
|
|
463
|
-
error:
|
|
464
|
-
complete:
|
|
465
|
-
}) : u =
|
|
462
|
+
next: r.next && I(r.next, s),
|
|
463
|
+
error: r.error && I(r.error, s),
|
|
464
|
+
complete: r.complete && I(r.complete, s)
|
|
465
|
+
}) : u = r;
|
|
466
466
|
}
|
|
467
467
|
return o.destination = new nr(u), o;
|
|
468
468
|
}
|
|
469
469
|
return t;
|
|
470
470
|
}(R);
|
|
471
|
-
function S(
|
|
472
|
-
Y(
|
|
471
|
+
function S(e) {
|
|
472
|
+
Y(e);
|
|
473
473
|
}
|
|
474
|
-
function or(
|
|
475
|
-
throw
|
|
474
|
+
function or(e) {
|
|
475
|
+
throw e;
|
|
476
476
|
}
|
|
477
477
|
var ir = {
|
|
478
478
|
closed: !0,
|
|
@@ -480,79 +480,79 @@ var ir = {
|
|
|
480
480
|
error: or,
|
|
481
481
|
complete: D
|
|
482
482
|
};
|
|
483
|
-
function ur(
|
|
484
|
-
return new cr(
|
|
483
|
+
function ur(e, t, r, n, i) {
|
|
484
|
+
return new cr(e, t, r, n, i);
|
|
485
485
|
}
|
|
486
|
-
var cr = function(
|
|
487
|
-
C(t,
|
|
488
|
-
function t(
|
|
489
|
-
var a =
|
|
486
|
+
var cr = function(e) {
|
|
487
|
+
C(t, e);
|
|
488
|
+
function t(r, n, i, o, u, s) {
|
|
489
|
+
var a = e.call(this, r) || this;
|
|
490
490
|
return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = n ? function(c) {
|
|
491
491
|
try {
|
|
492
492
|
n(c);
|
|
493
493
|
} catch (f) {
|
|
494
|
-
|
|
494
|
+
r.error(f);
|
|
495
495
|
}
|
|
496
|
-
} :
|
|
496
|
+
} : e.prototype._next, a._error = o ? function(c) {
|
|
497
497
|
try {
|
|
498
498
|
o(c);
|
|
499
499
|
} catch (f) {
|
|
500
|
-
|
|
500
|
+
r.error(f);
|
|
501
501
|
} finally {
|
|
502
502
|
this.unsubscribe();
|
|
503
503
|
}
|
|
504
|
-
} :
|
|
504
|
+
} : e.prototype._error, a._complete = i ? function() {
|
|
505
505
|
try {
|
|
506
506
|
i();
|
|
507
507
|
} catch (c) {
|
|
508
|
-
|
|
508
|
+
r.error(c);
|
|
509
509
|
} finally {
|
|
510
510
|
this.unsubscribe();
|
|
511
511
|
}
|
|
512
|
-
} :
|
|
512
|
+
} : e.prototype._complete, a;
|
|
513
513
|
}
|
|
514
514
|
return t.prototype.unsubscribe = function() {
|
|
515
|
-
var
|
|
515
|
+
var r;
|
|
516
516
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
517
517
|
var n = this.closed;
|
|
518
|
-
|
|
518
|
+
e.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this));
|
|
519
519
|
}
|
|
520
520
|
}, t;
|
|
521
521
|
}(R), K = function() {
|
|
522
522
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
523
523
|
}();
|
|
524
|
-
function sr(
|
|
525
|
-
return
|
|
524
|
+
function sr(e) {
|
|
525
|
+
return e;
|
|
526
526
|
}
|
|
527
|
-
function ar(
|
|
528
|
-
return
|
|
529
|
-
return
|
|
527
|
+
function ar(e) {
|
|
528
|
+
return e.length === 0 ? sr : e.length === 1 ? e[0] : function(r) {
|
|
529
|
+
return e.reduce(function(n, i) {
|
|
530
530
|
return i(n);
|
|
531
|
-
},
|
|
531
|
+
}, r);
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
534
|
var b = function() {
|
|
535
|
-
function
|
|
535
|
+
function e(t) {
|
|
536
536
|
t && (this._subscribe = t);
|
|
537
537
|
}
|
|
538
|
-
return
|
|
539
|
-
var
|
|
540
|
-
return
|
|
541
|
-
},
|
|
542
|
-
var i = this, o = fr(t) ? t : new B(t,
|
|
538
|
+
return e.prototype.lift = function(t) {
|
|
539
|
+
var r = new e();
|
|
540
|
+
return r.source = this, r.operator = t, r;
|
|
541
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
542
|
+
var i = this, o = fr(t) ? t : new B(t, r, n);
|
|
543
543
|
return er(function() {
|
|
544
544
|
var u = i, s = u.operator, a = u.source;
|
|
545
545
|
o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
|
|
546
546
|
}), o;
|
|
547
|
-
},
|
|
547
|
+
}, e.prototype._trySubscribe = function(t) {
|
|
548
548
|
try {
|
|
549
549
|
return this._subscribe(t);
|
|
550
|
-
} catch (
|
|
551
|
-
t.error(
|
|
550
|
+
} catch (r) {
|
|
551
|
+
t.error(r);
|
|
552
552
|
}
|
|
553
|
-
},
|
|
553
|
+
}, e.prototype.forEach = function(t, r) {
|
|
554
554
|
var n = this;
|
|
555
|
-
return
|
|
555
|
+
return r = L(r), new r(function(i, o) {
|
|
556
556
|
var u = new B({
|
|
557
557
|
next: function(s) {
|
|
558
558
|
try {
|
|
@@ -566,20 +566,20 @@ var b = function() {
|
|
|
566
566
|
});
|
|
567
567
|
n.subscribe(u);
|
|
568
568
|
});
|
|
569
|
-
},
|
|
570
|
-
var
|
|
571
|
-
return (
|
|
572
|
-
},
|
|
569
|
+
}, e.prototype._subscribe = function(t) {
|
|
570
|
+
var r;
|
|
571
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
572
|
+
}, e.prototype[K] = function() {
|
|
573
573
|
return this;
|
|
574
|
-
},
|
|
575
|
-
for (var t = [],
|
|
576
|
-
t[
|
|
574
|
+
}, e.prototype.pipe = function() {
|
|
575
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
576
|
+
t[r] = arguments[r];
|
|
577
577
|
return ar(t)(this);
|
|
578
|
-
},
|
|
579
|
-
var
|
|
578
|
+
}, e.prototype.toPromise = function(t) {
|
|
579
|
+
var r = this;
|
|
580
580
|
return t = L(t), new t(function(n, i) {
|
|
581
581
|
var o;
|
|
582
|
-
|
|
582
|
+
r.subscribe(function(u) {
|
|
583
583
|
return o = u;
|
|
584
584
|
}, function(u) {
|
|
585
585
|
return i(u);
|
|
@@ -587,53 +587,53 @@ var b = function() {
|
|
|
587
587
|
return n(o);
|
|
588
588
|
});
|
|
589
589
|
});
|
|
590
|
-
},
|
|
591
|
-
return new
|
|
592
|
-
},
|
|
590
|
+
}, e.create = function(t) {
|
|
591
|
+
return new e(t);
|
|
592
|
+
}, e;
|
|
593
593
|
}();
|
|
594
|
-
function L(
|
|
594
|
+
function L(e) {
|
|
595
595
|
var t;
|
|
596
|
-
return (t =
|
|
596
|
+
return (t = e ?? M.Promise) !== null && t !== void 0 ? t : Promise;
|
|
597
597
|
}
|
|
598
|
-
function lr(
|
|
599
|
-
return
|
|
598
|
+
function lr(e) {
|
|
599
|
+
return e && h(e.next) && h(e.error) && h(e.complete);
|
|
600
600
|
}
|
|
601
|
-
function fr(
|
|
602
|
-
return
|
|
601
|
+
function fr(e) {
|
|
602
|
+
return e && e instanceof R || lr(e) && $(e);
|
|
603
603
|
}
|
|
604
|
-
var hr = function(
|
|
605
|
-
return
|
|
604
|
+
var hr = function(e) {
|
|
605
|
+
return e && typeof e.length == "number" && typeof e != "function";
|
|
606
606
|
};
|
|
607
|
-
function pr(
|
|
608
|
-
return h(
|
|
607
|
+
function pr(e) {
|
|
608
|
+
return h(e == null ? void 0 : e.then);
|
|
609
609
|
}
|
|
610
|
-
function yr(
|
|
611
|
-
return h(
|
|
610
|
+
function yr(e) {
|
|
611
|
+
return h(e[K]);
|
|
612
612
|
}
|
|
613
|
-
function dr(
|
|
614
|
-
return Symbol.asyncIterator && h(
|
|
613
|
+
function dr(e) {
|
|
614
|
+
return Symbol.asyncIterator && h(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
615
615
|
}
|
|
616
|
-
function vr(
|
|
617
|
-
return new TypeError("You provided " + (
|
|
616
|
+
function vr(e) {
|
|
617
|
+
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
618
618
|
}
|
|
619
619
|
function br() {
|
|
620
620
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
621
621
|
}
|
|
622
622
|
var mr = br();
|
|
623
|
-
function Ar(
|
|
624
|
-
return h(
|
|
623
|
+
function Ar(e) {
|
|
624
|
+
return h(e == null ? void 0 : e[mr]);
|
|
625
625
|
}
|
|
626
|
-
function _r(
|
|
626
|
+
function _r(e) {
|
|
627
627
|
return Z(this, arguments, function() {
|
|
628
|
-
var
|
|
628
|
+
var r, n, i, o;
|
|
629
629
|
return F(this, function(u) {
|
|
630
630
|
switch (u.label) {
|
|
631
631
|
case 0:
|
|
632
|
-
|
|
632
|
+
r = e.getReader(), u.label = 1;
|
|
633
633
|
case 1:
|
|
634
634
|
u.trys.push([1, , 9, 10]), u.label = 2;
|
|
635
635
|
case 2:
|
|
636
|
-
return [4, m(
|
|
636
|
+
return [4, m(r.read())];
|
|
637
637
|
case 3:
|
|
638
638
|
return n = u.sent(), i = n.value, o = n.done, o ? [4, m(void 0)] : [3, 5];
|
|
639
639
|
case 4:
|
|
@@ -647,101 +647,101 @@ function _r(r) {
|
|
|
647
647
|
case 8:
|
|
648
648
|
return [3, 10];
|
|
649
649
|
case 9:
|
|
650
|
-
return
|
|
650
|
+
return r.releaseLock(), [7];
|
|
651
651
|
case 10:
|
|
652
652
|
return [2];
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
|
-
function Sr(
|
|
658
|
-
return h(
|
|
659
|
-
}
|
|
660
|
-
function gr(
|
|
661
|
-
if (
|
|
662
|
-
return
|
|
663
|
-
if (
|
|
664
|
-
if (yr(
|
|
665
|
-
return Tr(
|
|
666
|
-
if (hr(
|
|
667
|
-
return wr(
|
|
668
|
-
if (pr(
|
|
669
|
-
return Pr(
|
|
670
|
-
if (dr(
|
|
671
|
-
return W(
|
|
672
|
-
if (Ar(
|
|
673
|
-
return Ur(
|
|
674
|
-
if (Sr(
|
|
675
|
-
return Er(
|
|
657
|
+
function Sr(e) {
|
|
658
|
+
return h(e == null ? void 0 : e.getReader);
|
|
659
|
+
}
|
|
660
|
+
function gr(e) {
|
|
661
|
+
if (e instanceof b)
|
|
662
|
+
return e;
|
|
663
|
+
if (e != null) {
|
|
664
|
+
if (yr(e))
|
|
665
|
+
return Tr(e);
|
|
666
|
+
if (hr(e))
|
|
667
|
+
return wr(e);
|
|
668
|
+
if (pr(e))
|
|
669
|
+
return Pr(e);
|
|
670
|
+
if (dr(e))
|
|
671
|
+
return W(e);
|
|
672
|
+
if (Ar(e))
|
|
673
|
+
return Ur(e);
|
|
674
|
+
if (Sr(e))
|
|
675
|
+
return Er(e);
|
|
676
676
|
}
|
|
677
|
-
throw vr(
|
|
677
|
+
throw vr(e);
|
|
678
678
|
}
|
|
679
|
-
function Tr(
|
|
679
|
+
function Tr(e) {
|
|
680
680
|
return new b(function(t) {
|
|
681
|
-
var
|
|
682
|
-
if (h(
|
|
683
|
-
return
|
|
681
|
+
var r = e[K]();
|
|
682
|
+
if (h(r.subscribe))
|
|
683
|
+
return r.subscribe(t);
|
|
684
684
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function wr(
|
|
687
|
+
function wr(e) {
|
|
688
688
|
return new b(function(t) {
|
|
689
|
-
for (var
|
|
690
|
-
t.next(r
|
|
689
|
+
for (var r = 0; r < e.length && !t.closed; r++)
|
|
690
|
+
t.next(e[r]);
|
|
691
691
|
t.complete();
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
function Pr(
|
|
694
|
+
function Pr(e) {
|
|
695
695
|
return new b(function(t) {
|
|
696
|
-
|
|
697
|
-
t.closed || (t.next(
|
|
698
|
-
}, function(
|
|
699
|
-
return t.error(
|
|
696
|
+
e.then(function(r) {
|
|
697
|
+
t.closed || (t.next(r), t.complete());
|
|
698
|
+
}, function(r) {
|
|
699
|
+
return t.error(r);
|
|
700
700
|
}).then(null, Y);
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
|
-
function Ur(
|
|
703
|
+
function Ur(e) {
|
|
704
704
|
return new b(function(t) {
|
|
705
|
-
var
|
|
705
|
+
var r, n;
|
|
706
706
|
try {
|
|
707
|
-
for (var i = _(
|
|
707
|
+
for (var i = _(e), o = i.next(); !o.done; o = i.next()) {
|
|
708
708
|
var u = o.value;
|
|
709
709
|
if (t.next(u), t.closed)
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
712
|
} catch (s) {
|
|
713
|
-
|
|
713
|
+
r = { error: s };
|
|
714
714
|
} finally {
|
|
715
715
|
try {
|
|
716
716
|
o && !o.done && (n = i.return) && n.call(i);
|
|
717
717
|
} finally {
|
|
718
|
-
if (
|
|
719
|
-
throw
|
|
718
|
+
if (r)
|
|
719
|
+
throw r.error;
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
t.complete();
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
-
function W(
|
|
725
|
+
function W(e) {
|
|
726
726
|
return new b(function(t) {
|
|
727
|
-
Ir(
|
|
728
|
-
return t.error(
|
|
727
|
+
Ir(e, t).catch(function(r) {
|
|
728
|
+
return t.error(r);
|
|
729
729
|
});
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
function Er(
|
|
733
|
-
return W(_r(
|
|
732
|
+
function Er(e) {
|
|
733
|
+
return W(_r(e));
|
|
734
734
|
}
|
|
735
|
-
function Ir(
|
|
736
|
-
var
|
|
735
|
+
function Ir(e, t) {
|
|
736
|
+
var r, n, i, o;
|
|
737
737
|
return X(this, void 0, void 0, function() {
|
|
738
738
|
var u, s;
|
|
739
739
|
return F(this, function(a) {
|
|
740
740
|
switch (a.label) {
|
|
741
741
|
case 0:
|
|
742
|
-
a.trys.push([0, 5, 6, 11]),
|
|
742
|
+
a.trys.push([0, 5, 6, 11]), r = N(e), a.label = 1;
|
|
743
743
|
case 1:
|
|
744
|
-
return [4,
|
|
744
|
+
return [4, r.next()];
|
|
745
745
|
case 2:
|
|
746
746
|
if (n = a.sent(), !!n.done)
|
|
747
747
|
return [3, 4];
|
|
@@ -755,7 +755,7 @@ function Ir(r, t) {
|
|
|
755
755
|
case 5:
|
|
756
756
|
return s = a.sent(), i = { error: s }, [3, 11];
|
|
757
757
|
case 6:
|
|
758
|
-
return a.trys.push([6, , 9, 10]), n && !n.done && (o =
|
|
758
|
+
return a.trys.push([6, , 9, 10]), n && !n.done && (o = r.return) ? [4, o.call(r)] : [3, 8];
|
|
759
759
|
case 7:
|
|
760
760
|
a.sent(), a.label = 8;
|
|
761
761
|
case 8:
|
|
@@ -772,9 +772,9 @@ function Ir(r, t) {
|
|
|
772
772
|
});
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
|
-
function Or(
|
|
775
|
+
function Or(e, t) {
|
|
776
776
|
t === void 0 && (t = {});
|
|
777
|
-
var
|
|
777
|
+
var r = t.selector, n = Q(t, ["selector"]);
|
|
778
778
|
return new b(function(i) {
|
|
779
779
|
var o = new AbortController(), u = o.signal, s = !0, a = n.signal;
|
|
780
780
|
if (a)
|
|
@@ -791,8 +791,8 @@ function Or(r, t) {
|
|
|
791
791
|
var f = w(w({}, n), { signal: u }), y = function(l) {
|
|
792
792
|
s = !1, i.error(l);
|
|
793
793
|
};
|
|
794
|
-
return fetch(
|
|
795
|
-
|
|
794
|
+
return fetch(e, f).then(function(l) {
|
|
795
|
+
r ? gr(r(l)).subscribe(ur(i, void 0, function() {
|
|
796
796
|
s = !1, i.complete();
|
|
797
797
|
}, y)) : (s = !1, i.next(l), i.complete());
|
|
798
798
|
}).catch(y), function() {
|
|
@@ -811,7 +811,7 @@ class Hr extends q {
|
|
|
811
811
|
v(this, "API_AUTH_BACK_PASSWORD");
|
|
812
812
|
v(this, "headers");
|
|
813
813
|
this.API_AUTH_BACK_URL = process.env.API_AUTH_BACK_URL, this.API_AUTH_BACK_USERNAME_AUTH = process.env.API_AUTH_BACK_USERNAME_AUTH, this.API_AUTH_BACK_PASSWORD_AUTH = process.env.API_AUTH_BACK_PASSWORD_AUTH, this.API_AUTH_BACK_USER = process.env.API_AUTH_BACK_USER, this.API_AUTH_BACK_SCOPE = process.env.API_AUTH_BACK_SCOPE, this.API_AUTH_BACK_PASSWORD = process.env.API_AUTH_BACK_PASSWORD;
|
|
814
|
-
const
|
|
814
|
+
const r = `${this.API_AUTH_BACK_USERNAME_AUTH}:${this.API_AUTH_BACK_PASSWORD_AUTH}`, n = Buffer.from(r).toString("base64");
|
|
815
815
|
this.headers = {
|
|
816
816
|
Accept: "application/json",
|
|
817
817
|
"Content-Type": "application/json;charset=UTF-8",
|
|
@@ -828,35 +828,36 @@ class Hr extends q {
|
|
|
828
828
|
password: this.API_AUTH_BACK_PASSWORD
|
|
829
829
|
})
|
|
830
830
|
}).pipe(
|
|
831
|
-
g((
|
|
832
|
-
g((
|
|
831
|
+
g((r) => r.json()),
|
|
832
|
+
g((r) => {
|
|
833
833
|
var n;
|
|
834
834
|
return this.logDebug(
|
|
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(
|
|
836
|
-
), T(((n =
|
|
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(r)} \x1B[37m`
|
|
836
|
+
), T(((n = r == null ? void 0 : r.data) == null ? void 0 : n.Token) || "");
|
|
837
837
|
}),
|
|
838
|
-
V((
|
|
838
|
+
V((r) => (this.logError(`ServiceToken ${r}`), T("")))
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
class Kr extends z {
|
|
843
|
-
constructor() {
|
|
843
|
+
constructor(r = {}) {
|
|
844
844
|
super();
|
|
845
845
|
v(this, "headers");
|
|
846
846
|
this.headers = {
|
|
847
847
|
Accept: "application/json",
|
|
848
|
-
"Content-Type": "application/json"
|
|
848
|
+
"Content-Type": "application/vnd.api+json",
|
|
849
|
+
...r
|
|
849
850
|
};
|
|
850
851
|
}
|
|
851
|
-
addTokenBackend(
|
|
852
|
-
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(
|
|
853
|
-
g((n) => T({ ...
|
|
852
|
+
addTokenBackend(r) {
|
|
853
|
+
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(r)), new Hr().get().pipe(
|
|
854
|
+
g((n) => T({ ...r, Authorization: `Bearer ${n}` }))
|
|
854
855
|
);
|
|
855
856
|
}
|
|
856
857
|
getHeaders() {
|
|
857
|
-
return this.logDebug("getHeaders CustomHeader"),
|
|
858
|
-
...this.headers
|
|
859
|
-
|
|
858
|
+
return this.logDebug("getHeaders CustomHeader"), this.addTokenBackend({}).pipe(
|
|
859
|
+
g((r) => T({ ...r, ...this.headers }))
|
|
860
|
+
);
|
|
860
861
|
}
|
|
861
862
|
}
|
|
862
863
|
export {
|