mp-front-cli 0.0.37 → 0.0.39
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/middleware/index.d.ts +2 -2
- package/dist/core/middleware/index.d.ts.map +1 -1
- package/dist/core/utils/api-request/fetch-service-fe.d.ts +2 -2
- package/dist/core/utils/api-request/fetch-service-fe.d.ts.map +1 -1
- package/dist/core/utils/custom-encoder.d.ts +2 -2
- package/dist/core/utils/custom-encoder.d.ts.map +1 -1
- package/dist/core/utils/custom-encrypter.d.ts +12 -0
- package/dist/core/utils/custom-encrypter.d.ts.map +1 -0
- package/dist/core/utils/custom-header.d.ts +2 -2
- package/dist/core/utils/custom-header.d.ts.map +1 -1
- package/dist/custom-encoder-04bc877a.js +23877 -0
- package/dist/{custom-header-4aec1dac.js → custom-header-89182d9e.js} +171 -178
- package/dist/{custom-validator-ae5da0a7.js → custom-validator-3bb58ece.js} +1 -1
- package/dist/mp-front-cli-all.es.js +12 -12
- package/dist/mp-front-cli-core.es.js +84 -176
- package/dist/mp-front-cli-encoder.es.js +3 -2
- package/dist/mp-front-cli-header.es.js +4 -4
- package/dist/mp-front-cli-utils-rxjs.es.js +36 -11
- package/dist/mp-front-cli-validator.es.js +4 -3
- package/package.json +7 -1
- package/dist/core/utils/custom-catch-error.d.ts +0 -5
- package/dist/core/utils/custom-catch-error.d.ts.map +0 -1
- package/dist/custom-encoder-6737c6cb.js +0 -3729
- package/dist/message-handler-d90f2bb6.js +0 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import type { NextApiRequest, NextApiResponse } from "next";
|
|
3
|
-
import {
|
|
4
|
-
export declare class ApiMiddleware<TRes, TData = {}> extends
|
|
3
|
+
import { CustomValidator } from "../utils/custom-validator";
|
|
4
|
+
export declare class ApiMiddleware<TRes, TData = {}> extends CustomValidator {
|
|
5
5
|
private uuid;
|
|
6
6
|
private returnData;
|
|
7
7
|
private returnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAA6B,MAAM,MAAM,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAA6B,MAAM,MAAM,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBAAa,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,eAAe;IAClE,OAAO,CAAC,IAAI,CAAa;IAEzB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAKnB,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC,IAAI,CAAC,SAG/C,cAAc,OAAO,eAAe;CAoCpD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { Method } from "../../interfaces/method";
|
|
3
|
-
import {
|
|
4
|
-
export declare class FetchServiceFE<TRes, TData = {}> extends
|
|
3
|
+
import { CustomValidator } from "../custom-validator";
|
|
4
|
+
export declare class FetchServiceFE<TRes, TData = {}> extends CustomValidator {
|
|
5
5
|
private apiUrl;
|
|
6
6
|
private method;
|
|
7
7
|
private headers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-service-fe.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-fe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,UAAU,
|
|
1
|
+
{"version":3,"file":"fetch-service-fe.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-fe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,UAAU,EAAS,MAAM,MAAM,CAAA;AAG3E,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAKhD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,qBAAa,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,eAAe;IACnE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,gBAAgB,CAAgB;IAExC,mBAAmB,CAAC,gBAAgB,EAAE,OAAO;gBAK3C,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAe,EACvB,OAAO,GAAE,WAAgB;IAW3B,OAAO,CAAC,YAAY;IAQpB,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CAiCzD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class CustomEncoder extends
|
|
1
|
+
import { CustomEncrypter } from "./custom-encrypter";
|
|
2
|
+
export declare class CustomEncoder extends CustomEncrypter {
|
|
3
3
|
encode<T>(data: T, uuid?: string): string;
|
|
4
4
|
decode<T>(data: string | T | {
|
|
5
5
|
info: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-encoder.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encoder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"custom-encoder.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encoder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,qBAAa,aAAc,SAAQ,eAAe;IAChD,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM;IAahC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;CAkB9C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CustomLogger } from "./custom-logger";
|
|
2
|
+
export declare class CustomEncrypter extends CustomLogger {
|
|
3
|
+
private signatureKey;
|
|
4
|
+
constructor();
|
|
5
|
+
private isJSON;
|
|
6
|
+
private generateKey;
|
|
7
|
+
protected encrypt<T>(payload: T): Promise<string>;
|
|
8
|
+
protected decrypt<T>(encrypted: string): Promise<T>;
|
|
9
|
+
protected isEncrypted(value: string | null): Promise<boolean>;
|
|
10
|
+
protected generateSHA<T>(value: T): string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=custom-encrypter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-encrypter.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encrypter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,CAAC,YAAY,CAAqB;;IAOzC,OAAO,CAAC,MAAM;YASA,WAAW;cAgBT,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;cAgBrB,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM;cAS5B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAahD,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;CAIlC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import {
|
|
3
|
-
export declare class CustomHeader extends
|
|
2
|
+
import { CustomValidator } from "./custom-validator";
|
|
3
|
+
export declare class CustomHeader extends CustomValidator {
|
|
4
4
|
private headers;
|
|
5
5
|
constructor();
|
|
6
6
|
addTokenBackend(headers: HeadersInit): Observable<HeadersInit>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-header.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAA;AAEhD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"custom-header.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,qBAAa,YAAa,SAAQ,eAAe;IAC/C,OAAO,CAAC,OAAO,CAAa;;IAU5B,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAS9D,OAAO,CAAC,sBAAsB;IAgB9B,UAAU,IAAI,UAAU,CAAC,WAAW,CAAC;CAStC"}
|