@dotdev/harmony-sdk 1.26.0 → 1.26.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.
@@ -14,7 +14,7 @@ export class ApiHelper {
14
14
  switch (type) {
15
15
  case "GET":
16
16
  response = await axiosInstance.get(url).catch((error) => {
17
- logger.error(error.toJSON(), `Error while sending request to ${endpoint} endpoint`);
17
+ logger.error(error, `Error while sending request to ${endpoint} endpoint`);
18
18
  throw error;
19
19
  });
20
20
  break;
@@ -23,7 +23,7 @@ export class ApiHelper {
23
23
  response = await axiosInstance
24
24
  .post(url, requestBody)
25
25
  .catch((error) => {
26
- logger.error(error.toJSON(), `Error while sending request to ${endpoint} endpoint`);
26
+ logger.error(error, `Error while sending request to ${endpoint} endpoint`);
27
27
  throw error;
28
28
  });
29
29
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotdev/harmony-sdk",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "description": "Harmony API SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",