@obtrace/browser 1.0.1 → 2.0.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.
@@ -3,17 +3,10 @@ export function initViteBrowserSDK(config) {
3
3
  return initBrowserSDK(config);
4
4
  }
5
5
  export function createViteConfigFromImportMetaEnv(env, base) {
6
- const apiKey = env.VITE_OBTRACE_API_KEY ?? "";
7
- const ingestBaseUrl = env.VITE_OBTRACE_INGEST_BASE_URL || "https://ingest.obtrace.ai";
8
- const serviceName = base.serviceName ?? env.VITE_OBTRACE_SERVICE_NAME ?? "vite-app";
6
+ const apiKey = env.VITE_OBTRACE_PUBLIC_KEY ?? env.VITE_OBTRACE_API_KEY ?? "";
9
7
  return {
10
8
  ...base,
11
9
  apiKey,
12
- ingestBaseUrl,
13
- serviceName,
14
- tenantId: base.tenantId ?? env.VITE_OBTRACE_TENANT_ID,
15
- projectId: base.projectId ?? env.VITE_OBTRACE_PROJECT_ID,
16
- appId: base.appId ?? env.VITE_OBTRACE_APP_ID,
17
- env: base.env ?? env.MODE ?? env.VITE_OBTRACE_ENV ?? "dev"
10
+ serviceName: base.serviceName ?? "vite-app",
18
11
  };
19
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obtrace/browser",
3
- "version": "1.0.1",
3
+ "version": "2.0.1",
4
4
  "description": "Obtrace Browser SDK with frontend wrappers",
5
5
  "type": "module",
6
6
  "license": "MIT",