@tracelog/lib 0.0.2 → 0.0.3

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.
@@ -887,7 +887,7 @@ class It extends p {
887
887
  }
888
888
  prepareRequest(e) {
889
889
  return {
890
- url: `${this.get("config").id === C.HttpLocal ? window.location.origin : this.get("apiUrl") ?? Ye}/events`,
890
+ url: `${this.get("config").id === C.HttpLocal ? window.location.origin : this.get("apiUrl") ?? Ye}/collect`,
891
891
  payload: JSON.stringify(e)
892
892
  };
893
893
  }
@@ -130,7 +130,7 @@ class SenderManager extends state_manager_1.StateManager {
130
130
  const useLocalServer = this.get('config').id === types_1.SpecialProjectId.HttpLocal;
131
131
  const baseUrl = useLocalServer ? window.location.origin : (this.get('apiUrl') ?? constants_1.API_BASE_URL);
132
132
  return {
133
- url: `${baseUrl}/events`,
133
+ url: `${baseUrl}/collect`,
134
134
  payload: JSON.stringify(body),
135
135
  };
136
136
  }
@@ -127,7 +127,7 @@ export class SenderManager extends StateManager {
127
127
  const useLocalServer = this.get('config').id === SpecialProjectId.HttpLocal;
128
128
  const baseUrl = useLocalServer ? window.location.origin : (this.get('apiUrl') ?? API_BASE_URL);
129
129
  return {
130
- url: `${baseUrl}/events`,
130
+ url: `${baseUrl}/collect`,
131
131
  payload: JSON.stringify(body),
132
132
  };
133
133
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tracelog/lib",
3
3
  "description": "JavaScript library for web analytics and real-time event tracking",
4
4
  "license": "MIT",
5
- "version": "0.0.2",
5
+ "version": "0.0.3",
6
6
  "main": "./dist/cjs/public-api.js",
7
7
  "module": "./dist/esm/public-api.js",
8
8
  "types": "./dist/esm/public-api.d.ts",