@howells/stow-server 2.3.0 → 2.3.1
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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
|
@@ -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
|