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.
@@ -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.40.2";
1
+ export declare const VERSION = "1.41.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.40.2";
1
+ export const VERSION = "1.41.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.41.0",
3
+ "version": "1.41.1",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",