@zauru-sdk/common 2.0.89 → 2.0.94
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 +16 -0
- package/dist/esm/common.js +4 -1
- package/package.json +3 -3
- package/src/common.ts +4 -1
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.94](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.93...v2.0.94) (2025-01-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zauru-sdk/common
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.92](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.91...v2.0.92) (2024-12-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @zauru-sdk/common
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.0.89](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.88...v2.0.89) (2024-12-17)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @zauru-sdk/common
|
package/dist/esm/common.js
CHANGED
|
@@ -572,7 +572,10 @@ async function handlePossibleAxiosErrors(action) {
|
|
|
572
572
|
return { error: false, data: result };
|
|
573
573
|
}
|
|
574
574
|
catch (error) {
|
|
575
|
-
return {
|
|
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.
|
|
3
|
+
"version": "2.0.94",
|
|
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.
|
|
23
|
+
"@zauru-sdk/types": "^2.0.92",
|
|
24
24
|
"moment": "^2.30.1",
|
|
25
25
|
"moment-timezone": "^0.5.45"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "609e3474b185d0220e35be6ea1932dee71c9dadc"
|
|
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 {
|
|
654
|
+
return {
|
|
655
|
+
error: true,
|
|
656
|
+
userMsg: `Error message: ${error?.toString()}`,
|
|
657
|
+
} as AxiosUtilsResponse<T>;
|
|
655
658
|
}
|
|
656
659
|
}
|
|
657
660
|
|