@zauru-sdk/services 2.0.138 → 2.0.140

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.
@@ -48,7 +48,8 @@ export function createUpstashSessionStorage({ cookie }) {
48
48
  const response = await fetchWithRetries(`${config.redisBaseURL}/get/${id}`, {
49
49
  headers,
50
50
  });
51
- return response;
51
+ const { result } = (await response.json());
52
+ return JSON.parse(result)?.data;
52
53
  }
53
54
  catch (error) {
54
55
  console.error("Error al leer la sesión", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.138",
3
+ "version": "2.0.140",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -32,5 +32,5 @@
32
32
  "chalk": "5.3.0",
33
33
  "node-fetch": "^3.3.2"
34
34
  },
35
- "gitHead": "6168ec563ca136c0ffcb9bb6bf6d4d021dde6bb5"
35
+ "gitHead": "b51ab4b1a4807d592886bcb7e50c8686a1473203"
36
36
  }