@hostafrica/ha-sdk-typescript 1.0.12 → 1.0.13
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/dist/esm/retryablePaths.js +1 -1
- package/dist/esm/runtime.js +1 -3
- package/dist/retryablePaths.js +1 -1
- package/dist/runtime.js +1 -3
- package/dist.zip +0 -0
- package/package.json +1 -1
- package/src/retryablePaths.ts +1 -1
- package/src/runtime.ts +5 -3
|
@@ -12,7 +12,7 @@ export const RETRYABLE_PATHS = new Set([
|
|
|
12
12
|
"/vps/list-backup-schedules",
|
|
13
13
|
"/vps/list-snapshots",
|
|
14
14
|
"/vps/list-firewall-rules",
|
|
15
|
-
"/vps/
|
|
15
|
+
"/vps/list-power-tasks",
|
|
16
16
|
"/vps/list-notifications",
|
|
17
17
|
"/vps/list-isos",
|
|
18
18
|
"/vps/list-reinstall-images",
|
package/dist/esm/runtime.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
1
|
/**
|
|
4
2
|
* HostAfricaApi
|
|
5
3
|
* HostAfrica API
|
|
@@ -168,7 +166,7 @@ export class BaseAPI {
|
|
|
168
166
|
// do not handle correctly sometimes.
|
|
169
167
|
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
170
168
|
}
|
|
171
|
-
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
169
|
+
const headers = Object.assign({ 'User-Agent': 'ha-sdk-typescript/1.0.0' }, this.configuration.headers, context.headers);
|
|
172
170
|
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
173
171
|
const initOverrideFn = typeof initOverrides === "function"
|
|
174
172
|
? initOverrides
|
package/dist/retryablePaths.js
CHANGED
|
@@ -15,7 +15,7 @@ exports.RETRYABLE_PATHS = new Set([
|
|
|
15
15
|
"/vps/list-backup-schedules",
|
|
16
16
|
"/vps/list-snapshots",
|
|
17
17
|
"/vps/list-firewall-rules",
|
|
18
|
-
"/vps/
|
|
18
|
+
"/vps/list-power-tasks",
|
|
19
19
|
"/vps/list-notifications",
|
|
20
20
|
"/vps/list-isos",
|
|
21
21
|
"/vps/list-reinstall-images",
|
package/dist/runtime.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
2
|
/**
|
|
5
3
|
* HostAfricaApi
|
|
6
4
|
* HostAfrica API
|
|
@@ -176,7 +174,7 @@ class BaseAPI {
|
|
|
176
174
|
// do not handle correctly sometimes.
|
|
177
175
|
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
178
176
|
}
|
|
179
|
-
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
177
|
+
const headers = Object.assign({ 'User-Agent': 'ha-sdk-typescript/1.0.0' }, this.configuration.headers, context.headers);
|
|
180
178
|
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
181
179
|
const initOverrideFn = typeof initOverrides === "function"
|
|
182
180
|
? initOverrides
|
package/dist.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/retryablePaths.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const RETRYABLE_PATHS = new Set<string>([
|
|
|
13
13
|
"/vps/list-backup-schedules",
|
|
14
14
|
"/vps/list-snapshots",
|
|
15
15
|
"/vps/list-firewall-rules",
|
|
16
|
-
"/vps/
|
|
16
|
+
"/vps/list-power-tasks",
|
|
17
17
|
"/vps/list-notifications",
|
|
18
18
|
"/vps/list-isos",
|
|
19
19
|
"/vps/list-reinstall-images",
|
package/src/runtime.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
1
|
/**
|
|
4
2
|
* HostAfricaApi
|
|
5
3
|
* HostAfrica API
|
|
@@ -149,7 +147,11 @@ export class BaseAPI {
|
|
|
149
147
|
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
150
148
|
}
|
|
151
149
|
|
|
152
|
-
const headers = Object.assign(
|
|
150
|
+
const headers = Object.assign(
|
|
151
|
+
{'User-Agent': 'ha-sdk-typescript/1.0.0'},
|
|
152
|
+
this.configuration.headers,
|
|
153
|
+
context.headers,
|
|
154
|
+
);
|
|
153
155
|
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
154
156
|
|
|
155
157
|
const initOverrideFn =
|