Merge pull request #4925 from GogoVega/fix-4923
Some checks are pending
Run tests / build (18) (push) Waiting to run
Run tests / build (20) (push) Waiting to run
Run tests / build (22) (push) Waiting to run

Apply `envVarExcludes` setting to `util.getSetting` into the function node
This commit is contained in:
Nick O'Leary 2024-10-31 17:18:32 +00:00 committed by GitHub
commit 348ec34446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,8 +111,6 @@ module.exports = function(RED) {
throw new Error(RED._("function.error.externalModuleNotAllowed"));
}
var functionText = "var results = null;"+
"results = (async function(msg,__send__,__done__){ "+
"var __msgid__ = msg._msgid;"+
@ -166,7 +164,13 @@ module.exports = function(RED) {
Buffer:Buffer,
Date: Date,
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__: {
id: node.id,