• 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

100.0
/src/index.ts
1
import SupabaseClient from './SupabaseClient'
3✔
2
import type { GenericSchema, SupabaseClientOptions } from './lib/types'
3

4
export * from '@supabase/auth-js'
3✔
5
export type { User as AuthUser, Session as AuthSession } from '@supabase/auth-js'
6
export {
3✔
7
  type PostgrestResponse,
8
  type PostgrestSingleResponse,
9
  type PostgrestMaybeSingleResponse,
10
  PostgrestError,
3✔
11
} from '@supabase/postgrest-js'
12
export {
3✔
13
  FunctionsHttpError,
3✔
14
  FunctionsFetchError,
3✔
15
  FunctionsRelayError,
3✔
16
  FunctionsError,
3✔
17
  type FunctionInvokeOptions,
18
  FunctionRegion,
3✔
19
} from '@supabase/functions-js'
20
export * from '@supabase/realtime-js'
3✔
21
export { default as SupabaseClient } from './SupabaseClient'
9✔
22
export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from './lib/types'
23

24
/**
25
 * Creates a new Supabase Client.
26
 */
27
export const createClient = <
3✔
28
  Database = any,
29
  SchemaName extends string & keyof Database = 'public' extends keyof Database
30
    ? 'public'
31
    : string & keyof Database,
32
  Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
33
    ? Database[SchemaName]
34
    : any
35
>(
36
  supabaseUrl: string,
37
  supabaseKey: string,
38
  options?: SupabaseClientOptions<SchemaName>
39
): SupabaseClient<Database, SchemaName, Schema> => {
40
  return new SupabaseClient<Database, SchemaName, Schema>(supabaseUrl, supabaseKey, options)
45✔
41
}
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