@adobe/spacecat-shared-rum-api-client 2.43.0 → 2.43.1
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 +6 -0
- package/package.json +1 -1
- package/src/client.js +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-rum-api-client-v2.43.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.43.0...@adobe/spacecat-shared-rum-api-client-v2.43.1) (2026-06-15)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* downgrade expected RUM domainkey 404s from error to debug ([#1678](https://github.com/adobe/spacecat-shared/issues/1678)) ([86c7fdd](https://github.com/adobe/spacecat-shared/commit/86c7fdd5333e8c40b45f7375bc4321e6c36135de))
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-rum-api-client-v2.43.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.42.0...@adobe/spacecat-shared-rum-api-client-v2.43.0) (2026-06-15)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -92,7 +92,9 @@ export default class RUMAPIClient {
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
if (!resp.ok) {
|
|
95
|
-
|
|
95
|
+
const error = new Error(`Error during fetching domainkey for domain '${domain} using admin key. Status: ${resp.status}`);
|
|
96
|
+
error.status = resp.status;
|
|
97
|
+
throw error;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
try {
|
|
@@ -143,7 +145,9 @@ export default class RUMAPIClient {
|
|
|
143
145
|
this.log.debug(`Query "${query}" fetched ${bundles.length} bundles`); // maybe even remove?
|
|
144
146
|
return handler(bundles, opts);
|
|
145
147
|
} catch (e) {
|
|
146
|
-
|
|
148
|
+
const error = new Error(`Query '${query}' failed. Opts: ${JSON.stringify(sanitize(opts))}. Reason: ${e.message}`, { cause: e });
|
|
149
|
+
error.status = e.status;
|
|
150
|
+
throw error;
|
|
147
151
|
}
|
|
148
152
|
}
|
|
149
153
|
|
|
@@ -184,7 +188,9 @@ export default class RUMAPIClient {
|
|
|
184
188
|
|
|
185
189
|
return results;
|
|
186
190
|
} catch (e) {
|
|
187
|
-
|
|
191
|
+
const error = new Error(`Multi query failed. Queries: ${JSON.stringify(queries)}, Opts: ${JSON.stringify(sanitize(opts))}. Reason: ${e.message}`, { cause: e });
|
|
192
|
+
error.status = e.status;
|
|
193
|
+
throw error;
|
|
188
194
|
}
|
|
189
195
|
}
|
|
190
196
|
|
|
@@ -203,7 +209,9 @@ export default class RUMAPIClient {
|
|
|
203
209
|
handler,
|
|
204
210
|
}, this.log);
|
|
205
211
|
} catch (e) {
|
|
206
|
-
|
|
212
|
+
const error = new Error(`Query stream '${query}' failed. Opts: ${JSON.stringify(sanitize(opts))}. Reason: ${e.message}`, { cause: e });
|
|
213
|
+
error.status = e.status;
|
|
214
|
+
throw error;
|
|
207
215
|
}
|
|
208
216
|
}
|
|
209
217
|
}
|