@magiclabs.ai/magicbook-client 0.7.24-canary → 0.7.25-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 +7 -7
- package/index.cjs.map +1 -1
- package/index.d.cts +32 -32
- package/index.d.ts +32 -32
- package/index.iife.js +7 -7
- package/index.iife.min.js +1 -1
- package/index.js +7 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -6263,7 +6263,7 @@ var Fetcher = class {
|
|
|
6263
6263
|
const res = await fetch(this.cleanUrl(new URL(props.path, this.baseUrl).href), options);
|
|
6264
6264
|
if (res.status >= 200 && res.status < 300) {
|
|
6265
6265
|
try {
|
|
6266
|
-
return await res.json();
|
|
6266
|
+
return await res.clone().json();
|
|
6267
6267
|
} catch (error) {
|
|
6268
6268
|
try {
|
|
6269
6269
|
return await res.text();
|
|
@@ -6349,12 +6349,12 @@ var ImagesEndpoints = class {
|
|
|
6349
6349
|
|
|
6350
6350
|
// ../../core/models/spread.ts
|
|
6351
6351
|
var spreadServerSchema = z.object({
|
|
6352
|
-
id: z.string()
|
|
6352
|
+
id: z.string(),
|
|
6353
6353
|
book_id: z.string(),
|
|
6354
6354
|
state: z.string(),
|
|
6355
6355
|
spread_type: z.string(),
|
|
6356
|
-
width: z.number()
|
|
6357
|
-
height: z.number()
|
|
6356
|
+
width: z.number(),
|
|
6357
|
+
height: z.number(),
|
|
6358
6358
|
sequence: z.number(),
|
|
6359
6359
|
wells: z.array(z.unknown()),
|
|
6360
6360
|
background: z.unknown(),
|
|
@@ -6365,12 +6365,12 @@ var spreadServerSchema = z.object({
|
|
|
6365
6365
|
url: z.string().nullable().optional()
|
|
6366
6366
|
});
|
|
6367
6367
|
var spreadSchema = z.object({
|
|
6368
|
-
id: z.string()
|
|
6368
|
+
id: z.string(),
|
|
6369
6369
|
bookId: z.string(),
|
|
6370
6370
|
state: z.string(),
|
|
6371
6371
|
spreadType: z.string(),
|
|
6372
|
-
width: z.number()
|
|
6373
|
-
height: z.number()
|
|
6372
|
+
width: z.number(),
|
|
6373
|
+
height: z.number(),
|
|
6374
6374
|
sequence: z.number(),
|
|
6375
6375
|
wells: z.array(z.unknown()),
|
|
6376
6376
|
background: z.unknown(),
|