@vercel/sandbox 0.0.6 → 0.0.7
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/api-client/api-client.d.ts +1 -2
- package/dist/sandbox.d.ts +3 -3
- package/dist/sandbox.js +1 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/api-client/api-client.ts +1 -1
- package/src/sandbox.ts +4 -7
- package/src/version.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ All while streaming logs to your local terminal.
|
|
|
49
49
|
|
|
50
50
|
- Sandbox only supports cloning public repositories at the moment.
|
|
51
51
|
- `sudo` is not available. User code is executed as the `vercel-sandbox` user.
|
|
52
|
-
- Max resources:
|
|
52
|
+
- Max resources: 8 vCPUs. You will get 2048 MB of memory per vCPU.
|
|
53
53
|
- All APIs of the SDK are subject to change. **We make no stability promises.**
|
|
54
54
|
|
|
55
55
|
## System
|
package/dist/sandbox.d.ts
CHANGED
|
@@ -27,11 +27,11 @@ export interface CreateSandboxParams {
|
|
|
27
27
|
/**
|
|
28
28
|
* Resources to allocate to the sandbox.
|
|
29
29
|
*
|
|
30
|
-
* Your sandbox will get the amount of
|
|
31
|
-
*
|
|
30
|
+
* Your sandbox will get the amount of vCPUs you specify here and
|
|
31
|
+
* 2048 MB of memory per vCPU.
|
|
32
32
|
*/
|
|
33
33
|
resources?: {
|
|
34
|
-
|
|
34
|
+
vcpus: number;
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
/** @inline */
|
package/dist/sandbox.js
CHANGED
|
@@ -28,10 +28,7 @@ class Sandbox {
|
|
|
28
28
|
projectId: credentials.projectId,
|
|
29
29
|
ports: params?.ports ?? [],
|
|
30
30
|
timeout: params?.timeout,
|
|
31
|
-
|
|
32
|
-
cores: params.resources.cores,
|
|
33
|
-
memory: 2048 * params.resources.cores,
|
|
34
|
-
}),
|
|
31
|
+
resources: params?.resources,
|
|
35
32
|
});
|
|
36
33
|
return new Sandbox({
|
|
37
34
|
client,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.7";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ export class APIClient extends BaseClient {
|
|
|
62
62
|
projectId: string;
|
|
63
63
|
source?: { type: "git"; url: string } | { type: "tarball"; url: string };
|
|
64
64
|
timeout?: number;
|
|
65
|
-
resources?: {
|
|
65
|
+
resources?: { vcpus: number };
|
|
66
66
|
}) {
|
|
67
67
|
return parseOrThrow(
|
|
68
68
|
CreatedSandbox,
|
package/src/sandbox.ts
CHANGED
|
@@ -22,10 +22,10 @@ export interface CreateSandboxParams {
|
|
|
22
22
|
/**
|
|
23
23
|
* Resources to allocate to the sandbox.
|
|
24
24
|
*
|
|
25
|
-
* Your sandbox will get the amount of
|
|
26
|
-
*
|
|
25
|
+
* Your sandbox will get the amount of vCPUs you specify here and
|
|
26
|
+
* 2048 MB of memory per vCPU.
|
|
27
27
|
*/
|
|
28
|
-
resources?: {
|
|
28
|
+
resources?: { vcpus: number };
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/** @inline */
|
|
@@ -112,10 +112,7 @@ export class Sandbox {
|
|
|
112
112
|
projectId: credentials.projectId,
|
|
113
113
|
ports: params?.ports ?? [],
|
|
114
114
|
timeout: params?.timeout,
|
|
115
|
-
|
|
116
|
-
cores: params.resources.cores,
|
|
117
|
-
memory: 2048 * params.resources.cores,
|
|
118
|
-
}),
|
|
115
|
+
resources: params?.resources,
|
|
119
116
|
});
|
|
120
117
|
|
|
121
118
|
return new Sandbox({
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Autogenerated by inject-version.ts
|
|
2
|
-
export const VERSION = "0.0.
|
|
2
|
+
export const VERSION = "0.0.7";
|