Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix(js-sdk): Make codebase btoa friendly (#186)
Pavel 'Strajk' Dolecek47b2593c1c6e
diff --git a/.changeset/nine-bottles-search.md b/.changeset/nine-bottles-search.mdnew file mode 100644index 000000000..8579de2ec--- /dev/null+++ b/.changeset/nine-bottles-search.md@@ -0,0 +1,5 @@+---+'@e2b/sdk': patch+---++Make codebase btoa friendlydiff --git a/apps/docs/src/components/Code.tsx b/apps/docs/src/components/Code.tsxindex b80d03a5c..1427f09ad 100644--- a/apps/docs/src/components/Code.tsx+++ b/apps/docs/src/components/Code.tsx@@ -478,7 +478,7 @@ export function Pre({export function CodeGroupAutoload({ children, isRunnable = true }) {if (!children) {console.warn(- 'CodeGroupAutoload: No children provided – something is wrong with your MDX file',+ 'CodeGroupAutoload: No children provided - something is wrong with your MDX file',)return null}diff --git a/apps/docs/src/utils/consts.ts b/apps/docs/src/utils/consts.tsindex 9620d818f..a3115bb7c 100644--- a/apps/docs/src/utils/consts.ts+++ b/apps/docs/src/utils/consts.ts@@ -1,5 +1,5 @@// Beware of our conventions:-// - use `js` for "JavaScript & TypeScript" – the code is actually JavaScript, but we wanna communicate that we are TypeScript friendly+// - use `js` for "JavaScript & TypeScript" - the code is actually JavaScript, but we wanna communicate that we are TypeScript friendly// @see https://e2b-team.slack.com/archives/C05AGT4UFMJ/p1694097476092009?thread_ts=1694072588.364759&cid=C05AGT4UFMJ// - use `javascript` for explicitly JavaScript// - use `typescript` for explicitly TypeScriptdiff --git a/packages/js-sdk/src/session/sessionConnection.ts b/packages/js-sdk/src/session/sessionConnection.tsindex 2fb8c0943..0defc0c36 100644--- a/packages/js-sdk/src/session/sessionConnection.ts+++ b/packages/js-sdk/src/session/sessionConnection.ts@@ -72,7 +72,7 @@ export class SessionConnection {private readonly rpc = new RpcWebSocketClient()private subscribers: Subscriber[] = []- // let's keep opts readonly, but public – for convenience, mainly when debugging+ // let's keep opts readonly, but public - for convenience, mainly when debuggingconstructor(readonly opts: SessionConnectionOpts) {const apiKey = opts.apiKey || process.env.E2B_API_KEYif (!apiKey) {