@adobe/spacecat-shared-rum-api-client 2.38.3 → 2.38.5
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 +3 -3
- package/src/common/traffic.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.38.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.38.4...@adobe/spacecat-shared-rum-api-client-v2.38.5) (2025-10-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#1046](https://github.com/adobe/spacecat-shared/issues/1046)) ([bb6e118](https://github.com/adobe/spacecat-shared/commit/bb6e11886b323f73624fcb9e3c2b14d318aa00c9))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.38.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.38.3...@adobe/spacecat-shared-rum-api-client-v2.38.4) (2025-10-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **traffic-attribution:** handle non standard referrers ([#1040](https://github.com/adobe/spacecat-shared/issues/1040)) ([d0451f5](https://github.com/adobe/spacecat-shared/commit/d0451f58fd1afd46d00652b754924da62c4203d1))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-rum-api-client-v2.38.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.38.2...@adobe/spacecat-shared-rum-api-client-v2.38.3) (2025-10-18)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-rum-api-client",
|
|
3
|
-
"version": "2.38.
|
|
3
|
+
"version": "2.38.5",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Rum API client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"urijs": "1.19.11"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"chai": "6.0
|
|
47
|
+
"chai": "6.2.0",
|
|
48
48
|
"chai-as-promised": "8.0.2",
|
|
49
49
|
"nock": "14.0.10",
|
|
50
50
|
"sinon": "21.0.0",
|
|
51
51
|
"sinon-chai": "4.0.1",
|
|
52
|
-
"typescript": "5.9.
|
|
52
|
+
"typescript": "5.9.3"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/common/traffic.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/* eslint-disable object-curly-newline */
|
|
13
13
|
|
|
14
|
-
import { hasText } from '@adobe/spacecat-shared-utils';
|
|
14
|
+
import { hasText, prependSchema } from '@adobe/spacecat-shared-utils';
|
|
15
15
|
import URI from 'urijs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -26,7 +26,7 @@ import URI from 'urijs';
|
|
|
26
26
|
*/
|
|
27
27
|
export function getSecondLevelDomain(url) {
|
|
28
28
|
if (!hasText(url)) return url;
|
|
29
|
-
const uri = new URI(url);
|
|
29
|
+
const uri = new URI(prependSchema(url));
|
|
30
30
|
const tld = uri.tld();
|
|
31
31
|
return uri.hostname().split(`.${tld}`)[0];
|
|
32
32
|
}
|