capacitor-amplitude
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -72,3 +72,5 @@ type PropertiesObject = Record<string, any>; | ||
uploadEvents(options: AmplitudeInstance): Promise<void>; | ||
getSessionId(options: AmplitudeInstance): Promise<number>; | ||
getSessionId(options: AmplitudeInstance): Promise<{ | ||
sessionId: number; | ||
}>; | ||
setMinTimeBetweenSessionsMillis(options: AmplitudeInstance & { | ||
@@ -75,0 +77,0 @@ minTimeBetweenSessionsMillis: number; |
@@ -257,3 +257,5 @@ import { registerPlugin } from '@capacitor/core'; | ||
getSessionId() { | ||
return CapacitorAmplitude.getSessionId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getSessionId({ | ||
instanceName: this.instanceName, | ||
}).then(({ sessionId }) => sessionId); | ||
} | ||
@@ -260,0 +262,0 @@ /** |
@@ -320,3 +320,5 @@ 'use strict'; | ||
getSessionId() { | ||
return CapacitorAmplitude.getSessionId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getSessionId({ | ||
instanceName: this.instanceName, | ||
}).then(({ sessionId }) => sessionId); | ||
} | ||
@@ -323,0 +325,0 @@ /** |
@@ -317,3 +317,5 @@ var capacitorAmplitude = (function (exports, core) { | ||
getSessionId() { | ||
return CapacitorAmplitude.getSessionId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getSessionId({ | ||
instanceName: this.instanceName, | ||
}).then(({ sessionId }) => sessionId); | ||
} | ||
@@ -320,0 +322,0 @@ /** |
{ | ||
"name": "capacitor-amplitude", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Amplitude plugin for capacitor", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
157048
1613