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

supabase / supabase-js / 6234159930

19 Sep 2023 10:10AM UTC coverage: 65.385%. First build
6234159930

Pull #854

github

GitHub
Merge ccf4cab47 into 8cf2b9688
Pull Request #854:

47 of 92 branches covered (51.09%)

Branch coverage included in aggregate %.

6 of 9 new or added lines in 1 file covered. (66.67%)

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!
NEW
6
  JS_ENV = 'deno'
×
7
} else if (typeof document !== 'undefined') {
4!
NEW
8
  JS_ENV = 'web'
×
9
} else if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
4!
NEW
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