@zauru-sdk/services 2.0.135 → 2.0.137

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.
@@ -11,11 +11,11 @@ const headers = {
11
11
  export async function fetchWithRetriesAxios(url, config = {}, retries = 3, backoff = 200) {
12
12
  try {
13
13
  const response = await httpUpstash.request({ url, ...config });
14
- return response.data;
14
+ return response;
15
15
  }
16
16
  catch (error) {
17
17
  if (retries > 0) {
18
- console.warn(`=> Axios request falló (${url}), reintentando en ${backoff}ms... (${retries} intentos restantes)`, `Error: ${error}`);
18
+ console.warn(`=> Axios request falló (${url}), reintentando en ${backoff}ms... (${retries} intentos restantes)`, `Error message: ${error instanceof Error ? error.message : String(error)}`);
19
19
  await new Promise((resolve) => setTimeout(resolve, backoff));
20
20
  return fetchWithRetriesAxios(url, config, retries - 1, backoff * 2);
21
21
  }
@@ -1,3 +1,3 @@
1
1
  export declare const MAX_AGE_SESSION_COOKIE: number;
2
- export declare function fetchWithRetriesAxios(url: string, config?: {}, retries?: number, backoff?: number): Promise<any>;
2
+ export declare function fetchWithRetriesAxios(url: string, config?: {}, retries?: number, backoff?: number): Promise<import("axios").AxiosResponse<any, any>>;
3
3
  export declare function createUpstashSessionStorage({ cookie }: any): import("@remix-run/node").SessionStorage<import("@remix-run/node").SessionData, import("@remix-run/node").SessionData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.135",
3
+ "version": "2.0.137",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -31,5 +31,5 @@
31
31
  "axios": "^1.6.7",
32
32
  "chalk": "5.3.0"
33
33
  },
34
- "gitHead": "0b8e41897dac0f1f6e1ba0863500ac09fbf2ed07"
34
+ "gitHead": "1bb7bafd6aa4e93d505f87e7196cc02f9447cd04"
35
35
  }