mp-front-cli 0.0.49 → 0.0.51

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 { C as z } from "./custom-encrypter-d0c882f9.js";
6
+ import { C as z } from "./custom-encrypter-8d9d2783.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;
@@ -1,10 +1,10 @@
1
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-1e9c94f2.js";
2
+ import { S as l } from "./custom-header-17ded9ec.js";
3
3
  import { LoadingHandler as f, MessageHandler as s, RxSubjectManager as v } from "./mp-front-cli-utils-rxjs.es.js";
4
4
  import "./index-df4e0539.js";
5
5
  import "./mp-front-cli-logger.es.js";
6
6
  import "rxjs";
7
- import "./custom-encrypter-d0c882f9.js";
7
+ import "./custom-encrypter-8d9d2783.js";
8
8
  import "./custom-encoder-70a77460.js";
9
9
  import "crypto";
10
10
  export {
@@ -3,7 +3,7 @@ var Zt = (s, e, t) => e in s ? Xt(s, e, { enumerable: !0, configurable: !0, writ
3
3
  var $ = (s, e, t) => (Zt(s, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { c as nt, g as $t, a as es } from "./custom-encoder-70a77460.js";
5
5
  import ts from "crypto";
6
- import { r as ss, C as rs } from "./custom-encrypter-d0c882f9.js";
6
+ import { r as ss, C as rs } from "./custom-encrypter-8d9d2783.js";
7
7
  import "./mp-front-cli-logger.es.js";
8
8
  var Pe = { exports: {} }, he = {}, se = {};
9
9
  const ns = {
@@ -6780,7 +6780,7 @@ var Xc = Pe.exports;
6780
6780
  const Zc = /* @__PURE__ */ es(Xc);
6781
6781
  class cl extends rs {
6782
6782
  constructor() {
6783
- super(...arguments);
6783
+ super();
6784
6784
  $(this, "REDIS_HOST", process.env.REDIS_HOST);
6785
6785
  $(this, "REDIS_PORT", process.env.REDIS_PORT);
6786
6786
  $(this, "REDIS_USER", process.env.REDIS_USER);
@@ -6854,5 +6854,5 @@ class cl extends rs {
6854
6854
  }
6855
6855
  }
6856
6856
  export {
6857
- cl as RedisCacheHandler
6857
+ cl as CustomCache
6858
6858
  };
@@ -1,14 +1,14 @@
1
1
  var ve = Object.defineProperty;
2
2
  var we = (i, e, t) => e in i ? ve(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var $ = (i, e, t) => (we(i, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { C as Re, f as pe } from "./custom-header-1e9c94f2.js";
5
- import { S as ht } from "./custom-header-1e9c94f2.js";
4
+ import { C as Re, f as pe } from "./custom-header-17ded9ec.js";
5
+ import { S as ht } from "./custom-header-17ded9ec.js";
6
6
  import { MessageHandler as ne, LoadingHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
7
7
  import { RxSubjectManager as dt } from "./mp-front-cli-utils-rxjs.es.js";
8
8
  import { t as Ne } from "./index-df4e0539.js";
9
9
  import { CustomLogger as Pe } from "./mp-front-cli-logger.es.js";
10
10
  import { of as w, switchMap as N, forkJoin as ie, catchError as me, EMPTY as ye, filter as be } from "rxjs";
11
- import { C as $e, v as re } from "./custom-encrypter-d0c882f9.js";
11
+ import { C as $e, c as re } from "./custom-encrypter-8d9d2783.js";
12
12
  import { C as Ce } from "./custom-encoder-70a77460.js";
13
13
  import "crypto";
14
14
  const Ee = {
@@ -107,7 +107,7 @@ function U() {
107
107
  function ae(i) {
108
108
  return i == null ? "" : "" + i;
109
109
  }
110
- function ke(i, e, t) {
110
+ function je(i, e, t) {
111
111
  i.forEach((s) => {
112
112
  e[s] && (t[s] = e[s]);
113
113
  });
@@ -138,7 +138,7 @@ function oe(i, e, t) {
138
138
  } = q(i, e, Object);
139
139
  s[n] = t;
140
140
  }
141
- function je(i, e, t, s) {
141
+ function ke(i, e, t, s) {
142
142
  const {
143
143
  obj: n,
144
144
  k: r
@@ -162,7 +162,7 @@ function xe(i, e, t) {
162
162
  s !== "__proto__" && s !== "constructor" && (s in i ? typeof i[s] == "string" || i[s] instanceof String || typeof e[s] == "string" || e[s] instanceof String ? t && (i[s] = e[s]) : xe(i[s], e[s], t) : i[s] = e[s]);
163
163
  return i;
164
164
  }
165
- function k(i) {
165
+ function j(i) {
166
166
  return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
167
167
  }
168
168
  var Ae = {
@@ -314,7 +314,7 @@ const ue = {};
314
314
  class Z extends Q {
315
315
  constructor(e) {
316
316
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
317
- super(), ke(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
317
+ super(), je(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
318
318
  }
319
319
  changeLanguage(e) {
320
320
  e && (this.language = e);
@@ -877,7 +877,7 @@ class Je {
877
877
  escapeValue: !0
878
878
  });
879
879
  const t = e.interpolation;
880
- this.escape = t.escape !== void 0 ? t.escape : De, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? k(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? k(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? k(t.nestingPrefix) : t.nestingPrefixEscaped || k("$t("), this.nestingSuffix = t.nestingSuffix ? k(t.nestingSuffix) : t.nestingSuffixEscaped || k(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
880
+ this.escape = t.escape !== void 0 ? t.escape : De, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? j(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? j(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? j(t.nestingPrefix) : t.nestingPrefixEscaped || j("$t("), this.nestingSuffix = t.nestingSuffix ? j(t.nestingSuffix) : t.nestingSuffixEscaped || j(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
881
881
  }
882
882
  reset() {
883
883
  this.options && this.init(this.options);
@@ -1002,7 +1002,7 @@ function ze(i) {
1002
1002
  formatOptions: t
1003
1003
  };
1004
1004
  }
1005
- function j(i) {
1005
+ function k(i) {
1006
1006
  const e = {};
1007
1007
  return function(s, n, r) {
1008
1008
  const a = n + JSON.stringify(r);
@@ -1014,32 +1014,32 @@ class We {
1014
1014
  constructor() {
1015
1015
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1016
1016
  this.logger = P.create("formatter"), this.options = e, this.formats = {
1017
- number: j((t, s) => {
1017
+ number: k((t, s) => {
1018
1018
  const n = new Intl.NumberFormat(t, {
1019
1019
  ...s
1020
1020
  });
1021
1021
  return (r) => n.format(r);
1022
1022
  }),
1023
- currency: j((t, s) => {
1023
+ currency: k((t, s) => {
1024
1024
  const n = new Intl.NumberFormat(t, {
1025
1025
  ...s,
1026
1026
  style: "currency"
1027
1027
  });
1028
1028
  return (r) => n.format(r);
1029
1029
  }),
1030
- datetime: j((t, s) => {
1030
+ datetime: k((t, s) => {
1031
1031
  const n = new Intl.DateTimeFormat(t, {
1032
1032
  ...s
1033
1033
  });
1034
1034
  return (r) => n.format(r);
1035
1035
  }),
1036
- relativetime: j((t, s) => {
1036
+ relativetime: k((t, s) => {
1037
1037
  const n = new Intl.RelativeTimeFormat(t, {
1038
1038
  ...s
1039
1039
  });
1040
1040
  return (r) => n.format(r, s.range || "day");
1041
1041
  }),
1042
- list: j((t, s) => {
1042
+ list: k((t, s) => {
1043
1043
  const n = new Intl.ListFormat(t, {
1044
1044
  ...s
1045
1045
  });
@@ -1057,7 +1057,7 @@ class We {
1057
1057
  this.formats[e.toLowerCase().trim()] = t;
1058
1058
  }
1059
1059
  addCached(e, t) {
1060
- this.formats[e.toLowerCase().trim()] = j(t);
1060
+ this.formats[e.toLowerCase().trim()] = k(t);
1061
1061
  }
1062
1062
  format(e, t, s) {
1063
1063
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -1119,7 +1119,7 @@ class Ge extends Q {
1119
1119
  t && this.emit("failedLoading", r, a, t), s && this.store.addResourceBundle(r, a, s), this.state[e] = t ? -1 : 2;
1120
1120
  const l = {};
1121
1121
  this.queue.forEach((o) => {
1122
- je(o.loaded, [r], a), Ye(o, e), t && o.errors.push(t), o.pendingCount === 0 && !o.done && (Object.keys(o.loaded).forEach((f) => {
1122
+ ke(o.loaded, [r], a), Ye(o, e), t && o.errors.push(t), o.pendingCount === 0 && !o.done && (Object.keys(o.loaded).forEach((f) => {
1123
1123
  l[f] || (l[f] = {});
1124
1124
  const g = o.loaded[f];
1125
1125
  g.length && g.forEach((h) => {
@@ -1747,7 +1747,7 @@ class ut extends Ce {
1747
1747
  return t.code && (ne.getInstance().setSubject(t), M.getInstance().setSubject(!1)), !t.code;
1748
1748
  }
1749
1749
  fetchData(t = {}) {
1750
- const s = (/* @__PURE__ */ new Date()).toISOString(), n = re(s, re.URL), r = this.encode({ ...t }, n);
1750
+ const s = (/* @__PURE__ */ new Date()).toISOString(), n = re.v5(s, re.v5.URL), r = this.encode({ ...t }, n);
1751
1751
  M.getInstance().setSubject(this.isLoadingEnabled);
1752
1752
  const l = new URLSearchParams(window.location.search).get("flow") || "N/A";
1753
1753
  return pe(this.apiUrl, {
@@ -1,4 +1,4 @@
1
- import { C as i } from "./custom-encrypter-d0c882f9.js";
1
+ import { C as i } from "./custom-encrypter-8d9d2783.js";
2
2
  import "crypto";
3
3
  import "./custom-encoder-70a77460.js";
4
4
  import "./mp-front-cli-logger.es.js";
@@ -1,6 +1,6 @@
1
1
  import "rxjs";
2
- import { C as a } from "./custom-header-1e9c94f2.js";
3
- import "./custom-encrypter-d0c882f9.js";
2
+ import { C as a } from "./custom-header-17ded9ec.js";
3
+ import "./custom-encrypter-8d9d2783.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.49",
3
+ "version": "0.0.51",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {