@arkstack/realtime 0.17.15 → 0.17.17
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 +0 -1
- package/dist/react/index.d.ts +0 -1
- package/dist/react/index.js +1 -1
- package/dist/vue/index.d.ts +0 -1
- package/dist/vue/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { a as PusherClientConfig, c as RealtimeSubscription, i as NotificationHandler, l as RealtimeTransport, n as createRealtime, o as RealtimeConfig, r as FirebaseClientConfig, s as RealtimeNotification, t as RealtimeClient, u as RealtimeTransportName } from "./RealtimeClient-BlV9xSHd.js";
|
|
2
|
-
|
|
3
2
|
//#region src/transports/pusher.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Realtime transport backed by [pusher-js](https://github.com/pusher/pusher-js).
|
package/dist/react/index.d.ts
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -22,7 +22,7 @@ function useNotifications(client, channel, options = {}) {
|
|
|
22
22
|
client.subscribe(channel, push).then((off) => {
|
|
23
23
|
if (cancelled) off();
|
|
24
24
|
else unsubscribe = off;
|
|
25
|
-
}).catch(() => {
|
|
25
|
+
}).catch(() => {/** surfaced by the caller's own error handling */});
|
|
26
26
|
return () => {
|
|
27
27
|
cancelled = true;
|
|
28
28
|
unsubscribe?.();
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { s as RealtimeNotification, t as RealtimeClient } from "../RealtimeClient-BlV9xSHd.js";
|
|
2
2
|
import { ComputedRef, Ref } from "vue";
|
|
3
|
-
|
|
4
3
|
//#region src/vue/index.d.ts
|
|
5
4
|
interface UseNotificationsOptions {
|
|
6
5
|
/** Cap the number of retained notifications (newest kept). Default: unbounded. */
|
package/dist/vue/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function useNotifications(client, channel, options = {}) {
|
|
|
21
21
|
client.subscribe(channel, push).then((off) => {
|
|
22
22
|
if (cancelled) off();
|
|
23
23
|
else unsubscribe = off;
|
|
24
|
-
}).catch(() => {
|
|
24
|
+
}).catch(() => {/** surfaced by the caller's own error handling */});
|
|
25
25
|
const stop = () => {
|
|
26
26
|
cancelled = true;
|
|
27
27
|
unsubscribe?.();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/realtime",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Client for consuming Arkstack realtime notifications (Pusher/Firebase), with framework-agnostic core plus React and Vue bindings.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net/guide/notifications",
|