@supabase/ssr
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -122,5 +122,8 @@ "use strict"; | ||
let cookieOptions; | ||
let storageKey = void 0; | ||
let userDefinedClientOptions; | ||
if (options) { | ||
({ cookies, isSingleton = true, cookieOptions, ...userDefinedClientOptions } = options); | ||
storageKey = cookieOptions == null ? void 0 : cookieOptions.name; | ||
cookieOptions == null ? true : delete cookieOptions.name; | ||
} | ||
@@ -130,3 +133,3 @@ const cookieClientOptions = { | ||
headers: { | ||
"X-Client-Info": `${"@supabase/ssr"}@${"0.0.7"}` | ||
"X-Client-Info": `${"supabase-ssr"}/${"0.0.8"}` | ||
} | ||
@@ -139,2 +142,3 @@ }, | ||
persistSession: true, | ||
storageKey, | ||
storage: { | ||
@@ -251,6 +255,8 @@ getItem: async (key) => { | ||
const { cookies, cookieOptions, ...userDefinedClientOptions } = options; | ||
const storageKey = cookieOptions == null ? void 0 : cookieOptions.name; | ||
cookieOptions == null ? true : delete cookieOptions.name; | ||
const cookieClientOptions = { | ||
global: { | ||
headers: { | ||
"X-Client-Info": `${"@supabase/ssr"}@${"0.0.7"}` | ||
"X-Client-Info": `${"supabase-ssr"}/${"0.0.8"}` | ||
} | ||
@@ -263,2 +269,3 @@ }, | ||
persistSession: true, | ||
storageKey, | ||
storage: { | ||
@@ -265,0 +272,0 @@ getItem: async (key) => { |
{ | ||
"name": "@supabase/ssr", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"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
61343
655