@vulog/aima-client 1.1.29 → 1.1.30
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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/getClient.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -279,9 +279,9 @@ var getClient = (options) => {
|
|
|
279
279
|
(response) => {
|
|
280
280
|
if (options.logResponse) {
|
|
281
281
|
const finalUrl = new CurlHelper(response.config).getBuiltURL();
|
|
282
|
-
const { data } = response;
|
|
283
|
-
if (options.onLog) options.onLog({ finalUrl, data, message: "getClient > Response" });
|
|
284
|
-
else console.log({ finalUrl, data, message: "getClient > Response" });
|
|
282
|
+
const { data, headers } = response;
|
|
283
|
+
if (options.onLog) options.onLog({ finalUrl, data, headers, message: "getClient > Response" });
|
|
284
|
+
else console.log({ finalUrl, data, headers, message: "getClient > Response" });
|
|
285
285
|
}
|
|
286
286
|
return response;
|
|
287
287
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -243,9 +243,9 @@ var getClient = (options) => {
|
|
|
243
243
|
(response) => {
|
|
244
244
|
if (options.logResponse) {
|
|
245
245
|
const finalUrl = new CurlHelper(response.config).getBuiltURL();
|
|
246
|
-
const { data } = response;
|
|
247
|
-
if (options.onLog) options.onLog({ finalUrl, data, message: "getClient > Response" });
|
|
248
|
-
else console.log({ finalUrl, data, message: "getClient > Response" });
|
|
246
|
+
const { data, headers } = response;
|
|
247
|
+
if (options.onLog) options.onLog({ finalUrl, data, headers, message: "getClient > Response" });
|
|
248
|
+
else console.log({ finalUrl, data, headers, message: "getClient > Response" });
|
|
249
249
|
}
|
|
250
250
|
return response;
|
|
251
251
|
},
|
package/package.json
CHANGED
package/src/getClient.ts
CHANGED
|
@@ -202,10 +202,10 @@ const getClient = (options: ClientOptions): Client => {
|
|
|
202
202
|
(response) => {
|
|
203
203
|
if (options.logResponse) {
|
|
204
204
|
const finalUrl = new CurlHelper(response.config).getBuiltURL();
|
|
205
|
-
const { data } = response;
|
|
206
|
-
if (options.onLog) options.onLog({ finalUrl, data, message: 'getClient > Response' });
|
|
205
|
+
const { data, headers } = response;
|
|
206
|
+
if (options.onLog) options.onLog({ finalUrl, data, headers, message: 'getClient > Response' });
|
|
207
207
|
// eslint-disable-next-line no-console
|
|
208
|
-
else console.log({ finalUrl, data, message: 'getClient > Response' });
|
|
208
|
+
else console.log({ finalUrl, data, headers, message: 'getClient > Response' });
|
|
209
209
|
}
|
|
210
210
|
return response;
|
|
211
211
|
},
|