mp-front-cli 0.0.45 → 0.0.46

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.
@@ -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 { CustomEncrypter as z } from "./mp-front-cli-encrypter.es.js";
6
+ import { C as z } from "./custom-encrypter-1573699a.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 C(r, t) {
15
+ function B(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 s(f) {
50
+ function c(f) {
51
51
  try {
52
- c(n.next(f));
52
+ s(n.next(f));
53
53
  } catch (y) {
54
54
  u(y);
55
55
  }
56
56
  }
57
57
  function a(f) {
58
58
  try {
59
- c(n.throw(f));
59
+ s(n.throw(f));
60
60
  } catch (y) {
61
61
  u(y);
62
62
  }
63
63
  }
64
- function c(f) {
65
- f.done ? o(f.value) : i(f.value).then(s, a);
64
+ function s(f) {
65
+ f.done ? o(f.value) : i(f.value).then(c, a);
66
66
  }
67
- c((n = n.apply(r, t || [])).next());
67
+ s((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: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
76
+ return u = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
77
77
  return this;
78
78
  }), u;
79
- function s(c) {
79
+ function c(s) {
80
80
  return function(f) {
81
- return a([c, f]);
81
+ return a([s, f]);
82
82
  };
83
83
  }
84
- function a(c) {
84
+ function a(s) {
85
85
  if (n)
86
86
  throw new TypeError("Generator is already executing.");
87
- for (; u && (u = 0, c[0] && (e = 0)), e; )
87
+ for (; u && (u = 0, s[0] && (e = 0)), e; )
88
88
  try {
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)
89
+ if (n = 1, i && (o = s[0] & 2 ? i.return : s[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, s[1])).done)
90
90
  return o;
91
- switch (i = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
91
+ switch (i = 0, o && (s = [s[0] & 2, o.value]), s[0]) {
92
92
  case 0:
93
93
  case 1:
94
- o = c;
94
+ o = s;
95
95
  break;
96
96
  case 4:
97
- return e.label++, { value: c[1], done: !1 };
97
+ return e.label++, { value: s[1], done: !1 };
98
98
  case 5:
99
- e.label++, i = c[1], c = [0];
99
+ e.label++, i = s[1], s = [0];
100
100
  continue;
101
101
  case 7:
102
- c = e.ops.pop(), e.trys.pop();
102
+ s = 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]) && (c[0] === 6 || c[0] === 2)) {
105
+ if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (s[0] === 6 || s[0] === 2)) {
106
106
  e = 0;
107
107
  continue;
108
108
  }
109
- if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
110
- e.label = c[1];
109
+ if (s[0] === 3 && (!o || s[1] > o[0] && s[1] < o[3])) {
110
+ e.label = s[1];
111
111
  break;
112
112
  }
113
- if (c[0] === 6 && e.label < o[1]) {
114
- e.label = o[1], o = c;
113
+ if (s[0] === 6 && e.label < o[1]) {
114
+ e.label = o[1], o = s;
115
115
  break;
116
116
  }
117
117
  if (o && e.label < o[2]) {
118
- e.label = o[2], e.ops.push(c);
118
+ e.label = o[2], e.ops.push(s);
119
119
  break;
120
120
  }
121
121
  o[2] && e.ops.pop(), e.trys.pop();
122
122
  continue;
123
123
  }
124
- c = t.call(r, e);
124
+ s = t.call(r, e);
125
125
  } catch (f) {
126
- c = [6, f], i = 0;
126
+ s = [6, f], i = 0;
127
127
  } finally {
128
128
  n = o = 0;
129
129
  }
130
- if (c[0] & 5)
131
- throw c[1];
132
- return { value: c[0] ? c[1] : void 0, done: !0 };
130
+ if (s[0] & 5)
131
+ throw s[1];
132
+ return { value: s[0] ? s[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 (s) {
156
- u = { error: s };
155
+ } catch (c) {
156
+ u = { error: c };
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 || s(l, d);
186
+ o.push([l, d, A, p]) > 1 || c(l, d);
187
187
  });
188
188
  });
189
189
  }
190
- function s(l, d) {
190
+ function c(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(c, f) : y(o[0][2], l);
198
+ l.value instanceof m ? Promise.resolve(l.value.v).then(s, f) : y(o[0][2], l);
199
199
  }
200
- function c(l) {
201
- s("next", l);
200
+ function s(l) {
201
+ c("next", l);
202
202
  }
203
203
  function f(l) {
204
- s("throw", l);
204
+ c("throw", l);
205
205
  }
206
206
  function y(l, d) {
207
- l(d), o.shift(), o.length && s(o[0][0], o[0][1]);
207
+ l(d), o.shift(), o.length && c(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(s, a) {
220
- u = r[o](u), i(s, a, u.done, u.value);
219
+ return new Promise(function(c, a) {
220
+ u = r[o](u), i(c, a, u.done, u.value);
221
221
  });
222
222
  };
223
223
  }
224
- function i(o, u, s, a) {
225
- Promise.resolve(a).then(function(c) {
226
- o({ value: c, done: s });
224
+ function i(o, u, c, a) {
225
+ Promise.resolve(a).then(function(s) {
226
+ o({ value: s, done: c });
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 s = _(u), a = s.next(); !a.done; a = s.next()) {
267
- var c = a.value;
268
- c.remove(this);
266
+ for (var c = _(u), a = c.next(); !a.done; a = c.next()) {
267
+ var s = a.value;
268
+ s.remove(this);
269
269
  }
270
270
  } catch (p) {
271
271
  t = { error: p };
272
272
  } finally {
273
273
  try {
274
- a && !a.done && (e = s.return) && e.call(s);
274
+ a && !a.done && (e = c.return) && e.call(c);
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
- }, H = {
358
+ }, C = {
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 = H.delegate;
362
+ var i = C.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 = H.delegate;
366
+ var t = C.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
- H.setTimeout(function() {
372
+ C.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
- C(t, r);
382
+ B(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 B(e, n, i);
388
+ return new H(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
- }(), B = function(r) {
448
- C(t, r);
447
+ }(), H = function(r) {
448
+ B(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 s;
459
- o && M.useDeprecatedNextContext ? (s = Object.create(e), s.unsubscribe = function() {
458
+ var c;
459
+ o && M.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
460
460
  return o.unsubscribe();
461
461
  }, u = {
462
- next: e.next && I(e.next, s),
463
- error: e.error && I(e.error, s),
464
- complete: e.complete && I(e.complete, s)
462
+ next: e.next && I(e.next, c),
463
+ error: e.error && I(e.error, c),
464
+ complete: e.complete && I(e.complete, c)
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 cr(r, t, e, n, i);
484
+ return new sr(r, t, e, n, i);
485
485
  }
486
- var cr = function(r) {
487
- C(t, r);
488
- function t(e, n, i, o, u, s) {
486
+ var sr = function(r) {
487
+ B(t, r);
488
+ function t(e, n, i, o, u, c) {
489
489
  var a = r.call(this, e) || this;
490
- return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = n ? function(c) {
490
+ return a.onFinalize = u, a.shouldUnsubscribe = c, a._next = n ? function(s) {
491
491
  try {
492
- n(c);
492
+ n(s);
493
493
  } catch (f) {
494
494
  e.error(f);
495
495
  }
496
- } : r.prototype._next, a._error = o ? function(c) {
496
+ } : r.prototype._next, a._error = o ? function(s) {
497
497
  try {
498
- o(c);
498
+ o(s);
499
499
  } catch (f) {
500
500
  e.error(f);
501
501
  } finally {
@@ -504,8 +504,8 @@ var cr = function(r) {
504
504
  } : r.prototype._error, a._complete = i ? function() {
505
505
  try {
506
506
  i();
507
- } catch (c) {
508
- e.error(c);
507
+ } catch (s) {
508
+ e.error(s);
509
509
  } finally {
510
510
  this.unsubscribe();
511
511
  }
@@ -521,11 +521,11 @@ var cr = function(r) {
521
521
  }(R), K = function() {
522
522
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
523
523
  }();
524
- function sr(r) {
524
+ function cr(r) {
525
525
  return r;
526
526
  }
527
527
  function ar(r) {
528
- return r.length === 0 ? sr : r.length === 1 ? r[0] : function(e) {
528
+ return r.length === 0 ? cr : 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 B(t, e, n);
542
+ var i = this, o = fr(t) ? t : new H(t, e, n);
543
543
  return er(function() {
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));
544
+ var u = i, c = u.operator, a = u.source;
545
+ o.add(c ? c.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 B({
557
- next: function(s) {
556
+ var u = new H({
557
+ next: function(c) {
558
558
  try {
559
- t(s);
559
+ t(c);
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 (s) {
713
- e = { error: s };
712
+ } catch (c) {
713
+ e = { error: c };
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, s;
738
+ var u, c;
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 s = a.sent(), i = { error: s }, [3, 11];
756
+ return c = a.sent(), i = { error: c }, [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, s = !0, a = n.signal;
779
+ var o = new AbortController(), u = o.signal, c = !0, a = n.signal;
780
780
  if (a)
781
781
  if (a.aborted)
782
782
  o.abort();
783
783
  else {
784
- var c = function() {
784
+ var s = function() {
785
785
  u.aborted || o.abort();
786
786
  };
787
- a.addEventListener("abort", c), i.add(function() {
788
- return a.removeEventListener("abort", c);
787
+ a.addEventListener("abort", s), i.add(function() {
788
+ return a.removeEventListener("abort", s);
789
789
  });
790
790
  }
791
791
  var f = w(w({}, n), { signal: u }), y = function(l) {
792
- s = !1, i.error(l);
792
+ c = !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
- s = !1, i.complete();
797
- }, y)) : (s = !1, i.next(l), i.complete());
796
+ c = !1, i.complete();
797
+ }, y)) : (c = !1, i.next(l), i.complete());
798
798
  }).catch(y), function() {
799
- s && o.abort();
799
+ c && o.abort();
800
800
  };
801
801
  });
802
802
  }
803
- class Hr extends q {
803
+ class Cr 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 Hr().get().pipe(
852
+ return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new Cr().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
- Hr as S,
864
+ Cr as S,
865
865
  Or as f
866
866
  };
@@ -1,22 +1,19 @@
1
- import { E as n } from "./custom-validator-74fcaf87.js";
2
- import { ApiMiddleware as S, FetchServiceBE as f, FetchServiceFE as g } from "./mp-front-cli-core.es.js";
3
- import { S as s } from "./custom-header-3ba5652e.js";
4
- import { LoadingHandler as v, MessageHandler as F, RxSubjectManager as M } from "./mp-front-cli-utils-rxjs.es.js";
5
- import "./mp-front-cli-encoder.es.js";
6
- import "./mp-front-cli-logger.es.js";
1
+ import { ApiMiddleware as c, ErrorCatalog as d, FetchServiceBE as n, FetchServiceFE as S } from "./mp-front-cli-core.es.js";
2
+ import { S as l } from "./custom-header-eeb04e28.js";
3
+ import { LoadingHandler as f, MessageHandler as s, RxSubjectManager as v } from "./mp-front-cli-utils-rxjs.es.js";
7
4
  import "./index-df4e0539.js";
8
- import "next-auth";
5
+ import "./mp-front-cli-logger.es.js";
9
6
  import "rxjs";
10
- import "./mp-front-cli-encrypter.es.js";
11
- import "node-jose";
7
+ import "./custom-encrypter-1573699a.js";
8
+ import "./custom-encoder-05d6a9f1.js";
12
9
  import "crypto";
13
10
  export {
14
- S as ApiMiddleware,
15
- n as ErrorCatalog,
16
- f as FetchServiceBE,
17
- g as FetchServiceFE,
18
- v as LoadingHandler,
19
- F as MessageHandler,
20
- M as RxSubjectManager,
21
- s as ServiceToken
11
+ c as ApiMiddleware,
12
+ d as ErrorCatalog,
13
+ n as FetchServiceBE,
14
+ S as FetchServiceFE,
15
+ f as LoadingHandler,
16
+ s as MessageHandler,
17
+ v as RxSubjectManager,
18
+ l as ServiceToken
22
19
  };