repzo 1.0.14 → 1.0.17
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/lib/types/index.d.ts +4209 -4208
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/types/index.ts +4157 -4156
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
|
};
|