attlaz-client 1.6.4 → 1.6.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/Http/OAuthClient.js +4 -4
- package/package.json +1 -1
package/dist/Http/OAuthClient.js
CHANGED
|
@@ -88,15 +88,15 @@ 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
96
|
catch (error) {
|
|
94
|
-
if (this.debug) {
|
|
95
|
-
console.error('[Client error]', error);
|
|
96
|
-
}
|
|
97
97
|
const clientError = ClientError_1.ClientError.fromError(error);
|
|
98
98
|
if (this.debug) {
|
|
99
|
-
console.error('[Client error]', clientError);
|
|
99
|
+
console.error('[Client error]', { error, clientError });
|
|
100
100
|
}
|
|
101
101
|
throw clientError;
|
|
102
102
|
}
|