attlaz-client 1.19.5 → 1.19.7

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/Client.js CHANGED
@@ -116,6 +116,9 @@ export class Client {
116
116
  }
117
117
  async getApiInformation() {
118
118
  const result = await this.httpClient.request('/system/health', null, 'GET', false);
119
+ if (result.version === undefined) {
120
+ throw new Error('Unable to get API information: invalid response');
121
+ }
119
122
  return { version: result.version };
120
123
  }
121
124
  /* Endpoints */
@@ -105,7 +105,7 @@ export class OAuthClient {
105
105
  }
106
106
  const requestData = this.createRequestData(action, parameters, method, signWithOauthToken);
107
107
  if (this.debug) {
108
- console.debug('[OAuthClient] Request: ' + requestData.method.toUpperCase() + ' ' + requestData.getFullUrl());
108
+ console.debug('[OAuthClient] Request: ' + requestData.method.toUpperCase() + ' ' + requestData.getFullUrl(), { headers: requestData.headers });
109
109
  }
110
110
  try {
111
111
  const response = await HttpClient.request(requestData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.19.5",
3
+ "version": "1.19.7",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",