@lizard-build/sdk 0.1.45 → 0.1.46

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 CHANGED
@@ -1083,7 +1083,7 @@ var Sandbox = class extends SandboxClient {
1083
1083
  const deadline = Date.now() + (opts?.waitTimeoutMs ?? 9e5);
1084
1084
  do {
1085
1085
  const snapshot = await this.getSnapshot(snapshotId, opts);
1086
- if (snapshot.status === "ready") return snapshot;
1086
+ if (snapshot.status === "ready" && snapshot.readyCount >= Math.max(1, snapshot.poolSize ?? 1)) return snapshot;
1087
1087
  if (["failed", "paused", "suspended"].includes(snapshot.status)) throw new ConflictError(snapshot.error ?? `Snapshot is ${snapshot.status}`);
1088
1088
  if (Date.now() >= deadline) break;
1089
1089
  await new Promise((resolve) => setTimeout(resolve, 1e3));
package/dist/index.mjs CHANGED
@@ -1032,7 +1032,7 @@ var Sandbox = class extends SandboxClient {
1032
1032
  const deadline = Date.now() + (opts?.waitTimeoutMs ?? 9e5);
1033
1033
  do {
1034
1034
  const snapshot = await this.getSnapshot(snapshotId, opts);
1035
- if (snapshot.status === "ready") return snapshot;
1035
+ if (snapshot.status === "ready" && snapshot.readyCount >= Math.max(1, snapshot.poolSize ?? 1)) return snapshot;
1036
1036
  if (["failed", "paused", "suspended"].includes(snapshot.status)) throw new ConflictError(snapshot.error ?? `Snapshot is ${snapshot.status}`);
1037
1037
  if (Date.now() >= deadline) break;
1038
1038
  await new Promise((resolve) => setTimeout(resolve, 1e3));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lizard-build/sdk",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "TypeScript SDK for Lizard: Kubernetes sandboxes, code execution and cloud apps.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",