jclib-ui 1.0.291 → 1.0.293
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/jclib-ui.es.js
CHANGED
|
@@ -5787,7 +5787,7 @@ function useApi(initialConfig = {}) {
|
|
|
5787
5787
|
timeout: globalApiConfig.timeout,
|
|
5788
5788
|
auth,
|
|
5789
5789
|
withCredentials: globalApiConfig.withCredentials,
|
|
5790
|
-
validateStatus: (status) => status >= 200 && status < 400,
|
|
5790
|
+
//validateStatus: (status) => status >= 200 && status < 400,
|
|
5791
5791
|
...initialConfig,
|
|
5792
5792
|
...localConfig,
|
|
5793
5793
|
headers: initialConfig.headers
|
|
@@ -5850,8 +5850,8 @@ function useApi(initialConfig = {}) {
|
|
|
5850
5850
|
}
|
|
5851
5851
|
case 401: {
|
|
5852
5852
|
response.message = "Servidor requer autenticação!";
|
|
5853
|
-
if (globalApiConfig.setToken) {
|
|
5854
|
-
globalApiConfig.setToken("");
|
|
5853
|
+
if (globalApiConfig == null ? void 0 : globalApiConfig.setToken) {
|
|
5854
|
+
globalApiConfig == null ? void 0 : globalApiConfig.setToken("");
|
|
5855
5855
|
}
|
|
5856
5856
|
history.push(globalApiConfig.loginRoute);
|
|
5857
5857
|
break;
|