hcloud-sdk 22.56.0 → 22.56.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 CHANGED
@@ -1,5 +1,5 @@
1
- ## [22.56.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.55.0...v22.56.0) (2026-10-12)
1
+ ## [22.56.2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.56.1...v22.56.2) (2026-10-15)
2
2
 
3
- ### Features
3
+ ### Bug Fixes
4
4
 
5
- * add support for IDP organization domains in NATS subjects ([300b89b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/300b89bd76e5e947f572dffa683ed6b3247b6e6d))
5
+ * make region optional ([01385fc](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/01385fc23d6f34dd3029ccba1cc9ba3211489f0b))
@@ -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
- constructor(status: number, statusText: string, code: string, error: string, message: string);
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;
@@ -11,7 +11,8 @@ export type Storage = {
11
11
  organization?: ReducedOrganization;
12
12
  endpoint: string;
13
13
  bucket: string;
14
- region: string;
14
+ /** Not set for storages without regions (e.g. Cloudflare R2) */
15
+ region?: string;
15
16
  accessKeyId: string;
16
17
  secretAccessKey: string;
17
18
  spaces: (ReducedSpace & {
@@ -32,7 +33,8 @@ export type StorageConfiguration = {
32
33
  name: string;
33
34
  endpoint: string;
34
35
  bucket: string;
35
- region: string;
36
+ /** Not set for storages without regions (e.g. Cloudflare R2) */
37
+ region?: string;
36
38
  accessKeyId: string;
37
39
  secretAccessKey: string;
38
40
  isDefault: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.56.0",
3
+ "version": "22.56.2",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",