@rivium/push-web 0.1.3 → 0.1.4

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.d.ts CHANGED
@@ -543,6 +543,15 @@ declare class RiviumPush {
543
543
  private checkInitialMessage;
544
544
  private registerServiceWorker;
545
545
  private requestNotificationPermission;
546
+ /**
547
+ * Whether an existing subscription was created with the given VAPID key.
548
+ *
549
+ * `applicationServerKey` comes back as an ArrayBuffer, so compare it against
550
+ * the decoded form of the current key. If the browser doesn't expose the
551
+ * option (older implementations), assume a match rather than churn a working
552
+ * subscription.
553
+ */
554
+ private subscriptionMatchesVapidKey;
546
555
  private subscribeToPush;
547
556
  /**
548
557
  * Read platform-native device attributes. Sent on every register() so