capacitor-amplitude
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -40,3 +40,5 @@ declare type PropertiesObject = Record<string, any>; | ||
instanceName: string; | ||
}): Promise<string>; | ||
}): Promise<{ | ||
deviceId: string; | ||
}>; | ||
setOptOut(options: { | ||
@@ -101,3 +103,5 @@ instanceName: string; | ||
instanceName: string; | ||
}): Promise<number>; | ||
}): Promise<{ | ||
sessionId: number; | ||
}>; | ||
setMinTimeBetweenSessionsMillis(options: { | ||
@@ -104,0 +108,0 @@ instanceName: string; |
@@ -92,3 +92,5 @@ import { registerPlugin } from '@capacitor/core'; | ||
getDeviceId() { | ||
return CapacitorAmplitude.getDeviceId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getDeviceId({ | ||
instanceName: this.instanceName, | ||
}).then(({ deviceId }) => deviceId); | ||
} | ||
@@ -243,3 +245,5 @@ /** | ||
getSessionId() { | ||
return CapacitorAmplitude.getSessionId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getSessionId({ | ||
instanceName: this.instanceName, | ||
}).then(({ sessionId }) => sessionId); | ||
} | ||
@@ -246,0 +250,0 @@ /** |
@@ -96,3 +96,5 @@ 'use strict'; | ||
getDeviceId() { | ||
return CapacitorAmplitude.getDeviceId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getDeviceId({ | ||
instanceName: this.instanceName, | ||
}).then(({ deviceId }) => deviceId); | ||
} | ||
@@ -247,3 +249,5 @@ /** | ||
getSessionId() { | ||
return CapacitorAmplitude.getSessionId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getSessionId({ | ||
instanceName: this.instanceName, | ||
}).then(({ sessionId }) => sessionId); | ||
} | ||
@@ -250,0 +254,0 @@ /** |
@@ -93,3 +93,5 @@ var capacitorAmplitude = (function (exports, core) { | ||
getDeviceId() { | ||
return CapacitorAmplitude.getDeviceId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getDeviceId({ | ||
instanceName: this.instanceName, | ||
}).then(({ deviceId }) => deviceId); | ||
} | ||
@@ -244,3 +246,5 @@ /** | ||
getSessionId() { | ||
return CapacitorAmplitude.getSessionId({ instanceName: this.instanceName }); | ||
return CapacitorAmplitude.getSessionId({ | ||
instanceName: this.instanceName, | ||
}).then(({ sessionId }) => sessionId); | ||
} | ||
@@ -247,0 +251,0 @@ /** |
{ | ||
"name": "capacitor-amplitude", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"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
124917
1348