vc-error-handlers 0.3.7 → 0.3.9
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/esm2022/lib/shared/constants/api-config.constants.mjs +6 -6
- package/esm2022/lib/shared/constants/exclude-api-config.constants.mjs +21 -0
- package/esm2022/lib/shared/interceptors/http.interceptor.mjs +4 -1
- package/esm2022/lib/shared/services/global-error.service.mjs +12 -1
- package/fesm2022/vc-error-handlers.mjs +39 -5
- package/fesm2022/vc-error-handlers.mjs.map +1 -1
- package/lib/shared/constants/exclude-api-config.constants.d.ts +6 -0
- package/lib/shared/services/global-error.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -12,10 +12,12 @@ export declare class GlobalErrorService {
|
|
|
12
12
|
localError$: Subject<any>;
|
|
13
13
|
private pageLevelApiConfig;
|
|
14
14
|
private componentLevelApiConfig;
|
|
15
|
+
private excludeApiConfig;
|
|
15
16
|
constructor(snackBarService: SnackBarService, utilService: UtilsService, router: Router);
|
|
16
17
|
handleSoftErrors(event: HttpResponse<any> | HttpErrorResponse): void;
|
|
17
18
|
handleError(error: HttpErrorResponse, request: HttpRequest<any>): void;
|
|
18
19
|
isServerError(error: HttpErrorResponse): boolean;
|
|
20
|
+
isExcludeErrorHandling(request: HttpRequest<any>): boolean;
|
|
19
21
|
private isUnauthenticated;
|
|
20
22
|
private isUnauthorizedAccess;
|
|
21
23
|
private isNetworkUnavailable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vc-error-handlers",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": " 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x",
|
|
6
6
|
"@angular/core": "13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x"
|