• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-js / 16269271108

14 Jul 2025 02:13PM UTC coverage: 81.14%. Remained the same
16269271108

Pull #1499

github

web-flow
Merge 71cbd1508 into cea0d4c01
Pull Request #1499: fix: rebase master against next

67 of 93 branches covered (72.04%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

118 of 135 relevant lines covered (87.41%)

35.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

68.18
/src/lib/constants.ts
1
// constants.ts
2
import { RealtimeClientOptions } from '@supabase/realtime-js'
3
import { SupabaseAuthClientOptions } from './types'
4
import { version } from './version'
12✔
5

6
let JS_ENV = ''
12✔
7
// @ts-ignore
8
if (typeof Deno !== 'undefined') {
12!
9
  JS_ENV = 'deno'
×
10
} else if (typeof document !== 'undefined') {
12!
11
  JS_ENV = 'web'
×
12
} else if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
12!
13
  JS_ENV = 'react-native'
×
14
} else {
15
  JS_ENV = 'node'
12✔
16
}
17

18
export const DEFAULT_HEADERS = { 'X-Client-Info': `supabase-js-${JS_ENV}/${version}` }
12✔
19

20
export const DEFAULT_GLOBAL_OPTIONS = {
12✔
21
  headers: DEFAULT_HEADERS,
22
}
23

24
export const DEFAULT_DB_OPTIONS = {
12✔
25
  schema: 'public',
26
}
27

28
export const DEFAULT_AUTH_OPTIONS: SupabaseAuthClientOptions = {
12✔
29
  autoRefreshToken: true,
30
  persistSession: true,
31
  detectSessionInUrl: true,
32
  flowType: 'implicit',
33
}
34

35
export const DEFAULT_REALTIME_OPTIONS: RealtimeClientOptions = {}
12✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc