@openreplay/tracker 16.4.3 → 16.4.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.
@@ -14,6 +14,7 @@ import type { Options as NetworkOptions } from './modules/network.js';
14
14
  import type { MouseHandlerOptions } from './modules/mouse.js';
15
15
  import type { SessionInfo } from './app/session.js';
16
16
  import type { CssRulesOptions } from './modules/cssrules.js';
17
+ import type { Options as ViewportOptions } from './modules/viewport.js';
17
18
  import type { StartOptions } from './app/index.js';
18
19
  import type { StartPromiseReturn } from './app/index.js';
19
20
  export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & {
@@ -30,6 +31,7 @@ export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & I
30
31
  };
31
32
  __DISABLE_SECURE_MODE?: boolean;
32
33
  css: CssRulesOptions;
34
+ urls?: Partial<ViewportOptions>;
33
35
  };
34
36
  export default class API {
35
37
  readonly options: Partial<Options>;
@@ -1,2 +1,6 @@
1
1
  import type App from '../app/index.js';
2
- export default function (app: App): void;
2
+ export interface Options {
3
+ urlSanitizer?: (url: string) => string;
4
+ titleSanitizer?: (title: string) => string;
5
+ }
6
+ export default function (app: App, options?: Options): void;
@@ -14,6 +14,7 @@ import type { Options as NetworkOptions } from './modules/network.js';
14
14
  import type { MouseHandlerOptions } from './modules/mouse.js';
15
15
  import type { SessionInfo } from './app/session.js';
16
16
  import type { CssRulesOptions } from './modules/cssrules.js';
17
+ import type { Options as ViewportOptions } from './modules/viewport.js';
17
18
  import type { StartOptions } from './app/index.js';
18
19
  import type { StartPromiseReturn } from './app/index.js';
19
20
  export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & {
@@ -30,6 +31,7 @@ export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & I
30
31
  };
31
32
  __DISABLE_SECURE_MODE?: boolean;
32
33
  css: CssRulesOptions;
34
+ urls?: Partial<ViewportOptions>;
33
35
  };
34
36
  export default class API {
35
37
  readonly options: Partial<Options>;
@@ -1,2 +1,6 @@
1
1
  import type App from '../app/index.js';
2
- export default function (app: App): void;
2
+ export interface Options {
3
+ urlSanitizer?: (url: string) => string;
4
+ titleSanitizer?: (title: string) => string;
5
+ }
6
+ export default function (app: App, options?: Options): void;
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.4.3",
4
+ "version": "16.4.4",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"
@@ -74,7 +74,7 @@
74
74
  "typescript": "^5.6.3"
75
75
  },
76
76
  "dependencies": {
77
- "@openreplay/network-proxy": "^1.1.4",
77
+ "@openreplay/network-proxy": "^1.2.0",
78
78
  "error-stack-parser": "^2.1.4",
79
79
  "error-stack-parser-es": "^0.1.5",
80
80
  "fflate": "^0.8.2",