mp-front-cli 0.0.19 → 0.0.20
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.
|
@@ -6,7 +6,7 @@ export declare class FetchServiceFE<TRes, TData = {}> extends CustomValidator {
|
|
|
6
6
|
private apiUrl;
|
|
7
7
|
private method;
|
|
8
8
|
private headers;
|
|
9
|
-
constructor(apiUrl: string, method?: Method);
|
|
9
|
+
constructor(apiUrl: string, method?: Method, headers?: HeadersInit);
|
|
10
10
|
errorHandler(data: TRes & IMessageErrorBFF): boolean;
|
|
11
11
|
customCatchError(error: Error): Observable<TRes>;
|
|
12
12
|
fetchData(params?: TData): Observable<TRes>;
|
|
@@ -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,EAAE,MAAM,MAAM,CAAA;AAGpE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,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;
|
|
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,EAAE,MAAM,MAAM,CAAA;AAGpE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,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;gBAG1B,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAe,EACvB,OAAO,GAAE,WAAgB;IAW3B,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB;IAK1C,gBAAgB,CAAC,KAAK,EAAE,KAAK;IAO7B,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CAkBzD"}
|
package/dist/mp-front-cli.es.js
CHANGED
|
@@ -9391,13 +9391,14 @@ class g_ extends l_ {
|
|
|
9391
9391
|
}
|
|
9392
9392
|
}
|
|
9393
9393
|
class m_ extends Za {
|
|
9394
|
-
constructor(t, s) {
|
|
9394
|
+
constructor(t, s = "POST", o = {}) {
|
|
9395
9395
|
super();
|
|
9396
9396
|
we(this, "apiUrl");
|
|
9397
9397
|
we(this, "method");
|
|
9398
9398
|
we(this, "headers");
|
|
9399
|
-
this.apiUrl = t, this.method = s
|
|
9400
|
-
"Content-Type": "application/json"
|
|
9399
|
+
this.apiUrl = t, this.method = s, this.headers = {
|
|
9400
|
+
"Content-Type": "application/json",
|
|
9401
|
+
...o
|
|
9401
9402
|
};
|
|
9402
9403
|
}
|
|
9403
9404
|
errorHandler(t) {
|