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