reactbridge-sdk 0.2.0 → 0.2.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/dist/index.esm.js CHANGED
@@ -1448,7 +1448,7 @@ class AnalyticsAPI {
1448
1448
  getConfigs() {
1449
1449
  return __awaiter(this, void 0, void 0, function* () {
1450
1450
  const baseURL = this.config.baseURL || DEFAULT_BASE_URL;
1451
- const url = `${baseURL}/api/client/analytics/configs`;
1451
+ const url = `${baseURL}/api/analytics/configs`;
1452
1452
  const response = yield fetch(url, {
1453
1453
  method: 'GET',
1454
1454
  headers: Object.assign({ 'X-API-Key': this.config.apiKey }, this.config.headers),
@@ -1467,7 +1467,7 @@ class AnalyticsAPI {
1467
1467
  const baseURL = this.config.baseURL || DEFAULT_BASE_URL;
1468
1468
  const url = `${baseURL}/api/analytics/${analyticsType}/latest`;
1469
1469
  const response = yield fetch(url, {
1470
- method: 'POST',
1470
+ method: 'GET',
1471
1471
  headers: Object.assign({ 'X-API-Key': this.config.apiKey, 'Content-Type': 'application/json' }, this.config.headers),
1472
1472
  });
1473
1473
  if (!response.ok) {