modal 0.11.1-dev.4 → 0.11.1-dev.6

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.cjs CHANGED
@@ -72454,6 +72454,9 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
72454
72454
  if (params.workdir && !params.workdir.startsWith("/")) {
72455
72455
  throw new Error(`workdir must be an absolute path, got: ${params.workdir}`);
72456
72456
  }
72457
+ if (params.name) {
72458
+ checkObjectName(params.name, "Sandbox");
72459
+ }
72457
72460
  const runtime = sandboxRuntimeToProto(params.runtime);
72458
72461
  const volumeMounts = params.volumes ? Object.entries(params.volumes).map(
72459
72462
  ([mountPath, volume]) => volumeToMountProto(mountPath, volume)
@@ -74576,7 +74579,7 @@ var AuthTokenManager = class {
74576
74579
  };
74577
74580
 
74578
74581
  // src/version.ts
74579
- var SDK_VERSION = "0.11.1-dev.4";
74582
+ var SDK_VERSION = "0.11.1-dev.6";
74580
74583
  function getSDKVersion() {
74581
74584
  return SDK_VERSION;
74582
74585
  }
package/dist/index.js CHANGED
@@ -72372,6 +72372,9 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
72372
72372
  if (params.workdir && !params.workdir.startsWith("/")) {
72373
72373
  throw new Error(`workdir must be an absolute path, got: ${params.workdir}`);
72374
72374
  }
72375
+ if (params.name) {
72376
+ checkObjectName(params.name, "Sandbox");
72377
+ }
72375
72378
  const runtime = sandboxRuntimeToProto(params.runtime);
72376
72379
  const volumeMounts = params.volumes ? Object.entries(params.volumes).map(
72377
72380
  ([mountPath, volume]) => volumeToMountProto(mountPath, volume)
@@ -74494,7 +74497,7 @@ var AuthTokenManager = class {
74494
74497
  };
74495
74498
 
74496
74499
  // src/version.ts
74497
- var SDK_VERSION = "0.11.1-dev.4";
74500
+ var SDK_VERSION = "0.11.1-dev.6";
74498
74501
  function getSDKVersion() {
74499
74502
  return SDK_VERSION;
74500
74503
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modal",
3
- "version": "0.11.1-dev.4",
3
+ "version": "0.11.1-dev.6",
4
4
  "description": "Modal SDK for JavaScript/TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://modal.com/docs/guide/sdk-javascript-go",