We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 745fc0f commit 80ec147Copy full SHA for 80ec147
1 file changed
src/client.ts
@@ -188,10 +188,12 @@ export class Kernel {
188
...opts
189
}: ClientOptions = {}) {
190
// Check for Bun runtime in a way that avoids type errors if Bun is not defined
191
- if (typeof globalThis !== 'undefined' && typeof (globalThis as any).Bun !== 'undefined' && (globalThis as any).Bun.version) {
192
- throw new Errors.KernelError(
193
- "The Bun runtime is not supported. Please use a different runtime.",
194
- );
+ if (
+ typeof globalThis !== 'undefined' &&
+ typeof (globalThis as any).Bun !== 'undefined' &&
+ (globalThis as any).Bun.version
195
+ ) {
196
+ throw new Errors.KernelError('The Bun runtime is not supported. Please use a different runtime.');
197
}
198
199
if (apiKey === undefined) {
0 commit comments