@adobe/spacecat-shared-rum-api-client 2.38.6 → 2.38.7
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 +12 -0
- package/package.json +1 -1
- package/src/common/traffic.js +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.38.7](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.38.6...@adobe/spacecat-shared-rum-api-client-v2.38.7) (2025-10-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **traffic-attribution:** handle direct referrers from rum-distiller ([#1061](https://github.com/adobe/spacecat-shared/issues/1061)) ([99b1262](https://github.com/adobe/spacecat-shared/commit/99b1262638c978579770f63715ed1dd5090bffa4))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Reverts
|
|
10
|
+
|
|
11
|
+
* Revert "fix(traffic-attribution): handle non standard referrers ([#1040](https://github.com/adobe/spacecat-shared/issues/1040))" ([3686145](https://github.com/adobe/spacecat-shared/commit/3686145d16b0cc39d0da88c0bd2ca10dc249f93c))
|
|
12
|
+
|
|
1
13
|
# [@adobe/spacecat-shared-rum-api-client-v2.38.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.38.5...@adobe/spacecat-shared-rum-api-client-v2.38.6) (2025-10-28)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
package/src/common/traffic.js
CHANGED
|
@@ -26,9 +26,17 @@ import URI from 'urijs';
|
|
|
26
26
|
*/
|
|
27
27
|
export function getSecondLevelDomain(url) {
|
|
28
28
|
if (!hasText(url)) return url;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (url === '(direct)') return '';
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
const uri = new URI(prependSchema(url));
|
|
33
|
+
const tld = uri.tld();
|
|
34
|
+
return uri.hostname().split(`.${tld}`)[0];
|
|
35
|
+
/* c8 ignore next 4 */
|
|
36
|
+
} catch (error) {
|
|
37
|
+
// future-proof for the cases where url cannot be parsed for some reason
|
|
38
|
+
return url;
|
|
39
|
+
}
|
|
32
40
|
}
|
|
33
41
|
|
|
34
42
|
/*
|