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 +3 -0
- package/dist/Http/OAuthClient.js +1 -1
- 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/dist/Http/OAuthClient.js
CHANGED
|
@@ -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);
|