@seamapi/http 1.13.0 → 1.13.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/connect.cjs CHANGED
@@ -523,7 +523,7 @@ var isApiErrorResponse = (response) => {
523
523
  return false;
524
524
  }
525
525
  if (typeof data === "object" && data != null) {
526
- return "error" in data && typeof data.error === "object" && data.error != null && "type" in data.error && typeof data.error.type === "string";
526
+ return "error" in data && typeof data.error === "object" && data.error != null && "type" in data.error && typeof data.error.type === "string" && "message" in data.error && typeof data.error.message === "string";
527
527
  }
528
528
  return false;
529
529
  };