@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 +1 -1
- package/server/index.cjs +12 -0
- package/server/resources/nrg-client.js +525 -527
- package/test/client/e2e/index.js +3 -0
- package/types/client.d.ts +7 -0
- package/types/server.d.ts +8 -0
- package/types/shims/client/types.d.ts +7 -0
- package/vite/index.js +3 -0
package/package.json
CHANGED
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
|