Change isDebug to isDevelopment

This commit is contained in:
Korbs 2025-02-20 18:03:41 -05:00
parent c00379d7de
commit b063577663
Signed by: Korbs
SSH key fingerprint: SHA256:Q0b0KraMldpAO9oKa+w+gcsXsOTykQ4UkAKn0ByGn5U

View file

@ -2,7 +2,7 @@ import { getApiUrl, inMemorySessionId, sendEvent, validateAppKey, type ZalvenaOp
// Session expires after 1 hour of inactivity // Session expires after 1 hour of inactivity
const SESSION_TIMEOUT = 1 * 60 * 60; const SESSION_TIMEOUT = 1 * 60 * 60;
const sdkVersion = `aptabase-web@${process.env.PKG_VERSION}`; const sdkVersion = `Zalvena-web@${process.env.PKG_VERSION}`;
let _appKey = ''; let _appKey = '';
let _apiUrl: string | undefined; let _apiUrl: string | undefined;
@ -27,7 +27,7 @@ export async function trackEvent(eventName: string, props?: Record<string, strin
apiUrl: _apiUrl, apiUrl: _apiUrl,
sessionId, sessionId,
appKey: _appKey, appKey: _appKey,
isDebug: _options?.isDebug, isDevelopment: _options?.isDevelopment,
appVersion: _options?.appVersion, appVersion: _options?.appVersion,
sdkVersion, sdkVersion,
eventName, eventName,