hcloud-sdk 22.0.0 → 22.1.0

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.
@@ -1,6 +1,7 @@
1
1
  export declare enum HttpMethod {
2
2
  GET = "GET",
3
3
  POST = "POST",
4
+ QUERY = "QUERY",
4
5
  PUT = "PUT",
5
6
  PATCH = "PATCH",
6
7
  DELETE = "DELETE"
@@ -5,6 +5,7 @@ var HttpMethod;
5
5
  (function (HttpMethod) {
6
6
  HttpMethod["GET"] = "GET";
7
7
  HttpMethod["POST"] = "POST";
8
+ HttpMethod["QUERY"] = "QUERY";
8
9
  HttpMethod["PUT"] = "PUT";
9
10
  HttpMethod["PATCH"] = "PATCH";
10
11
  HttpMethod["DELETE"] = "DELETE";
@@ -39,13 +39,17 @@ class AgentInstaller extends Base_1.default {
39
39
  .filter(r => r.dev === dev);
40
40
  releases.sort((r1, r2) => r2.published_date - r1.published_date);
41
41
  const windowsInstaller = releases.find(r => r.os === "windows");
42
- const macInstaller = releases.find(r => r.os === "darwin");
42
+ const macInstallerIntel = releases.find(r => r.arch === "x64" && r.os === "darwin");
43
+ const macInstallerArm = releases.find(r => r.arch === "arm64" && r.os === "darwin");
43
44
  const installers = [];
44
45
  if (windowsInstaller) {
45
46
  installers.push(windowsInstaller);
46
47
  }
47
- if (macInstaller) {
48
- installers.push(macInstaller);
48
+ if (macInstallerIntel) {
49
+ installers.push(macInstallerIntel);
50
+ }
51
+ if (macInstallerArm) {
52
+ installers.push(macInstallerArm);
49
53
  }
50
54
  return installers;
51
55
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.0.0",
3
+ "version": "22.1.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",