@wacht/jsx 0.0.1-alpha.22 → 0.0.1-alpha.23

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.es.js CHANGED
@@ -739,19 +739,10 @@ const vn = fe.use || // This extra generic is to avoid TypeScript mixing up the
739
739
  };
740
740
  }, Ze = dd(pd);
741
741
  async function H(e) {
742
- if (!e.ok) {
743
- let o = `HTTP ${e.status}: ${e.statusText}`;
744
- try {
745
- const n = await e.json();
746
- n.message ? o = n.message : n.errors && n.errors.length > 0 && (o = n.errors[0].message || o);
747
- } catch {
748
- }
749
- throw new Error(o);
750
- }
751
742
  const t = await e.json();
752
743
  return {
753
744
  data: t.data,
754
- errors: t.errors
745
+ errors: t.errors || []
755
746
  };
756
747
  }
757
748
  function hd(e) {