@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 +6 -2
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -16
- package/index.d.ts +1 -16
- package/index.iife.js +6 -2
- package/index.iife.min.js +1 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6191,7 +6191,11 @@ var Fetcher = class {
|
|
|
6191
6191
|
try {
|
|
6192
6192
|
return await res.json();
|
|
6193
6193
|
} catch (error) {
|
|
6194
|
-
|
|
6194
|
+
try {
|
|
6195
|
+
return await res.text();
|
|
6196
|
+
} catch (e) {
|
|
6197
|
+
return {};
|
|
6198
|
+
}
|
|
6195
6199
|
}
|
|
6196
6200
|
} else {
|
|
6197
6201
|
let detail = res.statusText;
|
|
@@ -6427,7 +6431,7 @@ var SpreadsEndpoints = class {
|
|
|
6427
6431
|
const res = await this.engineAPI.fetcher.call({
|
|
6428
6432
|
path: `/v1/spreads/${spreadId}/book/${bookId}/render/${size}`
|
|
6429
6433
|
});
|
|
6430
|
-
return
|
|
6434
|
+
return res;
|
|
6431
6435
|
});
|
|
6432
6436
|
}
|
|
6433
6437
|
update(spreadId, bookId, spread) {
|