@computesdk/sandbox0 1.0.10 → 1.0.11
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 +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/dist/index.mjs
CHANGED
|
@@ -22713,12 +22713,12 @@ async function createSandbox(config, options) {
|
|
|
22713
22713
|
clusterId: sandbox.clusterId,
|
|
22714
22714
|
commandTimeout: config.commandTimeout
|
|
22715
22715
|
});
|
|
22716
|
-
return { sandbox,
|
|
22716
|
+
return { instance: sandbox, instanceId: sandbox.id };
|
|
22717
22717
|
}
|
|
22718
22718
|
var _provider = defineProvider({
|
|
22719
22719
|
name: "sandbox0",
|
|
22720
22720
|
methods: {
|
|
22721
|
-
|
|
22721
|
+
instances: {
|
|
22722
22722
|
create: createSandbox,
|
|
22723
22723
|
getById: async (config, sandboxId) => {
|
|
22724
22724
|
const client = createClient(config);
|
|
@@ -22733,7 +22733,7 @@ var _provider = defineProvider({
|
|
|
22733
22733
|
templateId: details.templateId,
|
|
22734
22734
|
commandTimeout: config.commandTimeout
|
|
22735
22735
|
});
|
|
22736
|
-
return { sandbox, sandboxId };
|
|
22736
|
+
return { instance: sandbox, instanceId: sandboxId };
|
|
22737
22737
|
} catch (error) {
|
|
22738
22738
|
if (isNotFound(error)) return null;
|
|
22739
22739
|
throw error;
|
|
@@ -22756,7 +22756,7 @@ var _provider = defineProvider({
|
|
|
22756
22756
|
clusterId: summary.clusterId,
|
|
22757
22757
|
commandTimeout: config.commandTimeout
|
|
22758
22758
|
});
|
|
22759
|
-
sandboxes.push({ sandbox,
|
|
22759
|
+
sandboxes.push({ instance: sandbox, instanceId: summary.id });
|
|
22760
22760
|
}
|
|
22761
22761
|
if (!page.hasMore || page.sandboxes.length === 0) break;
|
|
22762
22762
|
offset += page.sandboxes.length;
|