ngx-techlify-core 11.4.5-beta.3 → 11.4.5-beta.4
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/bundles/ngx-techlify-core.umd.js +1 -8
- package/bundles/ngx-techlify-core.umd.js.map +1 -1
- package/bundles/ngx-techlify-core.umd.min.js +1 -1
- package/bundles/ngx-techlify-core.umd.min.js.map +1 -1
- package/esm2015/lib/core/error-handler.interceptor.js +2 -7
- package/esm2015/lib/core/error-handler.service.js +1 -1
- package/esm2015/lib/core/techlify-config.model.js +1 -3
- package/fesm2015/ngx-techlify-core.js +1 -8
- package/fesm2015/ngx-techlify-core.js.map +1 -1
- package/lib/core/techlify-config.model.d.ts +0 -1
- package/package.json +1 -1
|
@@ -747,7 +747,6 @@
|
|
|
747
747
|
this.authClientSecret = '';
|
|
748
748
|
this.authGrantType = '';
|
|
749
749
|
this.apiUrl = '';
|
|
750
|
-
this.isLogoutWhileApiGetsFailed = false;
|
|
751
750
|
this.loadFromMap(data);
|
|
752
751
|
}
|
|
753
752
|
TechlifyConfig.prototype.loadFromMap = function (data) {
|
|
@@ -758,7 +757,6 @@
|
|
|
758
757
|
this.apiUrl = data.apiUrl;
|
|
759
758
|
this.storage = data === null || data === void 0 ? void 0 : data.storage;
|
|
760
759
|
this.rawConfigs = data;
|
|
761
|
-
this.isLogoutWhileApiGetsFailed = data === null || data === void 0 ? void 0 : data.isLogoutWhileApiGetsFailed;
|
|
762
760
|
};
|
|
763
761
|
return TechlifyConfig;
|
|
764
762
|
}());
|
|
@@ -941,7 +939,7 @@
|
|
|
941
939
|
};
|
|
942
940
|
// Customize the default error handler here if needed
|
|
943
941
|
ErrorHandlerInterceptor.prototype.handleError = function (error) {
|
|
944
|
-
var _a, _b
|
|
942
|
+
var _a, _b;
|
|
945
943
|
var errorMessage = '';
|
|
946
944
|
if (error.error instanceof ErrorEvent) {
|
|
947
945
|
// client-side error
|
|
@@ -951,11 +949,6 @@
|
|
|
951
949
|
// server-side error
|
|
952
950
|
errorMessage = "Server Error: " + ((_b = this.configService) === null || _b === void 0 ? void 0 : _b.getProjectKey());
|
|
953
951
|
try {
|
|
954
|
-
if (error.status == 403 && ((_c = this.configService.getConfigsRaw()) === null || _c === void 0 ? void 0 : _c.isLogoutWhileApiGetsFailed)) {
|
|
955
|
-
sessionStorage.clear();
|
|
956
|
-
localStorage.clear();
|
|
957
|
-
location.reload();
|
|
958
|
-
}
|
|
959
952
|
this.errorHandler.handleError(error, 'Unexpected Server Error, try later or contact service team');
|
|
960
953
|
}
|
|
961
954
|
catch (e) {
|