@adobe/spacecat-shared-rum-api-client 2.23.1 → 2.23.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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/functions/form-vitals.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.23.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.23.1...@adobe/spacecat-shared-rum-api-client-v2.23.2) (2025-04-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* changing user agent categorization for forms ([#705](https://github.com/adobe/spacecat-shared/issues/705)) ([239a186](https://github.com/adobe/spacecat-shared/commit/239a18657607ba9fcc041c9b90342d173cc5b81c))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-rum-api-client-v2.23.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.23.0...@adobe/spacecat-shared-rum-api-client-v2.23.1) (2025-04-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -166,7 +166,12 @@ function handler(bundles) {
|
|
|
166
166
|
const match = source.match(/form[#.](\w+)/);
|
|
167
167
|
const formsource = match ? match[1] : 'unknown';
|
|
168
168
|
// groups by url and user agent
|
|
169
|
-
dataChunks.addFacet('urlUserAgents', (bundle) =>
|
|
169
|
+
dataChunks.addFacet('urlUserAgents', (bundle) => {
|
|
170
|
+
// eslint-disable-next-line no-nested-ternary
|
|
171
|
+
const deviceType = bundle.userAgent.startsWith('desktop') ? 'desktop' : bundle.userAgent.startsWith('mobile') ? 'mobile' : 'other';
|
|
172
|
+
return generateKey(bundle.url, deviceType);
|
|
173
|
+
});
|
|
174
|
+
|
|
170
175
|
METRICS.forEach((metric) => dataChunks.addSeries(metric, metricFns[metric](formsource)));
|
|
171
176
|
// aggregates metrics per group (url and user agent)
|
|
172
177
|
dataChunks.facets.urlUserAgents.reduce((acc, { value, metrics, weight }) => {
|