@kwirthmagnify/kwirth-provider-http-pull-push 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/back.js +6 -1
- package/package.json +1 -1
package/back.js
CHANGED
|
@@ -337,7 +337,11 @@ var HttpPullPushProvider = class {
|
|
|
337
337
|
lo que ya se tiene, no se calcula —, y de aqui sale que kwirth pueda decir si esto esta siendo
|
|
338
338
|
consumido o emitiendo para nadie.
|
|
339
339
|
*/
|
|
340
|
-
|
|
340
|
+
/*
|
|
341
|
+
Entregas desde que arranco: una por llamada a un suscriptor. Filtra por configuracion antes de entregar.
|
|
342
|
+
*/
|
|
343
|
+
this.deliveries = 0;
|
|
344
|
+
this.getStats = () => ({ subscribers: this.subscribers.size, events: this.deliveries });
|
|
341
345
|
this.pollers = /* @__PURE__ */ new Map();
|
|
342
346
|
this.started = false;
|
|
343
347
|
// ── IProvider ───────────────────────────────────────────────────────────────
|
|
@@ -584,6 +588,7 @@ Gotchas:
|
|
|
584
588
|
for (const [subscriber, entry] of this.subscribers) {
|
|
585
589
|
if (entry.configs !== void 0 && !entry.configs.has(event.config)) continue;
|
|
586
590
|
try {
|
|
591
|
+
this.deliveries++;
|
|
587
592
|
subscriber.processProviderEvent(this.id, event);
|
|
588
593
|
} catch (err) {
|
|
589
594
|
console.error(`[http-pull-push] Subscriber failed processing '${event.config}': ${err}`);
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"id": "http-pull-push",
|
|
8
8
|
"name": "@kwirthmagnify/kwirth-provider-http-pull-push",
|
|
9
9
|
"displayName": "HTTP Pull-Push Provider",
|
|
10
|
-
"version": "0.1.
|
|
10
|
+
"version": "0.1.5",
|
|
11
11
|
"description": "HTTP polling provider for Kwirth — pulls remote HTTP endpoints on a schedule and pushes each result to the subscribed channels",
|
|
12
12
|
"website": "https://kwirthmagnify.dev",
|
|
13
13
|
"requiresRestart": true,
|