@orbe-agro/client-core 5.3.229 → 5.3.230

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.
@@ -7,7 +7,7 @@ import l from "./AxiosResponseIntrceptorErrorCallback.js";
7
7
  import { getCurrentMicrofrontendId as n, useLoadingConfigStore as i } from "../../../base/store/loadingConfigStore.js";
8
8
  import { useThemeStore as a } from "../../store/themeStore.js";
9
9
  const g = s.create({
10
- timeout: 6e4,
10
+ timeout: 6e5,
11
11
  baseURL: f
12
12
  });
13
13
  let t = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"AxiosBase.js","sources":["../../../../lib/@ecme/services/axios/AxiosBase.ts"],"sourcesContent":["import type { AxiosError } from \"axios\";\nimport axios from \"axios\";\nimport { API_URL } from \"~/base/configs/api.config\";\nimport { useThemeStore } from \"@/store\";\nimport { useLoadingConfigStore, getCurrentMicrofrontendId } from \"@base/store\";\nimport AxiosRequestIntrceptorConfigCallback from \"./AxiosRequestIntrceptorConfigCallback\";\nimport AxiosResponseIntrceptorErrorCallback from \"./AxiosResponseIntrceptorErrorCallback\";\n\nconst AxiosBase = axios.create({\n timeout: 60000,\n baseURL: API_URL,\n});\n\nlet activeRequests = 0;\n\nAxiosBase.interceptors.request.use(\n (config) => {\n activeRequests++;\n if (activeRequests === 1) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(true);\n }\n }\n return AxiosRequestIntrceptorConfigCallback(config);\n },\n (error) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n return Promise.reject(error);\n }\n);\n\nAxiosBase.interceptors.response.use(\n (response) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n return response;\n },\n (error: AxiosError) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n AxiosResponseIntrceptorErrorCallback(error);\n return Promise.reject(error);\n }\n);\n\nexport default AxiosBase;\n"],"names":["AxiosBase","axios","API_URL","activeRequests","config","microfrontendId","getCurrentMicrofrontendId","useLoadingConfigStore","useThemeStore","AxiosRequestIntrceptorConfigCallback","error","response","AxiosResponseIntrceptorErrorCallback"],"mappings":";;;;;;;;AAQM,MAAAA,IAAYC,EAAM,OAAO;AAAA,EAC7B,SAAS;AAAA,EACT,SAASC;AACX,CAAC;AAED,IAAIC,IAAiB;AAErBH,EAAU,aAAa,QAAQ;AAAA,EAC7B,CAACI,MAAW;AAEV,QADAD,KACIA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAI;AAAA,IAC1C;AAEF,WAAOC,EAAqCL,CAAM;AAAA,EACpD;AAAA,EACA,CAACM,MAAU;AAET,QADAP,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAK;AAAA,IAC3C;AAEK,WAAA,QAAQ,OAAOE,CAAK;AAAA,EAAA;AAE/B;AAEAV,EAAU,aAAa,SAAS;AAAA,EAC9B,CAACW,MAAa;AAEZ,QADAR,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAK;AAAA,IAC3C;AAEK,WAAAG;AAAA,EACT;AAAA,EACA,CAACD,MAAsB;AAErB,QADAP,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAK;AAAA,IAC3C;AAEF,WAAAI,EAAqCF,CAAK,GACnC,QAAQ,OAAOA,CAAK;AAAA,EAAA;AAE/B;"}
1
+ {"version":3,"file":"AxiosBase.js","sources":["../../../../lib/@ecme/services/axios/AxiosBase.ts"],"sourcesContent":["import type { AxiosError } from \"axios\";\nimport axios from \"axios\";\nimport { API_URL } from \"~/base/configs/api.config\";\nimport { useThemeStore } from \"@/store\";\nimport { useLoadingConfigStore, getCurrentMicrofrontendId } from \"@base/store\";\nimport AxiosRequestIntrceptorConfigCallback from \"./AxiosRequestIntrceptorConfigCallback\";\nimport AxiosResponseIntrceptorErrorCallback from \"./AxiosResponseIntrceptorErrorCallback\";\n\nconst AxiosBase = axios.create({\n timeout: 600000,\n baseURL: API_URL,\n});\n\nlet activeRequests = 0;\n\nAxiosBase.interceptors.request.use(\n (config) => {\n activeRequests++;\n if (activeRequests === 1) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(true);\n }\n }\n return AxiosRequestIntrceptorConfigCallback(config);\n },\n (error) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n return Promise.reject(error);\n }\n);\n\nAxiosBase.interceptors.response.use(\n (response) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n return response;\n },\n (error: AxiosError) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n AxiosResponseIntrceptorErrorCallback(error);\n return Promise.reject(error);\n }\n);\n\nexport default AxiosBase;\n"],"names":["AxiosBase","axios","API_URL","activeRequests","config","microfrontendId","getCurrentMicrofrontendId","useLoadingConfigStore","useThemeStore","AxiosRequestIntrceptorConfigCallback","error","response","AxiosResponseIntrceptorErrorCallback"],"mappings":";;;;;;;;AAQM,MAAAA,IAAYC,EAAM,OAAO;AAAA,EAC7B,SAAS;AAAA,EACT,SAASC;AACX,CAAC;AAED,IAAIC,IAAiB;AAErBH,EAAU,aAAa,QAAQ;AAAA,EAC7B,CAACI,MAAW;AAEV,QADAD,KACIA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAI;AAAA,IAC1C;AAEF,WAAOC,EAAqCL,CAAM;AAAA,EACpD;AAAA,EACA,CAACM,MAAU;AAET,QADAP,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAK;AAAA,IAC3C;AAEK,WAAA,QAAQ,OAAOE,CAAK;AAAA,EAAA;AAE/B;AAEAV,EAAU,aAAa,SAAS;AAAA,EAC9B,CAACW,MAAa;AAEZ,QADAR,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAK;AAAA,IAC3C;AAEK,WAAAG;AAAA,EACT;AAAA,EACA,CAACD,MAAsB;AAErB,QADAP,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAA0B;AAE9C,MADkBC,EAAsB,SAAS,EACnC,wBAAwBF,CAAe,KACzCG,EAAA,SAAA,EAAW,WAAW,EAAK;AAAA,IAC3C;AAEF,WAAAI,EAAqCF,CAAK,GACnC,QAAQ,OAAOA,CAAK;AAAA,EAAA;AAE/B;"}
@@ -7,7 +7,7 @@ import AxiosRequestIntrceptorConfigCallback from "./AxiosRequestIntrceptorConfig
7
7
  import AxiosResponseIntrceptorErrorCallback from "./AxiosResponseIntrceptorErrorCallback";
8
8
 
9
9
  const AxiosBase = axios.create({
10
- timeout: 60000,
10
+ timeout: 600000,
11
11
  baseURL: API_URL,
12
12
  });
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.229",
3
+ "version": "5.3.230",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",