@zauru-sdk/common 2.0.92 → 2.0.109

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.109](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.108...v2.0.109) (2025-01-30)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/common
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.94](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.93...v2.0.94) (2025-01-02)
15
+
16
+ **Note:** Version bump only for package @zauru-sdk/common
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.0.92](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.91...v2.0.92) (2024-12-18)
7
23
 
8
24
  **Note:** Version bump only for package @zauru-sdk/common
@@ -572,7 +572,10 @@ async function handlePossibleAxiosErrors(action) {
572
572
  return { error: false, data: result };
573
573
  }
574
574
  catch (error) {
575
- return { error: true, userMsg: error?.toString() };
575
+ return {
576
+ error: true,
577
+ userMsg: `Error message: ${error?.toString()}`,
578
+ };
576
579
  }
577
580
  }
578
581
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/common",
3
- "version": "2.0.92",
3
+ "version": "2.0.109",
4
4
  "description": "Funciones de uso común en el desarrollo de webapps en Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@remix-run/node": "^2.8.1",
23
- "@zauru-sdk/types": "^2.0.92",
23
+ "@zauru-sdk/types": "^2.0.109",
24
24
  "moment": "^2.30.1",
25
25
  "moment-timezone": "^0.5.45"
26
26
  },
27
- "gitHead": "8ed5933cf4764ca917df949f48c07bdeac4d9bbc"
27
+ "gitHead": "28c068f92c6bc6cec5fac9543b35ebb7e277cb46"
28
28
  }
package/src/common.ts CHANGED
@@ -651,7 +651,10 @@ export async function handlePossibleAxiosErrors<T>(
651
651
  const result = await Promise.race([action(), timeoutPromise]);
652
652
  return { error: false, data: result } as AxiosUtilsResponse<T>;
653
653
  } catch (error) {
654
- return { error: true, userMsg: error?.toString() } as AxiosUtilsResponse<T>;
654
+ return {
655
+ error: true,
656
+ userMsg: `Error message: ${error?.toString()}`,
657
+ } as AxiosUtilsResponse<T>;
655
658
  }
656
659
  }
657
660