@adobe/spacecat-shared-rum-api-client 2.15.5 → 2.15.6
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/common/rum-bundler-client.js +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.15.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.15.5...@adobe/spacecat-shared-rum-api-client-v2.15.6) (2024-12-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **rum-api-client:** destructuring of rum bundles causes issues ([#481](https://github.com/adobe/spacecat-shared/issues/481)) ([be5b5d3](https://github.com/adobe/spacecat-shared/commit/be5b5d38432575b1becb6f18fb41f9c1f7316c15))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-rum-api-client-v2.15.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.15.4...@adobe/spacecat-shared-rum-api-client-v2.15.5) (2024-12-08)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -190,11 +190,13 @@ async function fetchBundles(opts = {}) {
|
|
|
190
190
|
for (const chunk of chunks) {
|
|
191
191
|
const responses = await Promise.all(chunk.map((url) => fetch(url)));
|
|
192
192
|
const bundles = await Promise.all(responses.map((response) => response.json()));
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
|
|
194
|
+
bundles.forEach((b) => {
|
|
195
|
+
b.rumBundles
|
|
196
|
+
.filter((bundle) => !filterBotTraffic || !isBotTraffic(bundle))
|
|
197
|
+
.map(filterEvents(checkpoints))
|
|
198
|
+
.forEach((bundle) => result.push(bundle));
|
|
199
|
+
});
|
|
198
200
|
}
|
|
199
201
|
return mergeBundlesWithSameId(result);
|
|
200
202
|
}
|