@symbo.ls/fetch 3.8.0 → 3.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/adapters/local.js CHANGED
@@ -68,7 +68,7 @@ export const localAdapter = (initialData = {}, options = {}) => {
68
68
 
69
69
  const save = (name) => {
70
70
  if (persist) {
71
- try { localStorage.setItem(prefix + name, JSON.stringify(store[name])) } catch {}
71
+ try { localStorage.setItem(prefix + name, JSON.stringify(store[name])) } catch {} // expected: localStorage unavailable in SSR or restricted contexts
72
72
  }
73
73
  }
74
74
 
package/index.js CHANGED
@@ -292,7 +292,9 @@ export const initAdapterAuth = async (adapter, context) => {
292
292
  try {
293
293
  const session = await adapter.getSession()
294
294
  updateAuth(session?.user || null, session)
295
- } catch (e) {}
295
+ } catch (e) {
296
+ console.warn('[fetch] Failed to restore auth session:', e.message)
297
+ }
296
298
  if (adapter.onAuthStateChange) {
297
299
  adapter.onAuthStateChange((event, session) => {
298
300
  updateAuth(session?.user || null, session)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/fetch",
3
- "version": "3.8.0",
3
+ "version": "3.8.6",
4
4
  "license": "CC-BY-NC-4.0",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -25,7 +25,7 @@
25
25
  "adapters"
26
26
  ],
27
27
  "dependencies": {
28
- "@domql/utils": "^3.8.0"
28
+ "@domql/utils": "^3.8.6"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@supabase/supabase-js": "^2.0.0"