@secondlayer/sdk 14.0.0 → 14.0.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/index.js
CHANGED
|
@@ -255,7 +255,9 @@ function parseErrorEnvelope(text) {
|
|
|
255
255
|
let code;
|
|
256
256
|
if (json && typeof json === "object") {
|
|
257
257
|
const err = json.error ?? json.message;
|
|
258
|
-
if (typeof err === "string" &&
|
|
258
|
+
if (typeof err === "string" && typeof json.message === "string" && json.message.length > 0) {
|
|
259
|
+
message = json.message;
|
|
260
|
+
} else if (typeof err === "string" && err.length > 0)
|
|
259
261
|
message = err;
|
|
260
262
|
else if (err && typeof err === "object")
|
|
261
263
|
message = JSON.stringify(err);
|
|
@@ -3437,5 +3439,5 @@ export {
|
|
|
3437
3439
|
verifyWebhookSignature
|
|
3438
3440
|
};
|
|
3439
3441
|
|
|
3440
|
-
//# debugId=
|
|
3442
|
+
//# debugId=5CEBD3F2D96129FA64756E2164756E21
|
|
3441
3443
|
//# sourceMappingURL=index.js.map
|