@enclave-run/sdk 0.2.0 → 0.3.0
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.d.mts +0 -8
- package/dist/index.d.ts +0 -8
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ import createClient from "openapi-fetch";
|
|
|
60
60
|
import platform2 from "platform";
|
|
61
61
|
|
|
62
62
|
// package.json
|
|
63
|
-
var version = "0.
|
|
63
|
+
var version = "0.3.0";
|
|
64
64
|
|
|
65
65
|
// src/utils.ts
|
|
66
66
|
import platform from "platform";
|
|
@@ -3373,7 +3373,7 @@ var SandboxApi = class {
|
|
|
3373
3373
|
return true;
|
|
3374
3374
|
}
|
|
3375
3375
|
static async createSandbox(template, timeoutMs, opts) {
|
|
3376
|
-
var _a3, _b
|
|
3376
|
+
var _a3, _b;
|
|
3377
3377
|
const config = ConnectionConfig.forSandbox(opts);
|
|
3378
3378
|
const client = new ApiClient(config);
|
|
3379
3379
|
const idempotencyKey = (_a3 = opts == null ? void 0 : opts.idempotencyKey) != null ? _a3 : crypto.randomUUID();
|
|
@@ -3392,8 +3392,7 @@ var SandboxApi = class {
|
|
|
3392
3392
|
mcp: opts == null ? void 0 : opts.mcp,
|
|
3393
3393
|
envVars: opts == null ? void 0 : opts.envs,
|
|
3394
3394
|
timeout: timeoutToSeconds(timeoutMs),
|
|
3395
|
-
|
|
3396
|
-
allow_internet_access: (_c = opts == null ? void 0 : opts.allowInternetAccess) != null ? _c : true,
|
|
3395
|
+
allow_internet_access: (_b = opts == null ? void 0 : opts.allowInternetAccess) != null ? _b : true,
|
|
3397
3396
|
network: opts == null ? void 0 : opts.network,
|
|
3398
3397
|
autoPause: pauseOnTimeout
|
|
3399
3398
|
}, pauseOnTimeout ? { autoResume: { policy: lifecycle.autoResume ? "any" : "off" } } : {}), config.region ? { region: config.region } : {});
|