@node-red/runtime 3.1.6 → 3.1.8

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/flows/util.js +11 -3
  2. package/package.json +4 -4
package/lib/flows/util.js CHANGED
@@ -106,14 +106,22 @@ async function evaluateEnvProperties(flow, env, credentials) {
106
106
  result = { value: result, __clone__: true}
107
107
  }
108
108
  evaluatedEnv[name] = result
109
+ } else {
110
+ evaluatedEnv[name] = undefined
111
+ flow.error(`Error evaluating env property '${name}': ${err.toString()}`)
109
112
  }
110
113
  resolve()
111
114
  });
112
115
  }))
113
116
  } else {
114
- value = redUtil.evaluateNodeProperty(value, type, {_flow: flow}, null, null);
115
- if (typeof value === 'object') {
116
- value = { value: value, __clone__: true}
117
+ try {
118
+ value = redUtil.evaluateNodeProperty(value, type, {_flow: flow}, null, null);
119
+ if (typeof value === 'object') {
120
+ value = { value: value, __clone__: true}
121
+ }
122
+ } catch (err) {
123
+ value = undefined
124
+ flow.error(`Error evaluating env property '${name}': ${err.toString()}`)
117
125
  }
118
126
  }
119
127
  evaluatedEnv[name] = value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/runtime",
3
- "version": "3.1.6",
3
+ "version": "3.1.8",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./lib/index.js",
6
6
  "repository": {
@@ -16,11 +16,11 @@
16
16
  }
17
17
  ],
18
18
  "dependencies": {
19
- "@node-red/registry": "3.1.6",
20
- "@node-red/util": "3.1.6",
19
+ "@node-red/registry": "3.1.8",
20
+ "@node-red/util": "3.1.8",
21
21
  "async-mutex": "0.4.0",
22
22
  "clone": "2.1.2",
23
- "express": "4.18.2",
23
+ "express": "4.19.2",
24
24
  "fs-extra": "11.1.1",
25
25
  "json-stringify-safe": "5.0.1"
26
26
  }