1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Tidy up functionTimeout setting

This commit is contained in:
Nick O'Leary 2023-09-05 10:34:18 +01:00
parent f7b64b101e
commit 9a934c941f
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
3 changed files with 5 additions and 10163 deletions

10160
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -365,7 +365,7 @@
name: {value:"_DEFAULT_"}, name: {value:"_DEFAULT_"},
func: {value:"\nreturn msg;"}, func: {value:"\nreturn msg;"},
outputs: {value:1}, outputs: {value:1},
timeout:{value:RED.settings.functionTimeout}, timeout:{value:RED.settings.functionTimeout || 0},
noerr: {value:0,required:true, noerr: {value:0,required:true,
validate: function(v, opt) { validate: function(v, opt) {
if (!v) { if (!v) {

View File

@ -444,6 +444,7 @@ module.exports = {
* - fileWorkingDirectory * - fileWorkingDirectory
* - functionGlobalContext * - functionGlobalContext
* - functionExternalModules * - functionExternalModules
* - functionTimeout
* - nodeMessageBufferMaxLength * - nodeMessageBufferMaxLength
* - ui (for use with Node-RED Dashboard) * - ui (for use with Node-RED Dashboard)
* - debugUseColors * - debugUseColors
@ -468,8 +469,9 @@ module.exports = {
/** Allow the Function node to load additional npm modules directly */ /** Allow the Function node to load additional npm modules directly */
functionExternalModules: true, functionExternalModules: true,
/** Default timeout fir function node */ /** Default timeout, in seconds, for the Function node. 0 means no timeout is applied */
functionTimeout: 0, functionTimeout: 0,
/** The following property can be used to set predefined values in Global Context. /** The following property can be used to set predefined values in Global Context.
* This allows extra node modules to be made available with in Function node. * This allows extra node modules to be made available with in Function node.
* For example, the following: * For example, the following: