mp-front-cli 0.0.41 → 0.0.42

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 ? W(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 _, of as S, catchError as N } from "rxjs";
5
5
  import { CustomLogger as V } from "./mp-front-cli-logger.es.js";
6
- import { C as q } from "./custom-encrypter-fa4e497d.js";
6
+ import { C as q } from "./custom-encrypter-53d456d5.js";
7
7
  var I = function(r, t) {
8
8
  return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
9
9
  e.__proto__ = n;
@@ -1,12 +1,12 @@
1
1
  import { E as c } from "./custom-validator-8a042f7f.js";
2
2
  import { ApiMiddleware as n, FetchServiceBE as x, FetchServiceFE as S } from "./mp-front-cli-core.es.js";
3
- import { S as g } from "./custom-header-9277c393.js";
3
+ import { S as g } from "./custom-header-4f5b8f1b.js";
4
4
  import { LoadingHandler as s, MessageHandler as E, RxSubjectManager as v } from "./mp-front-cli-utils-rxjs.es.js";
5
5
  import "./custom-encoder-70a77460.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "./index-df4e0539.js";
8
8
  import "rxjs";
9
- import "./custom-encrypter-fa4e497d.js";
9
+ import "./custom-encrypter-53d456d5.js";
10
10
  import "crypto";
11
11
  export {
12
12
  n as ApiMiddleware,
@@ -1,13 +1,13 @@
1
1
  var x = Object.defineProperty;
2
2
  var E = (d, n, t) => n in d ? x(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t;
3
3
  var u = (d, n, t) => (E(d, typeof n != "symbol" ? n + "" : n, t), t);
4
- import { E as m, C as B } from "./custom-validator-8a042f7f.js";
5
- import { C as y, f as S } from "./custom-header-9277c393.js";
6
- import { S as C } from "./custom-header-9277c393.js";
7
- import { MessageHandler as l, LoadingHandler as c } from "./mp-front-cli-utils-rxjs.es.js";
4
+ import { E as l, C as B } from "./custom-validator-8a042f7f.js";
5
+ import { C as y, f as S } from "./custom-header-4f5b8f1b.js";
6
+ import { S as C } from "./custom-header-4f5b8f1b.js";
7
+ import { MessageHandler as m, LoadingHandler as c } from "./mp-front-cli-utils-rxjs.es.js";
8
8
  import { RxSubjectManager as T } from "./mp-front-cli-utils-rxjs.es.js";
9
9
  import { of as a, switchMap as o, catchError as p, EMPTY as f, filter as b } from "rxjs";
10
- import { C as O, c as g } from "./custom-encrypter-fa4e497d.js";
10
+ import { C as O, v as g } from "./custom-encrypter-53d456d5.js";
11
11
  import "./custom-encoder-70a77460.js";
12
12
  import "./mp-front-cli-logger.es.js";
13
13
  import "./index-df4e0539.js";
@@ -22,7 +22,7 @@ class I extends O {
22
22
  t.status(200).json(s);
23
23
  }
24
24
  returnError(t, i) {
25
- return i != null && i.uuid ? t.status(520).json(i) : t.status(520).json(new m().get(i, this.uuid));
25
+ return i != null && i.uuid ? t.status(520).json(i) : t.status(520).json(new l().get(i, this.uuid));
26
26
  }
27
27
  get(t) {
28
28
  return this.logDebug("get ApiMiddleware"), (i, r) => {
@@ -61,7 +61,7 @@ class H extends y {
61
61
  }
62
62
  errorHandler(t, i) {
63
63
  if (t != null && t.errors)
64
- throw new m().get(t.errors[0], i);
64
+ throw new l().get(t.errors[0], i);
65
65
  return !(t != null && t.errors);
66
66
  }
67
67
  fetchData(t = {}, i) {
@@ -105,10 +105,10 @@ class L extends B {
105
105
  this.isLoadingEnabled = t;
106
106
  }
107
107
  errorHandler(t) {
108
- return t.code && (l.getInstance().setSubject(t), c.getInstance().setSubject(!1)), !t.code;
108
+ return t.code && (m.getInstance().setSubject(t), c.getInstance().setSubject(!1)), !t.code;
109
109
  }
110
110
  fetchData(t = {}) {
111
- const i = (/* @__PURE__ */ new Date()).toISOString(), r = g.v5(i, g.v5.URL), s = this.encode({ ...t }, r);
111
+ const i = (/* @__PURE__ */ new Date()).toISOString(), r = g(i, g.URL), s = this.encode({ ...t }, r);
112
112
  return c.getInstance().setSubject(this.isLoadingEnabled), S(this.apiUrl, {
113
113
  method: this.method,
114
114
  headers: this.headers,
@@ -121,19 +121,19 @@ class L extends B {
121
121
  ), a(e))),
122
122
  b(this.errorHandler),
123
123
  o((e) => (c.getInstance().setSubject(!1), a(e))),
124
- p((e) => (c.getInstance().setSubject(!1), l.getInstance().setSubject(
125
- new m().get(e, r)
124
+ p((e) => (c.getInstance().setSubject(!1), m.getInstance().setSubject(
125
+ new l().get(e, r)
126
126
  ), f))
127
127
  );
128
128
  }
129
129
  }
130
130
  export {
131
131
  I as ApiMiddleware,
132
- m as ErrorCatalog,
132
+ l as ErrorCatalog,
133
133
  H as FetchServiceBE,
134
134
  L as FetchServiceFE,
135
135
  c as LoadingHandler,
136
- l as MessageHandler,
136
+ m as MessageHandler,
137
137
  T as RxSubjectManager,
138
138
  C as ServiceToken
139
139
  };
@@ -1,4 +1,4 @@
1
- import { C as s } from "./custom-encrypter-fa4e497d.js";
1
+ import { C as s } from "./custom-encrypter-53d456d5.js";
2
2
  import "crypto";
3
3
  import "./custom-validator-8a042f7f.js";
4
4
  import "./custom-encoder-70a77460.js";
@@ -1,6 +1,6 @@
1
1
  import "rxjs";
2
- import { C } from "./custom-header-9277c393.js";
3
- import "./custom-encrypter-fa4e497d.js";
2
+ import { C } from "./custom-header-4f5b8f1b.js";
3
+ import "./custom-encrypter-53d456d5.js";
4
4
  import "./mp-front-cli-logger.es.js";
5
5
  import "./custom-encoder-70a77460.js";
6
6
  import "crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {