attlaz-client 1.41.0 → 1.41.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/dist/Http/OAuthClient.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/Http/OAuthClient.js
CHANGED
|
@@ -170,9 +170,6 @@ export class OAuthClient {
|
|
|
170
170
|
if (this.isNodeEnvironment()) {
|
|
171
171
|
headers['User-Agent'] = 'Attlaz Http/' + VERSION;
|
|
172
172
|
}
|
|
173
|
-
if (this.version !== null) {
|
|
174
|
-
headers['Attlaz-API-Version'] = this.version;
|
|
175
|
-
}
|
|
176
173
|
this.defaultHeaders = headers;
|
|
177
174
|
}
|
|
178
175
|
addDefaultHeader(header, value) {
|
|
@@ -209,6 +206,9 @@ export class OAuthClient {
|
|
|
209
206
|
const url = this.getApiEndpointUrl(action);
|
|
210
207
|
let requestData = new HttpClientRequest(url, method);
|
|
211
208
|
requestData.headers = this.getDefaultHeaders();
|
|
209
|
+
if (this.version !== null) {
|
|
210
|
+
requestData.setHeader('Attlaz-API-Version', this.version);
|
|
211
|
+
}
|
|
212
212
|
if ((method === 'POST' || method === 'DELETE' || method === 'PUT') && parameters !== null && parameters !== undefined) {
|
|
213
213
|
if (typeof parameters === 'object') {
|
|
214
214
|
requestData.body = JsonSerializable.stringify(parameters);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.41.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.41.0";
|