mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
Merge pull request #4925 from GogoVega/fix-4923
Apply `envVarExcludes` setting to `util.getSetting` into the function node
This commit is contained in:
commit
348ec34446
@ -111,8 +111,6 @@ module.exports = function(RED) {
|
|||||||
throw new Error(RED._("function.error.externalModuleNotAllowed"));
|
throw new Error(RED._("function.error.externalModuleNotAllowed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var functionText = "var results = null;"+
|
var functionText = "var results = null;"+
|
||||||
"results = (async function(msg,__send__,__done__){ "+
|
"results = (async function(msg,__send__,__done__){ "+
|
||||||
"var __msgid__ = msg._msgid;"+
|
"var __msgid__ = msg._msgid;"+
|
||||||
@ -166,7 +164,13 @@ module.exports = function(RED) {
|
|||||||
Buffer:Buffer,
|
Buffer:Buffer,
|
||||||
Date: Date,
|
Date: Date,
|
||||||
RED: {
|
RED: {
|
||||||
util: RED.util
|
util: {
|
||||||
|
...RED.util,
|
||||||
|
getSetting: function (_node, name, _flow) {
|
||||||
|
// Ensure `node` argument is the Function node and do not allow flow to be overridden.
|
||||||
|
return RED.util.getSetting(node, name);
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
__node__: {
|
__node__: {
|
||||||
id: node.id,
|
id: node.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user