@spacelr/sdk 0.19.1 → 0.19.2
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.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4310,7 +4310,8 @@ var NotificationsModule = class _NotificationsModule {
|
|
|
4310
4310
|
if (!stored) return;
|
|
4311
4311
|
await this.deleteSubscription(
|
|
4312
4312
|
stored.subscription.platform,
|
|
4313
|
-
_NotificationsModule.identifierOf(stored.subscription)
|
|
4313
|
+
_NotificationsModule.identifierOf(stored.subscription),
|
|
4314
|
+
true
|
|
4314
4315
|
).catch(() => void 0);
|
|
4315
4316
|
});
|
|
4316
4317
|
let timer;
|
|
@@ -4327,7 +4328,7 @@ var NotificationsModule = class _NotificationsModule {
|
|
|
4327
4328
|
this.pushQueue = run.catch(() => void 0);
|
|
4328
4329
|
return run;
|
|
4329
4330
|
}
|
|
4330
|
-
deleteSubscription(platform, identifier) {
|
|
4331
|
+
deleteSubscription(platform, identifier, skipAuthRefresh = false) {
|
|
4331
4332
|
const body = { platform };
|
|
4332
4333
|
if (platform === "web") {
|
|
4333
4334
|
body["endpoint"] = identifier;
|
|
@@ -4338,7 +4339,8 @@ var NotificationsModule = class _NotificationsModule {
|
|
|
4338
4339
|
method: "DELETE",
|
|
4339
4340
|
path: "/notifications/subscribe",
|
|
4340
4341
|
body,
|
|
4341
|
-
authenticated: true
|
|
4342
|
+
authenticated: true,
|
|
4343
|
+
skipAuthRefresh
|
|
4342
4344
|
});
|
|
4343
4345
|
}
|
|
4344
4346
|
/** The value `unsubscribe()` identifies a subscription by: endpoint for web, token otherwise. */
|