@magiclabs.ai/magicbook-client 0.7.22-canary → 0.7.24-canary

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/index.cjs CHANGED
@@ -6265,7 +6265,11 @@ var Fetcher = class {
6265
6265
  try {
6266
6266
  return await res.json();
6267
6267
  } catch (error) {
6268
- return {};
6268
+ try {
6269
+ return await res.text();
6270
+ } catch (e) {
6271
+ return {};
6272
+ }
6269
6273
  }
6270
6274
  } else {
6271
6275
  let detail = res.statusText;
@@ -6501,7 +6505,7 @@ var SpreadsEndpoints = class {
6501
6505
  const res = await this.engineAPI.fetcher.call({
6502
6506
  path: `/v1/spreads/${spreadId}/book/${bookId}/render/${size}`
6503
6507
  });
6504
- return spreadServerSchema.parse(res);
6508
+ return res;
6505
6509
  });
6506
6510
  }
6507
6511
  update(spreadId, bookId, spread) {