@openreplay/tracker 18.0.1-beta.0 → 18.0.2
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/cjs/entry.js +117 -18
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +117 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/index.d.ts +4 -4
- package/dist/cjs/main/app/observer/observer.d.ts +6 -0
- package/dist/lib/entry.js +117 -18
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +117 -18
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/index.d.ts +4 -4
- package/dist/lib/main/app/observer/observer.d.ts +6 -0
- package/dist/types/main/app/index.d.ts +4 -4
- package/dist/types/main/app/observer/observer.d.ts +6 -0
- package/package.json +1 -1
|
@@ -172,11 +172,10 @@ export default class App {
|
|
|
172
172
|
parentActive: boolean;
|
|
173
173
|
checkStatus: () => boolean;
|
|
174
174
|
parentCrossDomainFrameListener: (event: MessageEvent) => void;
|
|
175
|
-
/**
|
|
176
|
-
* context ids for iframes,
|
|
177
|
-
* order is not so important as long as its consistent
|
|
178
|
-
* */
|
|
179
175
|
trackedFrames: string[];
|
|
176
|
+
private frameLastSeen;
|
|
177
|
+
private readonly FRAME_STALE_MS;
|
|
178
|
+
private pruneStaleFrames;
|
|
180
179
|
crossDomainIframeListener: (event: MessageEvent) => void;
|
|
181
180
|
/**
|
|
182
181
|
* { command : [remaining iframes] }
|
|
@@ -291,6 +290,7 @@ export default class App {
|
|
|
291
290
|
* */
|
|
292
291
|
uploadOfflineRecording(): Promise<void>;
|
|
293
292
|
prevOpts: StartOptions;
|
|
293
|
+
private userStartCallback?;
|
|
294
294
|
private _start;
|
|
295
295
|
restartCanvasTracking: () => void;
|
|
296
296
|
flushBuffer: (buffer: Message[]) => Promise<unknown>;
|
|
@@ -28,6 +28,12 @@ export default abstract class Observer {
|
|
|
28
28
|
private readonly inlineRemoteCss;
|
|
29
29
|
private readonly inlinerOptions;
|
|
30
30
|
private readonly domParser;
|
|
31
|
+
/**
|
|
32
|
+
* Bumped on every disconnect(). Stale async CSS-inlining callbacks from a
|
|
33
|
+
* previous session (e.g. agent reload → tracker restart) compare against
|
|
34
|
+
* this and bail instead of sending messages that reference vanished node ids.
|
|
35
|
+
*/
|
|
36
|
+
private generation;
|
|
31
37
|
constructor(app: App, isTopContext?: boolean, options?: Options);
|
|
32
38
|
private clear;
|
|
33
39
|
/**
|
|
@@ -172,11 +172,10 @@ export default class App {
|
|
|
172
172
|
parentActive: boolean;
|
|
173
173
|
checkStatus: () => boolean;
|
|
174
174
|
parentCrossDomainFrameListener: (event: MessageEvent) => void;
|
|
175
|
-
/**
|
|
176
|
-
* context ids for iframes,
|
|
177
|
-
* order is not so important as long as its consistent
|
|
178
|
-
* */
|
|
179
175
|
trackedFrames: string[];
|
|
176
|
+
private frameLastSeen;
|
|
177
|
+
private readonly FRAME_STALE_MS;
|
|
178
|
+
private pruneStaleFrames;
|
|
180
179
|
crossDomainIframeListener: (event: MessageEvent) => void;
|
|
181
180
|
/**
|
|
182
181
|
* { command : [remaining iframes] }
|
|
@@ -291,6 +290,7 @@ export default class App {
|
|
|
291
290
|
* */
|
|
292
291
|
uploadOfflineRecording(): Promise<void>;
|
|
293
292
|
prevOpts: StartOptions;
|
|
293
|
+
private userStartCallback?;
|
|
294
294
|
private _start;
|
|
295
295
|
restartCanvasTracking: () => void;
|
|
296
296
|
flushBuffer: (buffer: Message[]) => Promise<unknown>;
|
|
@@ -28,6 +28,12 @@ export default abstract class Observer {
|
|
|
28
28
|
private readonly inlineRemoteCss;
|
|
29
29
|
private readonly inlinerOptions;
|
|
30
30
|
private readonly domParser;
|
|
31
|
+
/**
|
|
32
|
+
* Bumped on every disconnect(). Stale async CSS-inlining callbacks from a
|
|
33
|
+
* previous session (e.g. agent reload → tracker restart) compare against
|
|
34
|
+
* this and bail instead of sending messages that reference vanished node ids.
|
|
35
|
+
*/
|
|
36
|
+
private generation;
|
|
31
37
|
constructor(app: App, isTopContext?: boolean, options?: Options);
|
|
32
38
|
private clear;
|
|
33
39
|
/**
|