From ad788fbed1cb942ea0d93f586adfefe9e860a543 Mon Sep 17 00:00:00 2001
From: Kristian Heljas
Date: Thu, 8 Apr 2021 21:09:44 +0300
Subject: [PATCH 1/2] Function node: describe `node.outputCount` in help text
---
.../@node-red/nodes/locales/en-US/function/10-function.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html
index 891801bf9..02e85922e 100644
--- a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html
+++ b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html
@@ -56,6 +56,7 @@
node.id
- id of the node
node.name
- name of the node
+ node.outputCount
- number of node outputs
Using environment variables
Environment variables can be accessed using env.get("MY_ENV_VAR")
.
From e44131f97a828943aa0da670924ba8bdac10a1ba Mon Sep 17 00:00:00 2001
From: Nick O'Leary
Date: Mon, 12 Apr 2021 12:08:07 +0100
Subject: [PATCH 2/2] Update function node help reference to node properties
---
.../@node-red/nodes/locales/en-US/function/10-function.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html
index 02e85922e..dd13b6732 100644
--- a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html
+++ b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html
@@ -52,7 +52,7 @@
pass msg
as a second argument to node.error
:
node.error("Error",msg);
Accessing Node Information
- In the function block, id and name of the node can be referenced using the following properties:
+ The following properties are available to access information about the node:
node.id
- id of the node
node.name
- name of the node