Skip to content

Commit a930fa6

Browse files
grdsdevclaude
andcommitted
fix: correct import typo and improve code formatting
- Fix typo in types import path - Improve formatting of Node.js 18 deprecation warning condition 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d2e59d9 commit a930fa6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SupabaseClient from './SupabaseClient'
2-
import type { GenericSchema, SupabaseClientOptions } from './lib/typesz
2+
import type { GenericSchema, SupabaseClientOptions } from './lib/types'
33

44
export * from '@supabase/auth-js'
55
export type { User as AuthUser, Session as AuthSession } from '@supabase/auth-js'
@@ -41,7 +41,12 @@ export const createClient = <
4141
}
4242

4343
// Check for Node.js 18 deprecation
44-
if (typeof window === 'undefined' && typeof process !== 'undefined' && process.version && process.version.startsWith('v18')) {
44+
if (
45+
typeof window === 'undefined' &&
46+
typeof process !== 'undefined' &&
47+
process.version &&
48+
process.version.startsWith('v18')
49+
) {
4550
console.warn(
4651
`⚠️ Node.js 18 is deprecated and will no longer be supported in future versions of @supabase/supabase-js. ` +
4752
`Please upgrade to Node.js 20 or later. ` +

0 commit comments

Comments
 (0)