@adobe/spacecat-shared-rum-api-client 1.4.0 → 1.4.2
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 +1 -1
- package/src/index.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v1.4.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.1...@adobe/spacecat-shared-rum-api-client-v1.4.2) (2024-01-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* run 404 rum sources query with interval 1 ([6244a5d](https://github.com/adobe/spacecat-shared/commit/6244a5db9b8ef048f56b261a62a839c620a1ec29))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-rum-api-client-v1.4.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.0...@adobe/spacecat-shared-rum-api-client-v1.4.1) (2024-01-26)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add missing type declaration for SLACK_TARGETS ([#113](https://github.com/adobe/spacecat-shared/issues/113)) ([1658513](https://github.com/adobe/spacecat-shared/commit/1658513bc29b618f35ce31dfff88d26110525c7f))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-rum-api-client-v1.4.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.3.6...@adobe/spacecat-shared-rum-api-client-v1.4.0) (2024-01-24)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -36,6 +36,13 @@ export const RUM_DEFAULT_PARAMS = {
|
|
|
36
36
|
limit: 101,
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
export const NOT_FOUND_DEFAULT_PARAMS = {
|
|
40
|
+
interval: 1,
|
|
41
|
+
offset: 0,
|
|
42
|
+
limit: 101,
|
|
43
|
+
checkpoint: 404,
|
|
44
|
+
};
|
|
45
|
+
|
|
39
46
|
export async function sendRequest(url, opts) {
|
|
40
47
|
let respJson;
|
|
41
48
|
try {
|
|
@@ -110,7 +117,7 @@ export default class RUMAPIClient {
|
|
|
110
117
|
return createUrl(
|
|
111
118
|
APIS.RUM_SOURCES,
|
|
112
119
|
{
|
|
113
|
-
domainkey: this.domainkey, ...
|
|
120
|
+
domainkey: this.domainkey, ...NOT_FOUND_DEFAULT_PARAMS, ...params,
|
|
114
121
|
},
|
|
115
122
|
);
|
|
116
123
|
}
|