@computesdk/sandbox0 1.0.10 → 1.0.12
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/README.md +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -22733,12 +22733,12 @@ async function createSandbox(config, options) {
|
|
|
22733
22733
|
clusterId: sandbox.clusterId,
|
|
22734
22734
|
commandTimeout: config.commandTimeout
|
|
22735
22735
|
});
|
|
22736
|
-
return { sandbox,
|
|
22736
|
+
return { instance: sandbox, instanceId: sandbox.id };
|
|
22737
22737
|
}
|
|
22738
22738
|
var _provider = (0, import_provider.defineProvider)({
|
|
22739
22739
|
name: "sandbox0",
|
|
22740
22740
|
methods: {
|
|
22741
|
-
|
|
22741
|
+
instances: {
|
|
22742
22742
|
create: createSandbox,
|
|
22743
22743
|
getById: async (config, sandboxId) => {
|
|
22744
22744
|
const client = createClient(config);
|
|
@@ -22753,7 +22753,7 @@ var _provider = (0, import_provider.defineProvider)({
|
|
|
22753
22753
|
templateId: details.templateId,
|
|
22754
22754
|
commandTimeout: config.commandTimeout
|
|
22755
22755
|
});
|
|
22756
|
-
return { sandbox, sandboxId };
|
|
22756
|
+
return { instance: sandbox, instanceId: sandboxId };
|
|
22757
22757
|
} catch (error) {
|
|
22758
22758
|
if (isNotFound(error)) return null;
|
|
22759
22759
|
throw error;
|
|
@@ -22776,7 +22776,7 @@ var _provider = (0, import_provider.defineProvider)({
|
|
|
22776
22776
|
clusterId: summary.clusterId,
|
|
22777
22777
|
commandTimeout: config.commandTimeout
|
|
22778
22778
|
});
|
|
22779
|
-
sandboxes.push({ sandbox,
|
|
22779
|
+
sandboxes.push({ instance: sandbox, instanceId: summary.id });
|
|
22780
22780
|
}
|
|
22781
22781
|
if (!page.hasMore || page.sandboxes.length === 0) break;
|
|
22782
22782
|
offset += page.sandboxes.length;
|