@kwirthmagnify/kwirth-plugin-status 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/back.js +6 -0
  2. package/package.json +1 -1
package/back.js CHANGED
@@ -168,6 +168,12 @@ var StatusChannel = class {
168
168
  this.eventsOf = (p) => statsOf(p)?.events;
169
169
  this.healthOfProvider = (p, subscribers) => {
170
170
  if (p.started !== true) {
171
+ if (subscribers !== void 0 && subscribers > 0) {
172
+ return {
173
+ health: "not-instantiated" /* NOT_INSTANTIATED */,
174
+ reason: `${subscribers} subscriber${subscribers > 1 ? "s" : ""} waiting for data that will never arrive: no channel declares it in its requirements`
175
+ };
176
+ }
171
177
  return {
172
178
  health: "not-instantiated" /* NOT_INSTANTIATED */,
173
179
  // El core solo instancia los providers que algún canal declara en sus requirements.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "id": "status",
5
5
  "name": "@kwirthmagnify/kwirth-plugin-status",
6
6
  "displayName": "Kwirth Status",
7
- "version": "0.2.0",
7
+ "version": "0.2.1",
8
8
  "description": "A look inside Kwirth: what is installed, how it is doing and who consumes what",
9
9
  "icon": "<svg viewBox='0 0 24 24'><g fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2.6' y='4.6' width='18.8' height='14.8' rx='2.2'/><path d='M6 12h2.6l1.5-3.4 2.6 6.8 1.5-3.4H18'/></g></svg>",
10
10
  "requiresRestart": false,