@bonsae/nrg 0.15.0 → 0.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonsae/nrg",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
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
@@ -199,7 +199,7 @@ function getCredentialsFromSchema(schema) {
199
199
  }
200
200
 
201
201
  // src/core/server/nodes/symbols.ts
202
- var WIRE_HANDLERS = Symbol("wireHandlers");
202
+ var WIRE_HANDLERS = Symbol.for("nrg.wireHandlers");
203
203
 
204
204
  // src/core/server/nodes/node.ts
205
205
  var cachedSettingsMap = /* @__PURE__ */ new WeakMap();
package/test/index.js CHANGED
@@ -395,7 +395,7 @@ function initValidator(RED) {
395
395
  }
396
396
 
397
397
  // src/core/server/nodes/symbols.ts
398
- var WIRE_HANDLERS = Symbol("wireHandlers");
398
+ var WIRE_HANDLERS = Symbol.for("nrg.wireHandlers");
399
399
 
400
400
  // src/test/index.ts
401
401
  function buildConfig(NodeClass, userConfig = {}) {
@@ -522,10 +522,10 @@ async function createNode(NodeClass, options = {}) {
522
522
  NodeClass.validateSettings(RED);
523
523
  await Promise.resolve(NodeClass.registered?.(RED));
524
524
  const node = new NodeClass(RED, nodeRedNode, config, credentials);
525
+ const augmented = attachHelpers(node, nodeRedNode);
525
526
  const createdPromise = Promise.resolve(node.created?.());
526
527
  node[WIRE_HANDLERS](nodeRedNode, createdPromise);
527
528
  await createdPromise;
528
- const augmented = attachHelpers(node, nodeRedNode);
529
529
  return { node: augmented, RED };
530
530
  }
531
531
  export {