@capawesome/cli 1.13.0 → 1.13.2
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 +14 -0
- package/dist/utils/error.js +2 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.13.2](https://github.com/capawesome-team/cli/compare/v1.13.1...v1.13.2) (2025-07-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* do not print empty error messages ([f6a65c5](https://github.com/capawesome-team/cli/commit/f6a65c530c8f30230991190fc18928fb4e648052))
|
|
11
|
+
|
|
12
|
+
## [1.13.1](https://github.com/capawesome-team/cli/compare/v1.13.0...v1.13.1) (2025-06-02)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* ES Module error ([bfe5f83](https://github.com/capawesome-team/cli/commit/bfe5f83c172386c84c8a58a3d7da71e63d664f65))
|
|
18
|
+
|
|
5
19
|
## [1.13.0](https://github.com/capawesome-team/cli/compare/v1.12.0...v1.13.0) (2025-06-01)
|
|
6
20
|
|
|
7
21
|
|
package/dist/utils/error.js
CHANGED
|
@@ -14,7 +14,7 @@ const getMessageFromUnknownError = (error) => {
|
|
|
14
14
|
};
|
|
15
15
|
exports.getMessageFromUnknownError = getMessageFromUnknownError;
|
|
16
16
|
const getErrorMessageFromAxiosError = (error) => {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
18
18
|
let message = 'An unknown network error has occurred.';
|
|
19
19
|
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
|
|
20
20
|
message = 'Your token is no longer valid. Please sign in again.';
|
|
@@ -25,7 +25,7 @@ const getErrorMessageFromAxiosError = (error) => {
|
|
|
25
25
|
else if ((_j = (_h = (_g = (_f = error.response) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.error) === null || _h === void 0 ? void 0 : _h.issues[0]) === null || _j === void 0 ? void 0 : _j.message) {
|
|
26
26
|
message = ((_k = error.response) === null || _k === void 0 ? void 0 : _k.data).error.issues[0].message;
|
|
27
27
|
}
|
|
28
|
-
else if (
|
|
28
|
+
else if (((_l = error.response) === null || _l === void 0 ? void 0 : _l.data) && typeof ((_m = error.response) === null || _m === void 0 ? void 0 : _m.data) === 'string') {
|
|
29
29
|
message = error.response.data;
|
|
30
30
|
}
|
|
31
31
|
return message;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capawesome/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "patch-package && rimraf ./dist && tsc",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"c12": "2.0.1",
|
|
48
48
|
"citty": "0.1.6",
|
|
49
49
|
"consola": "3.3.0",
|
|
50
|
-
"form-data": "4.0.
|
|
51
|
-
"mime": "
|
|
50
|
+
"form-data": "4.0.4",
|
|
51
|
+
"mime": "3.0.0",
|
|
52
52
|
"open": "8.4.2",
|
|
53
53
|
"rc9": "2.1.2",
|
|
54
54
|
"semver": "7.6.3",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@ionic/prettier-config": "4.0.0",
|
|
59
59
|
"@types/archiver": "6.0.3",
|
|
60
|
+
"@types/mime": "3.0.4",
|
|
60
61
|
"@types/node": "20.11.30",
|
|
61
62
|
"@types/semver": "7.5.8",
|
|
62
63
|
"commit-and-tag-version": "12.5.0",
|