@logspace/sdk 1.1.7 → 1.1.9
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/logspace.esm.js +84 -10
- package/logspace.esm.js.map +1 -1
- package/logspace.iife.js +1 -1
- package/logspace.iife.js.map +1 -1
- package/logspace.umd.js +1 -1
- package/logspace.umd.js.map +1 -1
- package/package.json +1 -1
- package/sdk/storage/indexed-db.d.ts +10 -0
package/package.json
CHANGED
|
@@ -69,6 +69,16 @@ export declare function updatePendingSessionRetry(sessionId: string): Promise<vo
|
|
|
69
69
|
* Clean up old pending sessions (older than 7 days or too many retries)
|
|
70
70
|
*/
|
|
71
71
|
export declare function cleanupOldPendingSessions(): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Calculate exponential backoff interval based on retry count
|
|
74
|
+
* Returns milliseconds to wait before next retry
|
|
75
|
+
* Pattern: 1min, 2min, 4min, 8min, 16min, 32min, 60min (capped)
|
|
76
|
+
*/
|
|
77
|
+
export declare function getBackoffInterval(retryCount: number): number;
|
|
78
|
+
/**
|
|
79
|
+
* Check if a session is ready for retry based on exponential backoff
|
|
80
|
+
*/
|
|
81
|
+
export declare function isReadyForRetry(session: StoredSession): boolean;
|
|
72
82
|
/**
|
|
73
83
|
* Close database connection
|
|
74
84
|
*/
|