Skip to content

Commit 25fd0b0

Browse files
author
Stainless Bot
committed
feat: lint
1 parent 4e3ee53 commit 25fd0b0

File tree

10 files changed

+20
-26
lines changed

10 files changed

+20
-26
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15-
1615

1716
steps:
1817
- uses: actions/checkout@v4
@@ -31,7 +30,6 @@ jobs:
3130
build:
3231
name: build
3332
runs-on: ubuntu-latest
34-
3533

3634
steps:
3735
- uses: actions/checkout@v4
@@ -63,4 +61,3 @@ jobs:
6361

6462
- name: Run tests
6563
run: ./scripts/test
66-

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.BROWSERBASE_NPM_TOKEN || secrets.NPM_TOKEN }}
22-
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-disable prettier/prettier */
2-
const imageUrl = chrome.runtime.getURL("images/logo.png");
2+
const imageUrl = chrome.runtime.getURL('images/logo.png');
33
window
4-
.fetch(imageUrl)
5-
.then((response) => {
6-
if (response.ok) {
7-
console.log("browserbase test extension image loaded");
8-
}
9-
})
10-
.catch((error) => {
11-
console.log(error);
12-
});
4+
.fetch(imageUrl)
5+
.then((response) => {
6+
if (response.ok) {
7+
console.log('browserbase test extension image loaded');
8+
}
9+
})
10+
.catch((error) => {
11+
console.log(error);
12+
});

release-please-config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,5 @@
6060
}
6161
],
6262
"release-type": "node",
63-
"extra-files": [
64-
"src/version.ts",
65-
"README.md"
66-
]
63+
"extra-files": ["src/version.ts", "README.md"]
6764
}

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ const getPlatformProperties = (): PlatformProperties => {
840840
'X-Stainless-Arch': normalizeArch(Deno.build.arch),
841841
'X-Stainless-Runtime': 'deno',
842842
'X-Stainless-Runtime-Version':
843-
typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
843+
typeof Deno.version === 'string' ? Deno.version : (Deno.version?.deno ?? 'unknown'),
844844
};
845845
}
846846
if (typeof EdgeRuntime !== 'undefined') {

src/uploads.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ async function getBytes(value: ToFileInput): Promise<Array<BlobPart>> {
156156
}
157157
} else {
158158
throw new Error(
159-
`Unexpected data type: ${typeof value}; constructor: ${value?.constructor
160-
?.name}; props: ${propsForError(value)}`,
159+
`Unexpected data type: ${typeof value}; constructor: ${
160+
value?.constructor?.name
161+
}; props: ${propsForError(value)}`,
161162
);
162163
}
163164

tests/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ describe('retries', () => {
221221
let count = 0;
222222
const testFetch = async (url: RequestInfo, { signal }: RequestInit = {}): Promise<Response> => {
223223
if (count++ === 0) {
224-
return new Promise(
225-
(resolve, reject) => signal?.addEventListener('abort', () => reject(new Error('timed out'))),
224+
return new Promise((resolve, reject) =>
225+
signal?.addEventListener('abort', () => reject(new Error('timed out'))),
226226
);
227227
}
228228
return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } });

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"rootDir": "./dist/src",
77
"paths": {
88
"browserbase/*": ["dist/src/*"],
9-
"browserbase": ["dist/src/index.ts"],
9+
"browserbase": ["dist/src/index.ts"]
1010
},
1111
"noEmit": false,
1212
"declaration": true,

tsconfig.deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"paths": {
99
"browserbase/_shims/auto/*": ["deno/_shims/auto/*-deno"],
1010
"browserbase/*": ["deno/*"],
11-
"browserbase": ["deno/index.ts"],
11+
"browserbase": ["deno/index.ts"]
1212
},
1313
"noEmit": true,
1414
"declaration": true,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"paths": {
1212
"browserbase/_shims/auto/*": ["src/_shims/auto/*-node"],
1313
"browserbase/*": ["src/*"],
14-
"browserbase": ["src/index.ts"],
14+
"browserbase": ["src/index.ts"]
1515
},
1616
"noEmit": true,
1717

0 commit comments

Comments
 (0)