@elliemae/pui-logrocket 1.0.0 → 1.0.2

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.
@@ -36,6 +36,13 @@ var import_logrocket = __toESM(require("logrocket"));
36
36
  var import_logrocket_react = __toESM(require("logrocket-react"));
37
37
  const setupLogRocketReact = import_logrocket_react.default.default;
38
38
  const defaultOptions = {
39
+ browser: {
40
+ urlSanitizer: (url) => {
41
+ let sanitizedUrl = url;
42
+ sanitizedUrl = sanitizedUrl.replace(/code=([^&]*)/, "code=REDACTED");
43
+ return sanitizedUrl;
44
+ }
45
+ },
39
46
  dom: {
40
47
  inputSanitizer: "lipsum"
41
48
  },
@@ -63,7 +70,9 @@ const defaultOptions = {
63
70
  },
64
71
  release: process?.env?.APP_VERSION,
65
72
  // app sdk based applications use this env variable to specify the app code version
66
- rootHostname: ".ice.com"
73
+ rootHostname: window.emui?.logRocketConfig?.rootHostname ?? ".ice.com",
74
+ childDomains: window.emui?.logRocketConfig?.childDomains ?? null,
75
+ parentDomain: window.emui?.logRocketConfig?.parentDomain ?? null
67
76
  };
68
77
  const initLogRocket = (id, options) => {
69
78
  const { isReact = true, ...rest } = options ?? {};
@@ -2,6 +2,13 @@ import LogRocket from "logrocket";
2
2
  import logRocketReact from "logrocket-react";
3
3
  const setupLogRocketReact = logRocketReact.default;
4
4
  const defaultOptions = {
5
+ browser: {
6
+ urlSanitizer: (url) => {
7
+ let sanitizedUrl = url;
8
+ sanitizedUrl = sanitizedUrl.replace(/code=([^&]*)/, "code=REDACTED");
9
+ return sanitizedUrl;
10
+ }
11
+ },
5
12
  dom: {
6
13
  inputSanitizer: "lipsum"
7
14
  },
@@ -29,7 +36,9 @@ const defaultOptions = {
29
36
  },
30
37
  release: process?.env?.APP_VERSION,
31
38
  // app sdk based applications use this env variable to specify the app code version
32
- rootHostname: ".ice.com"
39
+ rootHostname: window.emui?.logRocketConfig?.rootHostname ?? ".ice.com",
40
+ childDomains: window.emui?.logRocketConfig?.childDomains ?? null,
41
+ parentDomain: window.emui?.logRocketConfig?.parentDomain ?? null
33
42
  };
34
43
  const initLogRocket = (id, options) => {
35
44
  const { isReact = true, ...rest } = options ?? {};
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Library Boilerplate</title><script defer="defer" src="js/emuiLogrocket.dabbb93c8775bf0a4289.js"></script></head><body></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Library Boilerplate</title><script defer="defer" src="js/emuiLogrocket.86ccf84c21fc8954ce9e.js"></script></head><body></body></html>