@computesdk/codesandbox 1.5.60 → 1.5.61

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -28,7 +28,7 @@ const compute = codesandbox({
28
28
  timeout: 600000 // 10 minutes
29
29
  });
30
30
 
31
- const sandbox = await compute.sandbox.create();
31
+ const sandbox = await compute.instances.create();
32
32
 
33
33
  const result = await sandbox.runCommand('node -e "console.log(\"Hello from CodeSandbox!\")"');
34
34
  console.log(result.stdout);
@@ -143,10 +143,10 @@ const info = await sandbox.getInfo();
143
143
  console.log(info.id, info.provider, info.status);
144
144
 
145
145
  // Resume existing sandbox
146
- const existing = await compute.sandbox.getById('sandbox-id');
146
+ const existing = await compute.instances.getById('sandbox-id');
147
147
 
148
148
  // Hibernate sandbox (saves state)
149
- await compute.sandbox.destroy('sandbox-id'); // Actually hibernates
149
+ await compute.instances.destroy('sandbox-id'); // Actually hibernates
150
150
 
151
151
  // Note: CodeSandbox doesn't support listing all sandboxes
152
152
  // Each sandbox is managed individually
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computesdk/codesandbox",
3
- "version": "1.5.60",
3
+ "version": "1.5.61",
4
4
  "description": "CodeSandbox provider for ComputeSDK - fast browser-compatible sandboxes with npm and Python support",
5
5
  "author": "Garrison",
6
6
  "license": "MIT",
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@codesandbox/sdk": "^2.4.2",
22
- "@computesdk/provider": "2.1.13",
23
- "computesdk": "4.1.11"
22
+ "@computesdk/provider": "2.1.14",
23
+ "computesdk": "4.1.12"
24
24
  },
25
25
  "keywords": [
26
26
  "computesdk",