File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -188,10 +188,12 @@ export class Kernel {
188188 ...opts
189189 } : ClientOptions = { } ) {
190190 // 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- ) ;
191+ if (
192+ typeof globalThis !== 'undefined' &&
193+ typeof ( globalThis as any ) . Bun !== 'undefined' &&
194+ ( globalThis as any ) . Bun . version
195+ ) {
196+ throw new Errors . KernelError ( 'The Bun runtime is not supported. Please use a different runtime.' ) ;
195197 }
196198
197199 if ( apiKey === undefined ) {
You can’t perform that action at this time.
0 commit comments