@supabase/ssr
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -18,3 +18,3 @@ import * as _supabase_supabase_js from '@supabase/supabase-js'; | ||
declare function createBrowserClient<Database = any, SchemaName extends string & keyof Database = 'public' extends keyof Database ? 'public' : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any>(supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptions<SchemaName> & { | ||
cookies: CookieMethods; | ||
cookies?: CookieMethods; | ||
cookieOptions?: CookieOptionsWithName; | ||
@@ -21,0 +21,0 @@ isSingleton?: boolean; |
@@ -138,3 +138,4 @@ "use strict"; | ||
if (options) { | ||
({ cookies, isSingleton = true, cookieOptions, ...userDefinedClientOptions } = options); | ||
({ cookies = {}, isSingleton = true, cookieOptions, ...userDefinedClientOptions } = options); | ||
cookies = cookies || {}; | ||
} | ||
@@ -144,3 +145,3 @@ const cookieClientOptions = { | ||
headers: { | ||
"X-Client-Info": `${"supabase-ssr"}/${"0.1.0"}` | ||
"X-Client-Info": `${"supabase-ssr"}/${"0.2.0"}` | ||
} | ||
@@ -275,3 +276,3 @@ }, | ||
headers: { | ||
"X-Client-Info": `${"supabase-ssr"}/${"0.1.0"}` | ||
"X-Client-Info": `${"supabase-ssr"}/${"0.2.0"}` | ||
} | ||
@@ -278,0 +279,0 @@ }, |
{ | ||
"name": "@supabase/ssr", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65880
691