Skip to content

Commit 7695889

Browse files
authored
Fix typos in docs, tests, and helper names (#1282)
## Summary - fix typos in hand-written docs and comments - rename typoed helper variables in the CLI - fix typoed test identifiers and descriptions in the JS SDK tests - fix typoed credential warning text in the Python SDK ## Testing - not run Closes #1281
1 parent 4065ecd commit 7695889

9 files changed

Lines changed: 13 additions & 14 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Use pnpm for node and poetry for python to install and update dependencies.
2-
Run `pnpm run format`, `pnpm run lint` and `pnpm run typecheck` before commiting changes.
2+
Run `pnpm run format`, `pnpm run lint` and `pnpm run typecheck` before committing changes.
33
To re-generate the API client run `make codegen` in the repository root.
44
Run tests on affected codepaths using `pnpm run test`.
55
Default credentials are stored in .env.local in the repository root or inside ~/.e2b/config.json.

packages/cli/src/utils/confirm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export async function confirm(text: string, defaultAnwser = false) {
1+
export async function confirm(text: string, defaultAnswer = false) {
22
const inquirer = await import('inquirer')
33
const confirmAnswers = await inquirer.default.prompt([
44
{
55
name: 'confirm',
66
type: 'confirm',
7-
default: defaultAnwser,
7+
default: defaultAnswer,
88
message: text,
99
},
1010
])

packages/cli/src/utils/templatePrompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export async function getPromptTemplates(
88
text: string
99
) {
1010
const inquirer = await import('inquirer')
11-
const templatesAnwsers = await inquirer.default.prompt([
11+
const templatesAnswers = await inquirer.default.prompt([
1212
{
1313
name: 'templates',
1414
message: chalk.default.underline(text),
@@ -21,7 +21,7 @@ export async function getPromptTemplates(
2121
},
2222
])
2323

24-
return templatesAnwsers[
24+
return templatesAnswers[
2525
'templates'
2626
] as e2b.components['schemas']['Template'][]
2727
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ export class Git {
937937
/**
938938
* Execute a raw shell command while applying default git environment variables.
939939
*
940-
Note: We can liekly just modify runGit later to allow appending commands to the git but for now it's separate.
940+
Note: We can likely just modify runGit later to allow appending commands to the git but for now it's separate.
941941
*/
942942
private async runShell(
943943
cmd: string,

packages/js-sdk/tests/integration/stress.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ for (let i = 0; i < view.length; i++) {
1010
}
1111

1212
const integrationTestTemplate = 'integration-test-v1'
13-
const sanboxCount = 10
13+
const sandboxCount = 10
1414

1515
test.skipIf(!isIntegrationTest)(
1616
'stress test heavy file writes and reads',
1717
async () => {
1818
const promises: Array<Promise<string | void>> = []
19-
for (let i = 0; i < sanboxCount; i++) {
19+
for (let i = 0; i < sandboxCount; i++) {
2020
promises.push(
2121
Sandbox.create(integrationTestTemplate, { timeoutMs: 60 })
2222
.then((sbx) => {
@@ -36,7 +36,7 @@ test.skipIf(!isIntegrationTest)(
3636
test.skipIf(!isIntegrationTest)('stress requests to nextjs app', async () => {
3737
const hostPromises: Array<Promise<string | void>> = []
3838

39-
for (let i = 0; i < sanboxCount; i++) {
39+
for (let i = 0; i < sandboxCount; i++) {
4040
hostPromises.push(
4141
Sandbox.create(integrationTestTemplate, { timeoutMs: 60_000 }).then(
4242
(sbx) => {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM e2bdev/code-interpreter:latest
22

3-
# Install stess-ng, a tool to load and stress computer systems
3+
# Install stress-ng, a tool to load and stress computer systems
44
RUN apt update
55
RUN apt install -y stress-ng
66

@@ -9,4 +9,3 @@ RUN npx -y create-next-app@latest basic-nextjs-app --yes --ts --use-npm
99

1010
# Install dependencies
1111
RUN cd basic-nextjs-app && npm install
12-

packages/js-sdk/tests/sandbox/timeout.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sandboxTest.skipIf(isDebug)('shorten timeout', async ({ sandbox }) => {
1111
})
1212

1313
sandboxTest.skipIf(isDebug)(
14-
'shorten then lenghten timeout',
14+
'shorten then lengthen timeout',
1515
async ({ sandbox }) => {
1616
await sandbox.setTimeout(5000)
1717

packages/python-sdk/e2b/sandbox_async/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ async def dangerously_authenticate(
10021002
"""
10031003
Dangerously authenticate git globally via the credential helper.
10041004
1005-
This persists credentials in the credential store and may be accessable to agents running on the sandbox.
1005+
This persists credentials in the credential store and may be accessible to agents running on the sandbox.
10061006
Prefer short-lived credentials when possible.
10071007
10081008
:param username: Username for HTTP(S) authentication

packages/python-sdk/e2b/sandbox_sync/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ def dangerously_authenticate(
979979
"""
980980
Dangerously authenticate git globally via the credential helper.
981981
982-
This persists credentials in the credential store and may be accessable to agents running on the sandbox.
982+
This persists credentials in the credential store and may be accessible to agents running on the sandbox.
983983
Prefer short-lived credentials when possible.
984984
985985
:param username: Username for HTTP(S) authentication

0 commit comments

Comments
 (0)