@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-rum-api-client",
3
- "version": "2.15.5",
3
+ "version": "2.15.6",
4
4
  "description": "Shared modules of the Spacecat Services - Rum API client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -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
- result.push(...bundles.flatMap(
194
- (b) => b.rumBundles.filter(
195
- (bundle) => !filterBotTraffic || !isBotTraffic(bundle),
196
- ).map(filterEvents(checkpoints)),
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
  }