@proveanything/smartlinks 1.14.6 → 1.14.8
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/dist/docs/API_SUMMARY.md +1 -1
- package/dist/http.js +3 -3
- package/docs/API_SUMMARY.md +1 -1
- package/package.json +1 -1
package/dist/docs/API_SUMMARY.md
CHANGED
package/dist/http.js
CHANGED
|
@@ -56,7 +56,7 @@ let cachePersistence = 'none';
|
|
|
56
56
|
/** When true (default), clear in-memory and sessionStorage caches on page load/refresh. */
|
|
57
57
|
let cacheClearOnPageLoad = true;
|
|
58
58
|
/** When true, the bearer token is saved to localStorage and restored automatically on init. */
|
|
59
|
-
let tokenPersistenceEnabled =
|
|
59
|
+
let tokenPersistenceEnabled = false;
|
|
60
60
|
const TOKEN_STORAGE_KEY = 'sl:token';
|
|
61
61
|
/**
|
|
62
62
|
* How long L2 (IndexedDB) entries are considered valid as an offline stale fallback,
|
|
@@ -101,8 +101,8 @@ function getTtlForPath(path) {
|
|
|
101
101
|
function shouldSkipCache(path) {
|
|
102
102
|
if (!cacheEnabled)
|
|
103
103
|
return true;
|
|
104
|
-
// Never cache auth endpoints — they deal with tokens and session state.
|
|
105
|
-
if (/\/auth\//i.test(path))
|
|
104
|
+
// Never cache auth or account endpoints — they deal with tokens and session state.
|
|
105
|
+
if (/\/(auth|account)\//i.test(path))
|
|
106
106
|
return true;
|
|
107
107
|
return false;
|
|
108
108
|
}
|
package/docs/API_SUMMARY.md
CHANGED