Skip to content

Commit 7498b28

Browse files
committed
Add auto pause to beta create
1 parent 7abf7c5 commit 7498b28

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/js-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "e2b",
3-
"version": "2.0.0-rc.1",
3+
"version": "2.0.0-rc.2",
44
"description": "E2B SDK that give agents cloud environments",
55
"homepage": "https://e2b.dev",
66
"license": "MIT",

packages/js-sdk/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export type {
3939
SandboxOpts,
4040
SandboxApiOpts,
4141
SandboxConnectOpts,
42+
SandboxBetaCreateOpts,
4243
SandboxResumeOpts,
4344
SandboxMetricsOpts,
4445
SandboxState,

packages/js-sdk/src/sandbox/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
SandboxApi,
1919
SandboxListOpts,
2020
SandboxPaginator,
21+
SandboxBetaCreateOpts,
2122
} from './sandboxApi'
2223
import { getSignature } from './signature'
2324
import { compareVersions } from 'compare-versions'
@@ -283,12 +284,12 @@ export class Sandbox extends SandboxApi {
283284
static async betaCreate<S extends typeof Sandbox>(
284285
this: S,
285286
template: string,
286-
opts?: SandboxOpts
287+
opts?: SandboxBetaCreateOpts
287288
): Promise<InstanceType<S>>
288289
static async betaCreate<S extends typeof Sandbox>(
289290
this: S,
290-
templateOrOpts?: SandboxOpts | string,
291-
opts?: SandboxOpts
291+
templateOrOpts?: SandboxBetaCreateOpts | string,
292+
opts?: SandboxBetaCreateOpts
292293
): Promise<InstanceType<S>> {
293294
const { template, sandboxOpts } =
294295
typeof templateOrOpts === 'string'

0 commit comments

Comments
 (0)