@openreplay/tracker 17.2.8 → 17.2.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/dist/cjs/entry.js +69 -14
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +69 -14
- 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 +69 -14
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +69 -14
- 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
|
@@ -171,11 +171,10 @@ export default class App {
|
|
|
171
171
|
parentActive: boolean;
|
|
172
172
|
checkStatus: () => boolean;
|
|
173
173
|
parentCrossDomainFrameListener: (event: MessageEvent) => void;
|
|
174
|
-
/**
|
|
175
|
-
* context ids for iframes,
|
|
176
|
-
* order is not so important as long as its consistent
|
|
177
|
-
* */
|
|
178
174
|
trackedFrames: string[];
|
|
175
|
+
private frameLastSeen;
|
|
176
|
+
private readonly FRAME_STALE_MS;
|
|
177
|
+
private pruneStaleFrames;
|
|
179
178
|
crossDomainIframeListener: (event: MessageEvent) => void;
|
|
180
179
|
/**
|
|
181
180
|
* { command : [remaining iframes] }
|
|
@@ -290,6 +289,7 @@ export default class App {
|
|
|
290
289
|
* */
|
|
291
290
|
uploadOfflineRecording(): Promise<void>;
|
|
292
291
|
prevOpts: StartOptions;
|
|
292
|
+
private userStartCallback?;
|
|
293
293
|
private _start;
|
|
294
294
|
restartCanvasTracking: () => void;
|
|
295
295
|
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
|
/**
|
|
@@ -171,11 +171,10 @@ export default class App {
|
|
|
171
171
|
parentActive: boolean;
|
|
172
172
|
checkStatus: () => boolean;
|
|
173
173
|
parentCrossDomainFrameListener: (event: MessageEvent) => void;
|
|
174
|
-
/**
|
|
175
|
-
* context ids for iframes,
|
|
176
|
-
* order is not so important as long as its consistent
|
|
177
|
-
* */
|
|
178
174
|
trackedFrames: string[];
|
|
175
|
+
private frameLastSeen;
|
|
176
|
+
private readonly FRAME_STALE_MS;
|
|
177
|
+
private pruneStaleFrames;
|
|
179
178
|
crossDomainIframeListener: (event: MessageEvent) => void;
|
|
180
179
|
/**
|
|
181
180
|
* { command : [remaining iframes] }
|
|
@@ -290,6 +289,7 @@ export default class App {
|
|
|
290
289
|
* */
|
|
291
290
|
uploadOfflineRecording(): Promise<void>;
|
|
292
291
|
prevOpts: StartOptions;
|
|
292
|
+
private userStartCallback?;
|
|
293
293
|
private _start;
|
|
294
294
|
restartCanvasTracking: () => void;
|
|
295
295
|
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
|
/**
|