attlaz-client 1.6.2 → 1.6.5

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.
@@ -88,10 +88,17 @@ class OAuthClient {
88
88
  }
89
89
  try {
90
90
  const response = await HttpClient_1.HttpClient.request2(requestData);
91
+ if (this.debug) {
92
+ console.info('[Client response] ', { body: response.body });
93
+ }
91
94
  return response.body;
92
95
  }
93
- catch (e) {
94
- throw ClientError_1.ClientError.fromError(e);
96
+ catch (error) {
97
+ const clientError = ClientError_1.ClientError.fromError(error);
98
+ if (this.debug) {
99
+ console.error('[Client error]', { error, clientError });
100
+ }
101
+ throw clientError;
95
102
  }
96
103
  }
97
104
  }
@@ -3,7 +3,7 @@ import { StateAware } from '../StateAware';
3
3
  export declare class Platform implements StateAware {
4
4
  id: number;
5
5
  name: string;
6
- languageId: string;
6
+ languageId: number;
7
7
  released: Date;
8
8
  endOfSupport: Date;
9
9
  endOfLife: Date;
@@ -2,7 +2,7 @@ import { State } from '../State';
2
2
  import { StateAware } from '../StateAware';
3
3
  export declare class PlatformImage implements StateAware {
4
4
  id: number;
5
- platformId: string;
5
+ platformId: number;
6
6
  image: string;
7
7
  version: string;
8
8
  languageVersion: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.6.2",
3
+ "version": "1.6.5",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",