From 029586a6f62b8e6472789130f105e537f5fd13e2 Mon Sep 17 00:00:00 2001 From: goenning Date: Thu, 20 Apr 2023 15:23:41 +0100 Subject: [PATCH] update to new url --- .gitignore | 3 ++- README.md | 2 +- package.json | 4 ++-- src/index.ts | 8 ++++---- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 76add87..6acc570 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -dist \ No newline at end of file +dist +.DS_Store \ No newline at end of file diff --git a/README.md b/README.md index fd3c282..1ef22ee 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # JavaScript SDK for Aptabase -A tiny SDK (1 kB) to instrument your web app with Aptabase, a privacy-first analytics platform for desktop, mobile and web apps. +A tiny SDK (1 kB) to instrument your web app with Aptabase, an Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps. > 👉 **IMPORTANT** > diff --git a/package.json b/package.json index f6a5931..0aa24f3 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@aptabase/web", - "version": "0.0.2", + "version": "0.0.3", "private": false, - "description": "JavaScript SDK for Aptabase: Privacy-first and simple analytics for apps", + "description": "JavaScript SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps", "browser": "dist/index.js", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index d5206dd..930728a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,9 +14,9 @@ let _sessionId = newSessionId(); let _options: AptabaseOptions | undefined; const regions: { [region: string]: string } = { - US: "https://api-us.aptabase.com", - EU: "https://api-eu.aptabase.com", - DEV: "http://localhost:5251", + US: "https://us.aptabase.com", + EU: "https://eu.aptabase.com", + DEV: "http://localhost:3000", }; export function init(appKey: string, options?: AptabaseOptions) { @@ -33,7 +33,7 @@ export function init(appKey: string, options?: AptabaseOptions) { const region = parts[1]; const baseUrl = regions[region] ?? regions.DEV; - _apiUrl = `${baseUrl}/v0/event`; + _apiUrl = `${baseUrl}/api/v0/event`; _locale = navigator.languages && navigator.languages.length