@madewithremy/admin 0.1.4 → 0.1.5
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 +13 -1
- package/dist/prod.js +6 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -591,10 +591,22 @@ interface EventsPublishResult {
|
|
|
591
591
|
* error.
|
|
592
592
|
*/
|
|
593
593
|
delivered: number;
|
|
594
|
+
/**
|
|
595
|
+
* The platform-stamped publish id — the same id arrives on every delivered
|
|
596
|
+
* frame, so it correlates a test publish with `events tail` output.
|
|
597
|
+
*/
|
|
598
|
+
id: string;
|
|
594
599
|
scope: string;
|
|
595
600
|
}
|
|
596
|
-
/**
|
|
601
|
+
/**
|
|
602
|
+
* One frame printed by `events tail` (also the subscribe stream's shape).
|
|
603
|
+
* A slow reader may also see `{ type: 'events_dropped', count, ts }` — the
|
|
604
|
+
* platform drops rather than buffers when a consumer falls behind, and says
|
|
605
|
+
* how many frames it dropped once the stream drains.
|
|
606
|
+
*/
|
|
597
607
|
interface EventsTailFrame {
|
|
608
|
+
/** Platform-stamped publish id (consumer dedupe key: `id` + `channel`). */
|
|
609
|
+
id: string;
|
|
598
610
|
channel: string;
|
|
599
611
|
data: unknown;
|
|
600
612
|
/** Publish time, ms since epoch. */
|
package/dist/prod.js
CHANGED
|
@@ -4048,10 +4048,12 @@ Examples:
|
|
|
4048
4048
|
remy-admin events channels list
|
|
4049
4049
|
|
|
4050
4050
|
Notes:
|
|
4051
|
-
tail answers "is my
|
|
4052
|
-
shell, trigger the
|
|
4053
|
-
|
|
4054
|
-
|
|
4051
|
+
tail answers "is my code publishing what I think it is": run it in one
|
|
4052
|
+
shell, trigger the publish in another, and each matching publish prints as
|
|
4053
|
+
one JSON value ({id, channel, data, ts}). Every publish appears regardless
|
|
4054
|
+
of origin \u2014 a backend method, this CLI, or a client with a publish-capable
|
|
4055
|
+
grant. It ends on its own after --for seconds (exit 0), so it is safe to
|
|
4056
|
+
run from a script.
|
|
4055
4057
|
|
|
4056
4058
|
publish lets a frontend subscriber be verified before the backend trigger
|
|
4057
4059
|
exists. The response's 'delivered' counts live subscriber connections per
|