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

supabase / supabase-js / 6248324363

20 Sep 2023 12:10PM UTC coverage: 65.385%. First build
6248324363

Pull #855

github

GitHub
Merge 0953caa25 into ed5a3d4d9
Pull Request #855:

47 of 92 branches covered (51.09%)

Branch coverage included in aggregate %.

89 of 116 relevant lines covered (76.72%)

4.35 hits per line

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

61.11
/src/lib/constants.ts
1
// constants.ts
2
import { version } from './version'
4✔
3
let JS_ENV = ''
4✔
4
// @ts-ignore
5
if (typeof Deno !== 'undefined') {
4!
6
  JS_ENV = 'deno'
×
7
} else if (typeof document !== 'undefined') {
4!
8
  JS_ENV = 'web'
×
9
} else if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
4!
10
  JS_ENV = 'react-native'
×
11
} else {
12
  JS_ENV = 'node'
4✔
13
}
14
export const DEFAULT_HEADERS = { 'X-Client-Info': `supabase-js-${JS_ENV}/${version}` }
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