@usermaven/sdk-js 1.5.10-rc.111 → 1.5.10-rc.112
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/lib.js +2 -2
- package/dist/persistence/local-storage.d.ts +6 -1
- package/dist/usermaven.cjs.js +2 -2
- package/dist/usermaven.es.js +390 -324
- package/dist/utils/queue.d.ts +6 -1
- package/package.json +1 -1
package/dist/utils/queue.d.ts
CHANGED
|
@@ -12,12 +12,17 @@ export declare class RetryQueue {
|
|
|
12
12
|
private batchTimeoutId;
|
|
13
13
|
private persistence;
|
|
14
14
|
private isOnline;
|
|
15
|
-
|
|
15
|
+
private maxQueueItems;
|
|
16
|
+
private maxQueueBytes;
|
|
17
|
+
private totalQueueBytes;
|
|
18
|
+
constructor(transport: Transport, maxRetries?: number, retryInterval?: number, batchSize?: number, batchInterval?: number, logger?: Logger, namespace?: string, maxQueueItems?: number, maxQueueBytes?: number);
|
|
16
19
|
add(payload: any): void;
|
|
17
20
|
private initNetworkListeners;
|
|
18
21
|
private scheduleBatch;
|
|
19
22
|
private processBatch;
|
|
20
23
|
private handleBatchFailure;
|
|
24
|
+
private enforceQueueLimits;
|
|
25
|
+
private estimateItemBytes;
|
|
21
26
|
private loadQueueFromStorage;
|
|
22
27
|
private saveQueueToStorage;
|
|
23
28
|
}
|