@adobe/spacecat-shared-rum-api-client 2.18.5 → 2.18.7
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 +2 -2
- package/src/common/rum-bundler-client.js +5 -2
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.18.7](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.18.6...@adobe/spacecat-shared-rum-api-client-v2.18.7) (2025-01-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **rum-api-client:** log RUM Bundler requests ([#555](https://github.com/adobe/spacecat-shared/issues/555)) ([9b3ed87](https://github.com/adobe/spacecat-shared/commit/9b3ed87d12d0838ef922d6f373a287b4782dd197))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.18.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.18.5...@adobe/spacecat-shared-rum-api-client-v2.18.6) (2025-01-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency @adobe/rum-distiller to v1.16.1 ([#549](https://github.com/adobe/spacecat-shared/issues/549)) ([6c502f6](https://github.com/adobe/spacecat-shared/commit/6c502f6eadedf9365ff6aa44e1e82b46e7fd72ba)), closes [#8203](https://github.com/adobe/spacecat-shared/issues/8203)
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-rum-api-client-v2.18.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.18.4...@adobe/spacecat-shared-rum-api-client-v2.18.5) (2025-01-17)
|
|
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.18.
|
|
3
|
+
"version": "2.18.7",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Rum API client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@adobe/helix-shared-wrap": "2.0.2",
|
|
40
40
|
"@adobe/helix-universal": "5.0.8",
|
|
41
41
|
"@adobe/spacecat-shared-utils": "1.26.4",
|
|
42
|
-
"@adobe/rum-distiller": "1.16.
|
|
42
|
+
"@adobe/rum-distiller": "1.16.1",
|
|
43
43
|
"aws4": "1.13.2",
|
|
44
44
|
"urijs": "1.19.11"
|
|
45
45
|
},
|
|
@@ -157,7 +157,7 @@ async function mergeBundlesWithSameId(bundles) {
|
|
|
157
157
|
}
|
|
158
158
|
/* c8 ignore end */
|
|
159
159
|
|
|
160
|
-
async function fetchBundles(opts
|
|
160
|
+
async function fetchBundles(opts, log) {
|
|
161
161
|
const {
|
|
162
162
|
domain,
|
|
163
163
|
domainkey,
|
|
@@ -188,7 +188,10 @@ async function fetchBundles(opts = {}) {
|
|
|
188
188
|
|
|
189
189
|
const result = [];
|
|
190
190
|
for (const chunk of chunks) {
|
|
191
|
-
const responses = await Promise.all(chunk.map((url) =>
|
|
191
|
+
const responses = await Promise.all(chunk.map((url) => {
|
|
192
|
+
log.info(`Retrieving RUM bundles. Granularity: ${granularity}. Domain: ${domain}`);
|
|
193
|
+
return fetch(url);
|
|
194
|
+
}));
|
|
192
195
|
const bundles = await Promise.all(responses.map((response) => response.json()));
|
|
193
196
|
|
|
194
197
|
bundles.forEach((b) => {
|
package/src/index.js
CHANGED
|
@@ -60,7 +60,7 @@ export default class RUMAPIClient {
|
|
|
60
60
|
const bundles = await fetchBundles({
|
|
61
61
|
...opts,
|
|
62
62
|
checkpoints,
|
|
63
|
-
});
|
|
63
|
+
}, this.log);
|
|
64
64
|
|
|
65
65
|
this.log.info(`Query "${query}" fetched ${bundles.length} bundles`);
|
|
66
66
|
|
|
@@ -91,7 +91,7 @@ export default class RUMAPIClient {
|
|
|
91
91
|
const bundles = await fetchBundles({
|
|
92
92
|
...opts,
|
|
93
93
|
checkpoints: [...allCheckpoints],
|
|
94
|
-
});
|
|
94
|
+
}, this.log);
|
|
95
95
|
|
|
96
96
|
const results = {};
|
|
97
97
|
|