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

supabase / supabase-js / 9249375537

27 May 2024 04:48AM UTC coverage: 64.948%. Remained the same
9249375537

push

github

soedirgo
chore(deps): bump next from 14.0.1 to 14.1.1 in /examples/next-ts

Bumps [next](https://github.com/vercel/next.js) from 14.0.1 to 14.1.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v14.0.1...v14.1.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

36 of 77 branches covered (46.75%)

Branch coverage included in aggregate %.

90 of 117 relevant lines covered (76.92%)

4.39 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'
4✔
5

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

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

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

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

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

35
export const DEFAULT_REALTIME_OPTIONS: RealtimeClientOptions = {}
4✔
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