mp-front-cli 0.0.75 → 0.0.77

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.
@@ -1,10 +1,26 @@
1
- import "rxjs";
2
- import { C as s } from "./custom-header-596dcd13.js";
3
- import "./mp-front-cli-encrypter.es.js";
4
- import "./mp-front-cli-logger.es.js";
1
+ var s = Object.defineProperty;
2
+ var p = (r, e, t) => e in r ? s(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var o = (r, e, t) => (p(r, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { of as i } from "rxjs";
5
+ import { CustomEncrypter as a } from "./mp-front-cli-encrypter.es.js";
5
6
  import "node-jose";
6
7
  import "crypto";
7
8
  import "./mp-front-cli-encoder.es.js";
9
+ import "./mp-front-cli-logger.es.js";
10
+ class l extends a {
11
+ constructor(t = {}) {
12
+ super();
13
+ o(this, "headers");
14
+ this.headers = {
15
+ Accept: "application/json",
16
+ "Content-Type": "application/vnd.api+json",
17
+ ...t
18
+ };
19
+ }
20
+ getHeaders() {
21
+ return this.logDebug("getHeaders CustomHeader"), i({ ...this.headers });
22
+ }
23
+ }
8
24
  export {
9
- s as CustomHeader
25
+ l as CustomHeader
10
26
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-83f54780.js";
1
+ import { t } from "./index-4b63b0bb.js";
2
2
  const e = {
3
3
  errors: {}
4
4
  }, a = {
@@ -23,7 +23,7 @@ const e = {
23
23
  integer: "Debe ser un número entero"
24
24
  },
25
25
  string: {
26
- length: "Debe tener exactamente ${length} caracteres",
26
+ length: "Debe tener exactamente {{length}} caracteres",
27
27
  min: "Debe tener al menos {{min}} caracteres",
28
28
  max: "Debe tener máximo {{max}} caracteres",
29
29
  email: "E-mail inválido",
@@ -32,13 +32,13 @@ const e = {
32
32
  matches: "Dato no válido"
33
33
  },
34
34
  date: {
35
- min: "Debe ser después de ${min}",
36
- max: "Debe ser antes de ${max}"
35
+ min: "Debe ser después de {{min}}",
36
+ max: "Debe ser antes de {{max}}"
37
37
  },
38
38
  array: {
39
- min: "Debe tener mínimo ${min} items",
40
- max: "Debe tener máximo ${max} items",
41
- length: "Debe tener ${max} items"
39
+ min: "Debe tener mínimo {{min}} items",
40
+ max: "Debe tener máximo {{max}} items",
41
+ length: "Debe tener {{max}} items"
42
42
  }
43
43
  }
44
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,2 +0,0 @@
1
- export { ServiceToken } from "./service-token";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
@@ -1,13 +0,0 @@
1
- import { CustomLogger } from "../utils/custom-logger";
2
- export declare class ServiceToken extends CustomLogger {
3
- private API_AUTH_BACK_URL;
4
- private API_AUTH_BACK_USERNAME_AUTH;
5
- private API_AUTH_BACK_PASSWORD_AUTH;
6
- private API_AUTH_BACK_USER;
7
- private API_AUTH_BACK_SCOPE;
8
- private API_AUTH_BACK_PASSWORD;
9
- private headers;
10
- constructor();
11
- get(): import("rxjs").Observable<any>;
12
- }
13
- //# sourceMappingURL=service-token.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service-token.d.ts","sourceRoot":"","sources":["../../../src/core/services/service-token.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,CAAC,iBAAiB,CAAQ;IACjC,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,kBAAkB,CAAQ;IAClC,OAAO,CAAC,mBAAmB,CAAQ;IACnC,OAAO,CAAC,sBAAsB,CAAQ;IACtC,OAAO,CAAC,OAAO,CAAa;;IAqB5B,GAAG;CAwBJ"}