attlaz-client 1.19.6 → 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.
Files changed (2) hide show
  1. package/dist/Client.js +3 -0
  2. package/package.json +1 -1
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 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.19.6",
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",