node-red-contrib-uos-nats 1.3.1 → 1.3.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/nodes/datahub-write.js +7 -1
- package/package.json +1 -1
package/nodes/datahub-write.js
CHANGED
|
@@ -111,7 +111,13 @@ module.exports = function (RED) {
|
|
|
111
111
|
if (this.variableKey) {
|
|
112
112
|
// Trigger background resolution
|
|
113
113
|
node.status({ fill: 'yellow', shape: 'dot', text: 'resolving...' });
|
|
114
|
-
|
|
114
|
+
// Trigger background resolution
|
|
115
|
+
node.status({ fill: 'yellow', shape: 'dot', text: 'resolving...' });
|
|
116
|
+
|
|
117
|
+
// Fix: Cannot use await in constructor. Use Promise chain.
|
|
118
|
+
configNode.acquire().then(nc => {
|
|
119
|
+
return resolveVariableKey(nc, node.providerId, node.variableKey, node, node.payloads);
|
|
120
|
+
})
|
|
115
121
|
.then(resolved => {
|
|
116
122
|
node.resolvedId = resolved.id;
|
|
117
123
|
node.resolvedDataType = resolved.dataType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-uos-nats",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Node-RED nodes for Weidmüller u-OS Data Hub. Read, write, and provide variables via NATS protocol with OAuth2 authentication. Features: Variable Key resolution, custom icons, example flows, and provider definition caching.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "IoTUeli",
|