@bonsae/nrg 0.21.1 → 0.21.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonsae/nrg",
3
- "version": "0.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "NRG framework — build Node-RED nodes with Vue 3, TypeScript, and JSON Schema",
5
5
  "author": "Allan Oricil <allanoricil@duck.com>",
6
6
  "license": "MIT",
package/server/index.cjs CHANGED
@@ -471,6 +471,18 @@ var IONode = class extends Node {
471
471
  }
472
472
  return keys.length;
473
473
  }
474
+ /**
475
+ * The names of the base output ports when `outputsSchema` is a record of
476
+ * named ports (`{ success, failure }`), in declaration order — otherwise
477
+ * `undefined` (a single schema or a positional array). Resolved here, where
478
+ * TypeBox's `Kind` symbol is intact, so the editor reads the names directly
479
+ * instead of guessing them from a serialized (symbol-stripped) schema.
480
+ */
481
+ static get outputPortNames() {
482
+ const s = this.outputsSchema;
483
+ if (!s || Array.isArray(s) || isSchemaLike(s)) return void 0;
484
+ return Object.keys(s);
485
+ }
474
486
  #send;
475
487
  /**
476
488
  * Most recent input message — the spread base for output wrapping. Not