@adobe/helix-rum-enhancer 2.11.2 → 2.11.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.
- package/CHANGELOG.md +14 -0
- package/package.json +2 -2
- package/src/index.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.11.4](https://github.com/adobe/helix-rum-enhancer/compare/v2.11.3...v2.11.4) (2024-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **fflags:** use correct domain ([3ab8f58](https://github.com/adobe/helix-rum-enhancer/commit/3ab8f583093d5b2e8314576d69debdb281919057))
|
|
7
|
+
|
|
8
|
+
## [2.11.3](https://github.com/adobe/helix-rum-enhancer/compare/v2.11.2...v2.11.3) (2024-06-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add referer ([#190](https://github.com/adobe/helix-rum-enhancer/issues/190)) ([68b75d6](https://github.com/adobe/helix-rum-enhancer/commit/68b75d6f7bdd808adf2ecd941f5dceb7805de45c))
|
|
14
|
+
|
|
1
15
|
## [2.11.2](https://github.com/adobe/helix-rum-enhancer/compare/v2.11.1...v2.11.2) (2024-06-04)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.4",
|
|
4
4
|
"description": "Helix RUM Enhancer",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lint-staged": "15.2.5",
|
|
45
45
|
"mocha": "10.4.0",
|
|
46
46
|
"mocha-multi-reporters": "1.5.1",
|
|
47
|
-
"semantic-release": "
|
|
47
|
+
"semantic-release": "24.0.0"
|
|
48
48
|
},
|
|
49
49
|
"lint-staged": {
|
|
50
50
|
"*.js": "eslint",
|
package/src/index.js
CHANGED
|
@@ -21,8 +21,8 @@ const fflags = {
|
|
|
21
21
|
enabled: (flag, callback) => fflags.has(flag) && callback(),
|
|
22
22
|
disabled: (flag, callback) => !fflags.has(flag) && callback(),
|
|
23
23
|
onetrust: [543, 770, 1136],
|
|
24
|
-
ads: [
|
|
25
|
-
email: [
|
|
24
|
+
ads: [1139, 543],
|
|
25
|
+
email: [1139, 543],
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
const urlSanitizers = {
|
|
@@ -109,8 +109,8 @@ function trackCheckpoint(checkpoint, data, t) {
|
|
|
109
109
|
if (optedIn(checkpoint, data) && isSelected) {
|
|
110
110
|
const sendPing = (pdata = data) => {
|
|
111
111
|
// eslint-disable-next-line object-curly-newline, max-len
|
|
112
|
-
const body = JSON.stringify({ weight, id,
|
|
113
|
-
const { href: url, origin} = new URL(`.rum/${weight}`, sampleRUM.collectBaseURL || sampleRUM.baseURL);
|
|
112
|
+
const body = JSON.stringify({ weight, id, referer: urlSanitizers[window.hlx.RUM_MASK_URL || 'path'](), checkpoint, t, ...data }, KNOWN_PROPERTIES);
|
|
113
|
+
const { href: url, origin } = new URL(`.rum/${weight}`, sampleRUM.collectBaseURL || sampleRUM.baseURL);
|
|
114
114
|
if (window.location.origin === origin) {
|
|
115
115
|
const headers = { type: 'application/json' };
|
|
116
116
|
navigator.sendBeacon(url, new Blob([body], headers));
|