@brainfish-ai/web-tracker 0.0.9 → 0.0.11-alpha.1
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/index.cjs.js +10 -10
- package/dist/index.cjs.js.gz +0 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +251 -244
- package/dist/index.js.gz +0 -0
- package/dist/index.js.map +1 -1
- package/dist/src/common/canDiscover.d.ts +8 -1
- package/dist/src/common/isLocal.d.ts +5 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/record/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Determines if the current page can be discovered for recording purposes.
|
|
3
|
+
*
|
|
4
|
+
* @param recordingBlocklist - List of path patterns that should not be recorded
|
|
5
|
+
* @param allowLocalhostRecording - Override to allow recording on localhost/127.0.0.1
|
|
6
|
+
* @returns boolean - true if the current page can be discovered, false otherwise
|
|
7
|
+
*/
|
|
8
|
+
export default function canDiscover(recordingBlocklist: string[], allowLocalhostRecording?: boolean): boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type TrackerOptions = TrackerSdkOptions & {
|
|
|
7
7
|
trackHashChanges?: boolean;
|
|
8
8
|
enableRecording?: boolean;
|
|
9
9
|
recordingBlocklist?: string[];
|
|
10
|
+
_allowLocalhostRecording?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export declare const VERSION: string;
|
|
12
13
|
export declare class Tracker extends TrackerSdk {
|
|
@@ -9,11 +9,13 @@ export default class Agent {
|
|
|
9
9
|
timer: Timer | undefined;
|
|
10
10
|
sendEvents: ((events: any[]) => Promise<void>) | undefined;
|
|
11
11
|
recordingBlocklist: string[];
|
|
12
|
+
_allowLocalhostRecording?: boolean;
|
|
12
13
|
constructor();
|
|
13
|
-
start({ endpoint, sendEvents, recordingBlocklist, }: {
|
|
14
|
+
start({ endpoint, sendEvents, recordingBlocklist, _allowLocalhostRecording, }: {
|
|
14
15
|
endpoint: string;
|
|
15
16
|
sendEvents: (events: any[]) => Promise<void>;
|
|
16
17
|
recordingBlocklist: string[];
|
|
18
|
+
_allowLocalhostRecording?: boolean;
|
|
17
19
|
}): Promise<void>;
|
|
18
20
|
handleTimeout(): void;
|
|
19
21
|
takeFullSnapshot(): void;
|