@usermaven/sdk-js 1.5.10-rc.111 → 1.5.10-rc.116
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Properties } from '../core/types';
|
|
1
2
|
export declare function getClassName(el: Element): string;
|
|
2
3
|
export declare function getSafeText(el: Element): string;
|
|
3
4
|
export declare function isElementNode(el: Element | undefined | null): el is HTMLElement;
|
|
@@ -10,4 +11,5 @@ export declare function shouldCaptureElement(el: Element): boolean;
|
|
|
10
11
|
export declare function isSensitiveElement(el: Element): boolean;
|
|
11
12
|
export declare function shouldCaptureValue(value: string): boolean;
|
|
12
13
|
export declare function isAngularStyleAttr(attributeName: string): boolean;
|
|
14
|
+
export declare function hasAutocaptureIdentifier(elementProps: Properties | null | undefined): boolean;
|
|
13
15
|
export declare function loadScript(scriptUrlToLoad: string, callback: (event: Event) => void): void;
|
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
|
}
|