@openreplay/tracker 17.2.3 → 17.2.4

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.
@@ -15,13 +15,15 @@ declare class Batcher {
15
15
  private readonly backendUrl;
16
16
  private readonly getToken;
17
17
  private readonly init;
18
+ private readonly standalone;
18
19
  private readonly autosendInterval;
19
20
  private readonly retryTimeout;
20
21
  private readonly retryLimit;
21
22
  private readonly apiEdp;
22
23
  private batch;
23
24
  private intervalId;
24
- constructor(backendUrl: string, getToken: () => string | null, init: () => Promise<void>);
25
+ private stopped;
26
+ constructor(backendUrl: string, getToken: () => string | null, init: () => Promise<void>, standalone: boolean);
25
27
  getBatches(): {
26
28
  data: {
27
29
  user_actions: PeopleEvent[];
@@ -38,8 +40,11 @@ declare class Batcher {
38
40
  dedupePeopleEvents(): PeopleEvent[];
39
41
  private squashPeopleEvents;
40
42
  private sendBatch;
43
+ private paused;
44
+ private onVisibilityChange;
41
45
  startAutosend(): void;
42
46
  flush(): void;
43
47
  stop(): void;
48
+ restart(): void;
44
49
  }
45
50
  export default Batcher;
@@ -51,6 +51,11 @@ export default class Analytics {
51
51
  _getToken: () => string | null;
52
52
  _getTimestamp: () => number;
53
53
  init: () => Promise<void>;
54
+ /**
55
+ * Used by tracker when running in blundled mode
56
+ */
57
+ onStart: () => void;
58
+ onStop: () => void;
54
59
  reset: () => void;
55
60
  /**
56
61
  * COMPATIBILITY LAYER
@@ -15,13 +15,15 @@ declare class Batcher {
15
15
  private readonly backendUrl;
16
16
  private readonly getToken;
17
17
  private readonly init;
18
+ private readonly standalone;
18
19
  private readonly autosendInterval;
19
20
  private readonly retryTimeout;
20
21
  private readonly retryLimit;
21
22
  private readonly apiEdp;
22
23
  private batch;
23
24
  private intervalId;
24
- constructor(backendUrl: string, getToken: () => string | null, init: () => Promise<void>);
25
+ private stopped;
26
+ constructor(backendUrl: string, getToken: () => string | null, init: () => Promise<void>, standalone: boolean);
25
27
  getBatches(): {
26
28
  data: {
27
29
  user_actions: PeopleEvent[];
@@ -38,8 +40,11 @@ declare class Batcher {
38
40
  dedupePeopleEvents(): PeopleEvent[];
39
41
  private squashPeopleEvents;
40
42
  private sendBatch;
43
+ private paused;
44
+ private onVisibilityChange;
41
45
  startAutosend(): void;
42
46
  flush(): void;
43
47
  stop(): void;
48
+ restart(): void;
44
49
  }
45
50
  export default Batcher;
@@ -51,6 +51,11 @@ export default class Analytics {
51
51
  _getToken: () => string | null;
52
52
  _getTimestamp: () => number;
53
53
  init: () => Promise<void>;
54
+ /**
55
+ * Used by tracker when running in blundled mode
56
+ */
57
+ onStart: () => void;
58
+ onStop: () => void;
54
59
  reset: () => void;
55
60
  /**
56
61
  * COMPATIBILITY LAYER
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "17.2.3",
4
+ "version": "17.2.4",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"