@howells/stow-server 2.3.0 → 2.3.2
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.js +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -274,7 +274,7 @@ var clusterFileResultSchema = import_zod.z.object({
|
|
|
274
274
|
key: import_zod.z.string(),
|
|
275
275
|
bucketId: import_zod.z.string(),
|
|
276
276
|
originalFilename: import_zod.z.string().nullable(),
|
|
277
|
-
size: import_zod.z.number(),
|
|
277
|
+
size: import_zod.z.coerce.number(),
|
|
278
278
|
contentType: import_zod.z.string(),
|
|
279
279
|
metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.string()).nullable(),
|
|
280
280
|
createdAt: import_zod.z.string(),
|
|
@@ -1369,15 +1369,14 @@ var StowServer = class {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
createClustersResource(params) {
|
|
1371
1371
|
return this.request(
|
|
1372
|
-
"/clusters",
|
|
1372
|
+
this.withBucket("/clusters", params.bucket),
|
|
1373
1373
|
{
|
|
1374
1374
|
method: "POST",
|
|
1375
1375
|
headers: { "Content-Type": "application/json" },
|
|
1376
1376
|
body: JSON.stringify({
|
|
1377
1377
|
fileKeys: params.fileKeys,
|
|
1378
1378
|
...params.clusterCount === void 0 ? {} : { clusterCount: params.clusterCount },
|
|
1379
|
-
...params.name ? { name: params.name } : {}
|
|
1380
|
-
...params.bucket ? { bucket: params.bucket } : {}
|
|
1379
|
+
...params.name ? { name: params.name } : {}
|
|
1381
1380
|
})
|
|
1382
1381
|
},
|
|
1383
1382
|
clusterResourceResultSchema
|
package/dist/index.mjs
CHANGED
|
@@ -249,7 +249,7 @@ var clusterFileResultSchema = z.object({
|
|
|
249
249
|
key: z.string(),
|
|
250
250
|
bucketId: z.string(),
|
|
251
251
|
originalFilename: z.string().nullable(),
|
|
252
|
-
size: z.number(),
|
|
252
|
+
size: z.coerce.number(),
|
|
253
253
|
contentType: z.string(),
|
|
254
254
|
metadata: z.record(z.string(), z.string()).nullable(),
|
|
255
255
|
createdAt: z.string(),
|
|
@@ -1344,15 +1344,14 @@ var StowServer = class {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
createClustersResource(params) {
|
|
1346
1346
|
return this.request(
|
|
1347
|
-
"/clusters",
|
|
1347
|
+
this.withBucket("/clusters", params.bucket),
|
|
1348
1348
|
{
|
|
1349
1349
|
method: "POST",
|
|
1350
1350
|
headers: { "Content-Type": "application/json" },
|
|
1351
1351
|
body: JSON.stringify({
|
|
1352
1352
|
fileKeys: params.fileKeys,
|
|
1353
1353
|
...params.clusterCount === void 0 ? {} : { clusterCount: params.clusterCount },
|
|
1354
|
-
...params.name ? { name: params.name } : {}
|
|
1355
|
-
...params.bucket ? { bucket: params.bucket } : {}
|
|
1354
|
+
...params.name ? { name: params.name } : {}
|
|
1356
1355
|
})
|
|
1357
1356
|
},
|
|
1358
1357
|
clusterResourceResultSchema
|