@amityco/ts-sdk-react-native 7.21.1-3f070be.0 → 7.21.1-744e59bb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10711,9 +10711,9 @@ const registerPushNotification = async (deviceToken) => {
|
|
|
10711
10711
|
|
|
10712
10712
|
const unregisterPushNotification = async () => {
|
|
10713
10713
|
const client = getActiveClient();
|
|
10714
|
-
const deviceId = getDeviceId();
|
|
10714
|
+
const deviceId = await getDeviceId();
|
|
10715
10715
|
const { data: { status, error }, } = await client.http.delete('/v1/notification', {
|
|
10716
|
-
|
|
10716
|
+
params: {
|
|
10717
10717
|
deviceId,
|
|
10718
10718
|
},
|
|
10719
10719
|
headers: { 'X-API-Key': client.apiKey },
|
package/dist/index.esm.js
CHANGED
|
@@ -26784,9 +26784,9 @@ const registerPushNotification = async (deviceToken) => {
|
|
|
26784
26784
|
|
|
26785
26785
|
const unregisterPushNotification = async () => {
|
|
26786
26786
|
const client = getActiveClient();
|
|
26787
|
-
const deviceId = getDeviceId();
|
|
26787
|
+
const deviceId = await getDeviceId();
|
|
26788
26788
|
const { data: { status, error }, } = await client.http.delete('/v1/notification', {
|
|
26789
|
-
|
|
26789
|
+
params: {
|
|
26790
26790
|
deviceId,
|
|
26791
26791
|
},
|
|
26792
26792
|
headers: { 'X-API-Key': client.apiKey },
|