node-red-contrib-boolean-logic-ultimate 1.2.14 → 1.2.15

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  # CHANGELOG
6
6
 
7
+ <p>
8
+ <b>Version 1.2.15</b> Juli 2026<br/>
9
+
10
+ - Fixed an issue in the Interrupt node, where the topic was set but the payload were undefined.<br/>
11
+ </p>
12
+
7
13
  <p>
8
14
  <b>Version 1.2.14</b> June 2026<br/>
9
15
 
@@ -79,18 +79,13 @@ module.exports = function (RED) {
79
79
  config.payloadPropName || "payload"
80
80
  );
81
81
  // 15/11/2021 inform user about undefined topic or payload
82
- if (sPayload === undefined) {
83
- setNodeStatus({
84
- fill: "red",
85
- shape: "dot",
86
- text: "Received invalid payload from " + msg.topic || "",
87
- });
88
- return;
82
+ if (sPayload !== undefined) {
83
+ msg.payload = utils.ToBoolean(
84
+ sPayload,
85
+ RED.nodes.getNode(config.translatorConfig) // Retrieve the config node. It can be null, but it's handled in utils.js; // 15/11/2021 Convert input to boolean.
86
+ );
89
87
  }
90
- msg.payload = utils.ToBoolean(
91
- sPayload,
92
- RED.nodes.getNode(config.translatorConfig) // Retrieve the config node. It can be null, but it's handled in utils.js; // 15/11/2021 Convert input to boolean.
93
- );
88
+
94
89
  //if (msg.payload === undefined) return null;
95
90
  if (node.timerAutoToggle !== null) {
96
91
  // 28/01/2022 Stop autotoggle
@@ -150,6 +145,13 @@ module.exports = function (RED) {
150
145
  text: "|| stop (stored last msg)",
151
146
  });
152
147
  return;
148
+ } else if (msg.payload === undefined) {
149
+ setNodeStatus({
150
+ fill: "red",
151
+ shape: "dot",
152
+ text: "Received invalid payload from " + msg.topic || "",
153
+ });
154
+ return;
153
155
  }
154
156
  }
155
157
  //}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-boolean-logic-ultimate",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "A set of Node-RED enhanced boolean logic and utility nodes, flow interruption, blinker, debouncer, invert, filter, toggle etc.., with persistent values after reboot. Compatible also with Homeassistant values.",
5
5
  "author": "Supergiovane (https://github.com/Supergiovane)",
6
6
  "dependencies": {
@@ -54,4 +54,4 @@
54
54
  "scripts": {
55
55
  "test": "mocha test/**/*.spec.js"
56
56
  }
57
- }
57
+ }