@adobe/spacecat-shared-rum-api-client 2.24.2 → 2.24.3
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 +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.24.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.24.2...@adobe/spacecat-shared-rum-api-client-v2.24.3) (2025-05-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* detect iframe forms; bug fix for duplicated iframes with # ([#736](https://github.com/adobe/spacecat-shared/issues/736)) ([5243220](https://github.com/adobe/spacecat-shared/commit/524322096233e393f59899deb9de24bdab201275))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-rum-api-client-v2.24.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.24.1...@adobe/spacecat-shared-rum-api-client-v2.24.2) (2025-05-11)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -214,6 +214,17 @@ function handler(bundles) {
|
|
|
214
214
|
});
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
+
// remove duplicate urls with '#'
|
|
218
|
+
const iframeParentMapWithoutDuplicates = Object.fromEntries(
|
|
219
|
+
Object.entries(iframeParentMap).filter(([key]) => {
|
|
220
|
+
if (key.endsWith('#')) {
|
|
221
|
+
const baseUrl = key.slice(0, -1);
|
|
222
|
+
return !Object.prototype.hasOwnProperty.call(iframeParentMap, baseUrl);
|
|
223
|
+
}
|
|
224
|
+
return true;
|
|
225
|
+
}),
|
|
226
|
+
);
|
|
227
|
+
|
|
217
228
|
// traffic acquisition data per url - uncomment this when required
|
|
218
229
|
// const trafficByUrl = trafficAcquisition.handler(bundles);
|
|
219
230
|
// const trafficByUrlMap = Object.fromEntries(
|
|
@@ -256,7 +267,7 @@ function handler(bundles) {
|
|
|
256
267
|
const iframeParentVitalsMap = getParentPageVitalsGroupedByIFrame(
|
|
257
268
|
bundles,
|
|
258
269
|
dataChunks,
|
|
259
|
-
|
|
270
|
+
iframeParentMapWithoutDuplicates,
|
|
260
271
|
);
|
|
261
272
|
|
|
262
273
|
// populate internal navigation data
|