hcloud-sdk 22.56.0 → 22.56.1
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
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
## [22.56.
|
|
1
|
+
## [22.56.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.56.0...v22.56.1) (2026-10-14)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* trigger new build ([c420626](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c42062638a606b3e849fad493707fcb488e10c0b))
|
|
6
|
+
* trigger new build ([2e1f5a3](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/2e1f5a3d765c715f7e2cbd49fa855847e1ad4c79))
|
|
@@ -9,7 +9,7 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
9
9
|
const HCloudError_1 = __importDefault(require("../interfaces/global/HCloudError"));
|
|
10
10
|
function wrapError(error) {
|
|
11
11
|
if (axios_1.default.isAxiosError(error) && error.response) {
|
|
12
|
-
return new HCloudError_1.default(error.response.status, error.response.statusText, error.response.data.code, error.response.data.error, error.response.data.message);
|
|
12
|
+
return new HCloudError_1.default(error.response.status, error.response.statusText, error.response.data.code, error.response.data.error, error.response.data.message, error.response.data.shortMessage);
|
|
13
13
|
}
|
|
14
14
|
return error;
|
|
15
15
|
}
|
|
@@ -4,5 +4,6 @@ export default class HCloudError extends Error {
|
|
|
4
4
|
code: string;
|
|
5
5
|
error: string;
|
|
6
6
|
message: string;
|
|
7
|
-
|
|
7
|
+
shortMessage?: string;
|
|
8
|
+
constructor(status: number, statusText: string, code: string, error: string, message: string, shortMessage?: string);
|
|
8
9
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class HCloudError extends Error {
|
|
4
|
-
constructor(status, statusText, code, error, message) {
|
|
4
|
+
constructor(status, statusText, code, error, message, shortMessage) {
|
|
5
5
|
super(message);
|
|
6
6
|
this.status = status;
|
|
7
7
|
this.statusText = statusText;
|
|
8
8
|
this.code = code;
|
|
9
9
|
this.error = error;
|
|
10
10
|
this.message = message;
|
|
11
|
+
this.shortMessage = shortMessage;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
exports.default = HCloudError;
|