@blaxel/core 0.2.22-dev.162 → 0.2.22-dev.164
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/sandbox/sandbox.d.ts +1 -1
- package/dist/sandbox/sandbox.js +11 -0
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ export declare class SandboxInstance {
|
|
|
20
20
|
wait({ maxWait, interval }?: {
|
|
21
21
|
maxWait?: number;
|
|
22
22
|
interval?: number;
|
|
23
|
-
}): Promise<
|
|
23
|
+
}): Promise<this>;
|
|
24
24
|
static create(sandbox?: SandboxModel | SandboxCreateConfiguration): Promise<SandboxInstance>;
|
|
25
25
|
static get(sandboxName: string): Promise<SandboxInstance>;
|
|
26
26
|
static list(): Promise<SandboxInstance[]>;
|
package/dist/sandbox/sandbox.js
CHANGED
|
@@ -61,6 +61,17 @@ class SandboxInstance {
|
|
|
61
61
|
throw new Error("Sandbox did not deploy in time");
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
+
if (this.sandbox.status === "DEPLOYED") {
|
|
65
|
+
try {
|
|
66
|
+
// This is a hack for sometime receiving a 502,
|
|
67
|
+
// need to remove this once we have a better way to handle this
|
|
68
|
+
await this.fs.ls("/");
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
// pass
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return this;
|
|
64
75
|
}
|
|
65
76
|
static async create(sandbox) {
|
|
66
77
|
const defaultName = `sandbox-${(0, uuid_1.v4)().replace(/-/g, '').substring(0, 8)}`;
|