@blaxel/core 0.2.22-dev.162 → 0.2.22-dev.163

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.
@@ -20,7 +20,7 @@ export declare class SandboxInstance {
20
20
  wait({ maxWait, interval }?: {
21
21
  maxWait?: number;
22
22
  interval?: number;
23
- }): Promise<void>;
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[]>;
@@ -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)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.22-dev.162",
3
+ "version": "0.2.22-dev.163",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",