@node-red/util 3.1.0-beta.3 → 3.1.0

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/util.js +3 -5
  2. package/package.json +1 -1
package/lib/util.js CHANGED
@@ -526,7 +526,7 @@ function setObjectProperty(msg,prop,value,createMissing) {
526
526
  return true;
527
527
  }
528
528
 
529
- /*!
529
+ /**
530
530
  * Get value of environment variable.
531
531
  * @param {Node} node - accessing node
532
532
  * @param {String} name - name of variable
@@ -548,11 +548,9 @@ function getSetting(node, name, flow_) {
548
548
  if (flow) {
549
549
  if (node && node.g) {
550
550
  const group = flow.getGroupNode(node.g);
551
- const [result, newName] = flow.getGroupEnvSetting(node, group, name);
552
- if (result) {
553
- return result.val;
551
+ if (group) {
552
+ return group.getSetting(name)
554
553
  }
555
- name = newName;
556
554
  }
557
555
  return flow.getSetting(name);
558
556
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/util",
3
- "version": "3.1.0-beta.3",
3
+ "version": "3.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",