@openreplay/tracker 16.1.0-beta.8 → 16.1.0

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.
@@ -171,6 +171,7 @@ export default class App {
171
171
  private pageFrames;
172
172
  private frameOderNumber;
173
173
  private features;
174
+ private emptyBatchCounter;
174
175
  constructor(projectKey: string, sessionToken: string | undefined, options: Partial<Options>, signalError: (error: string, apis: string[]) => void, insideIframe: boolean);
175
176
  /** used by child iframes for crossdomain only */
176
177
  parentActive: boolean;
@@ -28,18 +28,23 @@ export interface Options {
28
28
  *
29
29
  * */
30
30
  domSanitizer?: (node: Element) => SanitizeLevel;
31
+ /**
32
+ * private by default mode that will mask all elements not marked by data-openreplay-unmask
33
+ * */
34
+ privateMode?: boolean;
31
35
  }
32
36
  export declare const stringWiper: (input: string) => string;
33
37
  export default class Sanitizer {
34
38
  private readonly obscured;
35
39
  private readonly hidden;
36
40
  private readonly options;
41
+ readonly privateMode: boolean;
37
42
  private readonly app;
38
43
  constructor(params: {
39
44
  app: App;
40
45
  options?: Partial<Options>;
41
46
  });
42
- handleNode(id: number, parentID: number, node: Node): void;
47
+ handleNode(id: number, parentID: number, node: Node): Set<number> | undefined;
43
48
  sanitize(id: number, data: string): string;
44
49
  isObscured(id: number): boolean;
45
50
  isHidden(id: number): boolean;
@@ -171,6 +171,7 @@ export default class App {
171
171
  private pageFrames;
172
172
  private frameOderNumber;
173
173
  private features;
174
+ private emptyBatchCounter;
174
175
  constructor(projectKey: string, sessionToken: string | undefined, options: Partial<Options>, signalError: (error: string, apis: string[]) => void, insideIframe: boolean);
175
176
  /** used by child iframes for crossdomain only */
176
177
  parentActive: boolean;
@@ -28,18 +28,23 @@ export interface Options {
28
28
  *
29
29
  * */
30
30
  domSanitizer?: (node: Element) => SanitizeLevel;
31
+ /**
32
+ * private by default mode that will mask all elements not marked by data-openreplay-unmask
33
+ * */
34
+ privateMode?: boolean;
31
35
  }
32
36
  export declare const stringWiper: (input: string) => string;
33
37
  export default class Sanitizer {
34
38
  private readonly obscured;
35
39
  private readonly hidden;
36
40
  private readonly options;
41
+ readonly privateMode: boolean;
37
42
  private readonly app;
38
43
  constructor(params: {
39
44
  app: App;
40
45
  options?: Partial<Options>;
41
46
  });
42
- handleNode(id: number, parentID: number, node: Node): void;
47
+ handleNode(id: number, parentID: number, node: Node): Set<number> | undefined;
43
48
  sanitize(id: number, data: string): string;
44
49
  isObscured(id: number): boolean;
45
50
  isHidden(id: number): boolean;
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": "16.1.0-beta.8",
4
+ "version": "16.1.0",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@medv/finder": "^4.0.2",
79
- "@openreplay/network-proxy": "^1.0.5",
79
+ "@openreplay/network-proxy": "^1.1.0",
80
80
  "error-stack-parser": "^2.0.6",
81
81
  "error-stack-parser-es": "^0.1.5",
82
82
  "fflate": "^0.8.2",