repzo 1.0.15 → 1.0.16
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/lib/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/lib/index.js
CHANGED
|
@@ -1116,7 +1116,7 @@ Repzo.ActionLogs = class {
|
|
|
1116
1116
|
this.error = { message: error };
|
|
1117
1117
|
} else {
|
|
1118
1118
|
this.error = {
|
|
1119
|
-
json: error.toJSON ? error.toJSON : undefined,
|
|
1119
|
+
json: error.toJSON ? error.toJSON() : undefined,
|
|
1120
1120
|
message: error.message,
|
|
1121
1121
|
responseData: error.response?.data,
|
|
1122
1122
|
};
|
|
@@ -1240,7 +1240,7 @@ Repzo.CommandLog = class {
|
|
|
1240
1240
|
this.error = { message: error };
|
|
1241
1241
|
} else {
|
|
1242
1242
|
this.error = {
|
|
1243
|
-
json: error.toJSON ? error.toJSON : undefined,
|
|
1243
|
+
json: error.toJSON ? error.toJSON() : undefined,
|
|
1244
1244
|
message: error.message,
|
|
1245
1245
|
responseData: error.response?.data,
|
|
1246
1246
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1560,7 +1560,7 @@ export default class Repzo {
|
|
|
1560
1560
|
this.error = { message: error };
|
|
1561
1561
|
} else {
|
|
1562
1562
|
this.error = {
|
|
1563
|
-
json: error.toJSON ? error.toJSON : undefined,
|
|
1563
|
+
json: error.toJSON ? error.toJSON() : undefined,
|
|
1564
1564
|
message: error.message,
|
|
1565
1565
|
responseData: error.response?.data,
|
|
1566
1566
|
};
|
|
@@ -1719,7 +1719,7 @@ export default class Repzo {
|
|
|
1719
1719
|
this.error = { message: error };
|
|
1720
1720
|
} else {
|
|
1721
1721
|
this.error = {
|
|
1722
|
-
json: error.toJSON ? error.toJSON : undefined,
|
|
1722
|
+
json: error.toJSON ? error.toJSON() : undefined,
|
|
1723
1723
|
message: error.message,
|
|
1724
1724
|
responseData: error.response?.data,
|
|
1725
1725
|
};
|