@dotdev/harmony-sdk 1.30.0 → 1.30.1
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/helpers/index.js +2 -2
- package/package.json +1 -1
package/dist/helpers/index.js
CHANGED
|
@@ -28,7 +28,7 @@ export class ApiHelper {
|
|
|
28
28
|
size: +(response?.headers?.["content-length"] || 0),
|
|
29
29
|
status: response?.status,
|
|
30
30
|
},
|
|
31
|
-
}, `Received Harmony response 🔽`);
|
|
31
|
+
}, `Received Harmony response for ${endpoint} endpoint 🔽`);
|
|
32
32
|
// Throw an error if the response is not in XML format
|
|
33
33
|
if (response?.headers["content-type"] !== "text/xml" &&
|
|
34
34
|
response?.headers["content-type"] !== "text/xml;charset=utf-8" &&
|
|
@@ -93,7 +93,7 @@ export class ApiHelper {
|
|
|
93
93
|
const child = logger.child({
|
|
94
94
|
request: requestBody,
|
|
95
95
|
});
|
|
96
|
-
child.debug(`Sending API request`);
|
|
96
|
+
child.debug(`Sending API request to ${serviceName} endpoint`);
|
|
97
97
|
const response = await ApiHelper.sendSoapRequest(serviceName, axios, requestBody);
|
|
98
98
|
return response[responseMethodName][0];
|
|
99
99
|
}
|