- Rename apiPath
to apiUrl
This commit is contained in:
parent
c980afd786
commit
9002311059
7 changed files with 20 additions and 10 deletions
|
@ -1,3 +1,11 @@
|
|||
## 0.3.3
|
||||
|
||||
- Rename `apiPath` to `apiUrl`
|
||||
|
||||
## 0.3.2
|
||||
|
||||
- Fix error when running on chrome
|
||||
|
||||
## 0.3.1
|
||||
|
||||
- Support for custom API path
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@aptabase/react",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.3",
|
||||
"type": "module",
|
||||
"description": "React SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps",
|
||||
"main": "./dist/index.cjs",
|
||||
|
|
|
@ -19,7 +19,7 @@ type ContextProps = {
|
|||
function init(appKey: string, options?: AptabaseOptions) {
|
||||
if (!validateAppKey(appKey)) return;
|
||||
|
||||
_apiUrl = getApiUrl(appKey, options);
|
||||
_apiUrl = options?.apiUrl ?? getApiUrl(appKey, options);
|
||||
_appKey = appKey;
|
||||
_options = options;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue