@brainfish-ai/web-tracker 0.0.8 → 0.0.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.
@@ -0,0 +1 @@
1
+ export default function canDiscover(recordingBlocklist: string[]): boolean;
@@ -6,6 +6,7 @@ export type TrackerOptions = TrackerSdkOptions & {
6
6
  trackAttributes?: boolean;
7
7
  trackHashChanges?: boolean;
8
8
  enableRecording?: boolean;
9
+ recordingBlocklist?: string[];
9
10
  };
10
11
  export declare const VERSION: string;
11
12
  export declare class Tracker extends TrackerSdk {
@@ -14,6 +15,7 @@ export declare class Tracker extends TrackerSdk {
14
15
  private debounceTimer;
15
16
  private readonly agent;
16
17
  private readonly sessionManager;
18
+ private readonly recordingBlocklist;
17
19
  constructor(options: TrackerOptions);
18
20
  private debounce;
19
21
  private isServer;
@@ -8,10 +8,12 @@ export default class Agent {
8
8
  MAX_IDLE_TIME: any;
9
9
  timer: Timer | undefined;
10
10
  sendEvents: ((events: any[]) => Promise<void>) | undefined;
11
+ recordingBlocklist: string[];
11
12
  constructor();
12
- start({ endpoint, sendEvents, }: {
13
+ start({ endpoint, sendEvents, recordingBlocklist, }: {
13
14
  endpoint: string;
14
15
  sendEvents: (events: any[]) => Promise<void>;
16
+ recordingBlocklist: string[];
15
17
  }): Promise<void>;
16
18
  handleTimeout(): void;
17
19
  takeFullSnapshot(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainfish-ai/web-tracker",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "dist/index.js",
5
5
  "description": "Brainfish Tracker for Web",
6
6
  "files": [
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "@brainfish-ai/tracker-sdk": "0.0.1-alpha.6",
31
31
  "html-to-image": "^1.11.11",
32
+ "path-to-regexp": "^6.3.0",
32
33
  "rrweb": "^2.0.0-alpha.4"
33
34
  },
34
35
  "keywords": [