@kvbox/server 0.5.23 → 0.5.24
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/kvbox-server.js +5 -5
- package/dist/kvbox-server.js.map +1 -1
- package/package.json +1 -1
package/dist/kvbox-server.js
CHANGED
|
@@ -513,9 +513,9 @@ var CreateVolumeRequest = z3.object({
|
|
|
513
513
|
name: z3.string(),
|
|
514
514
|
sizeGib: z3.number().int().min(1).max(MAX_VOLUME_GIB),
|
|
515
515
|
/**
|
|
516
|
-
* Through a control plane (#91): the box this volume is for, so it is made on that box's host
|
|
517
|
-
* volume attaches only to a box on its own host
|
|
518
|
-
* A host ignores it.
|
|
516
|
+
* Through a control plane (#91): the box this volume is for, so it is made on that box's host; the
|
|
517
|
+
* control plane requires it (a volume attaches only to a box on its own host, so one made for no box
|
|
518
|
+
* could never attach) and the CLI attaches right after. A host ignores it.
|
|
519
519
|
*/
|
|
520
520
|
box: z3.string().optional()
|
|
521
521
|
});
|
|
@@ -1773,7 +1773,7 @@ async function placeholderDrives(boxDir, volumes) {
|
|
|
1773
1773
|
await truncate(file, v.sizeGib * 1024 ** 3);
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
var volumeDriveId = (name) => `
|
|
1776
|
+
var volumeDriveId = (name) => `vol_${name.replace(/-/g, "_")}`;
|
|
1777
1777
|
async function attachedBox(ref, p) {
|
|
1778
1778
|
return (await attachments(ref.owner, p)).get(ref.name) ?? null;
|
|
1779
1779
|
}
|
|
@@ -3428,7 +3428,7 @@ function versionOf(srcFileUrl, injected) {
|
|
|
3428
3428
|
}
|
|
3429
3429
|
|
|
3430
3430
|
// src/version.ts
|
|
3431
|
-
var VERSION = versionOf(import.meta.url, true ? "0.5.
|
|
3431
|
+
var VERSION = versionOf(import.meta.url, true ? "0.5.24" : void 0);
|
|
3432
3432
|
|
|
3433
3433
|
// src/caller.ts
|
|
3434
3434
|
import { createHash as createHash2, timingSafeEqual } from "node:crypto";
|