node-red-contrib-uos-nats 0.2.95 → 0.2.97

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.
@@ -124,10 +124,11 @@
124
124
  $statusMsg.text('');
125
125
 
126
126
  // Filter: Only writable variables (User Request)
127
- // access strings come from lib/payloads.js: 'READWRITE' or 'READ_WRITE' or checking accessType
127
+ // If access is missing (fallback mode), we SHOW it to be safe (let user try).
128
128
  const writableVars = data.filter(v => {
129
129
  const acc = (v.access || v.accessType || '').toUpperCase();
130
- return acc.includes('WRITE');
130
+ // Show if explicitly Writable OR if access info is missing entirely
131
+ return acc.includes('WRITE') || acc === '';
131
132
  });
132
133
 
133
134
  // Sort: ID ascending (User Request: "tiefste Zahl zuoberst")
@@ -244,6 +244,7 @@ module.exports = function (RED) {
244
244
  meta.variables.forEach((v, i) => {
245
245
  if (v.id === undefined && v.Id === undefined) {
246
246
  v.id = i;
247
+ v.missingId = true;
247
248
  }
248
249
  });
249
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-uos-nats",
3
- "version": "0.2.95",
3
+ "version": "0.2.97",
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",