@keska/sandbox 0.46.1 → 0.46.2

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
@@ -5388,15 +5388,21 @@ var Sandbox = class _Sandbox {
5388
5388
  await this.sleep();
5389
5389
  sleeping = true;
5390
5390
  }
5391
+ let snap;
5391
5392
  try {
5392
- return await waitOverlayPublished(
5393
+ snap = await waitOverlayPublished(
5393
5394
  () => this.wire.createSnapshot(this.id, { name: opts?.name, labels: opts?.labels })
5394
5395
  );
5395
- } finally {
5396
+ } catch (error) {
5396
5397
  if (sleeping) {
5397
- await this.wake();
5398
+ await this.wake().catch(() => void 0);
5398
5399
  }
5400
+ throw error;
5401
+ }
5402
+ if (sleeping) {
5403
+ await this.wake();
5399
5404
  }
5405
+ return snap;
5400
5406
  }
5401
5407
  /** SDK glue: guest snap + N Create({ fromSnapshotId }). Not CreateMany. */
5402
5408
  async clone(n = 1, opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keska/sandbox",
3
- "version": "0.46.1",
3
+ "version": "0.46.2",
4
4
  "description": "TypeScript client for the Numen sandbox API",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",