@adobe/helix-rum-enhancer 1.19.0 → 1.20.0
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
|
+
# [1.20.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.19.1...v1.20.0) (2024-06-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **ads:** enable ads feature flag ([1b9f168](https://github.com/adobe/helix-rum-enhancer/commit/1b9f16839cd6e9389b96018261391f1e824cc109))
|
|
7
|
+
|
|
8
|
+
## [1.19.1](https://github.com/adobe/helix-rum-enhancer/compare/v1.19.0...v1.19.1) (2024-06-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* no this in arrow functions ([#182](https://github.com/adobe/helix-rum-enhancer/issues/182)) ([b5922ac](https://github.com/adobe/helix-rum-enhancer/commit/b5922ac6cd2d7dd14a18c309f118fe6622eea913))
|
|
14
|
+
|
|
1
15
|
# [1.19.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.18.2...v1.19.0) (2024-05-31)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
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
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
const { sampleRUM } = window.hlx.rum;
|
|
13
13
|
|
|
14
14
|
const fflags = {
|
|
15
|
-
has: (flag) =>
|
|
15
|
+
has: (flag) => fflags[flag].indexOf(Array.from(window.origin)
|
|
16
16
|
.map((a) => a.charCodeAt(0))
|
|
17
17
|
.reduce((a, b) => a + b, 1) % 1371) !== -1,
|
|
18
|
-
enabled: (flag, callback) =>
|
|
19
|
-
disabled: (flag, callback) => !
|
|
18
|
+
enabled: (flag, callback) => fflags.has(flag) && callback(),
|
|
19
|
+
disabled: (flag, callback) => !fflags.has(flag) && callback(),
|
|
20
20
|
onetrust: [543, 770, 1136],
|
|
21
|
-
ads: [1339],
|
|
21
|
+
ads: [1339, 1198],
|
|
22
22
|
email: [1339],
|
|
23
23
|
};
|
|
24
24
|
|