node-red-contrib-uos-nats 0.2.30 → 0.2.31

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.
Files changed (2) hide show
  1. package/lib/payloads.js +3 -2
  2. package/package.json +1 -1
package/lib/payloads.js CHANGED
@@ -249,6 +249,7 @@ export function decodeProviderDefinition(bb) {
249
249
  };
250
250
  }
251
251
  // Helper to build VariableListT
252
+
252
253
  function buildVariableList(defs, states, fingerprint) {
253
254
  const variables = [];
254
255
  for (const def of defs) {
@@ -409,10 +410,10 @@ function toFlatDefinition(def) {
409
410
  function mapAccessType(access) {
410
411
  switch (access?.toUpperCase?.()) {
411
412
  case 'READWRITE':
412
- return VariableAccessType.READWRITE;
413
+ return VariableAccessType.READ_WRITE;
413
414
  case 'READONLY':
414
415
  default:
415
- return VariableAccessType.READONLY;
416
+ return VariableAccessType.READ_ONLY;
416
417
  }
417
418
  }
418
419
  function mapDataType(dataType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-uos-nats",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
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",