@adobe/spacecat-shared-rum-api-client 1.4.4 → 1.5.0

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-v1.5.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.4...@adobe/spacecat-shared-rum-api-client-v1.5.0) (2024-02-06)
2
+
3
+
4
+ ### Features
5
+
6
+ * rum client createRUMURL function ([0c68dcc](https://github.com/adobe/spacecat-shared/commit/0c68dccdf494c89a938cdfe2a841d2965813b0eb))
7
+
1
8
  # [@adobe/spacecat-shared-rum-api-client-v1.4.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.3...@adobe/spacecat-shared-rum-api-client-v1.4.4) (2024-02-05)
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": "1.4.4",
3
+ "version": "1.5.0",
4
4
  "description": "Shared modules of the Spacecat Services - Rum API client",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -120,17 +120,21 @@ export default class RUMAPIClient {
120
120
  );
121
121
  }
122
122
 
123
- async getRUMDashboard(params = {}) {
124
- return sendRequest(createUrl(
123
+ createRUMURL(params = {}) {
124
+ return createUrl(
125
125
  APIS.RUM_DASHBOARD,
126
- { domainkey: this.domainkey, ...RUM_DEFAULT_PARAMS, ...params },
127
- ));
126
+ {
127
+ domainkey: this.domainkey, ...RUM_DEFAULT_PARAMS, ...params,
128
+ },
129
+ );
130
+ }
131
+
132
+ async getRUMDashboard(params = {}) {
133
+ return sendRequest(this.createRUMURL(params));
128
134
  }
129
135
 
130
136
  async get404Sources(params = {}) {
131
- return sendRequest(this.create404URL(
132
- params,
133
- ));
137
+ return sendRequest(this.create404URL(params));
134
138
  }
135
139
 
136
140
  async getDomainList(params = {}) {