node-red-contrib-boolean-logic-ultimate 1.1.16 → 1.1.17
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
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
# CHANGELOG
|
|
5
5
|
|
|
6
|
+
<p>
|
|
7
|
+
<b>Version 1.1.17</b> September 2024<br/>
|
|
8
|
+
- Railway Switcher: fixed an issue caused by fixing an issue for backward compatibility of true/false input msg. The node was emitting 0 and 1 instead of true and false</br>
|
|
9
|
+
</p>
|
|
6
10
|
<p>
|
|
7
11
|
<b>Version 1.1.16</b> August 2024<br/>
|
|
8
12
|
- Railway Switcher: fixed an issue for backward compatibility of true/false input msg.</br>
|
|
@@ -9,7 +9,7 @@ module.exports = function (RED) {
|
|
|
9
9
|
node.topic = config.topic || "Inject";
|
|
10
10
|
node.outputJSON = (config.outputJSON === undefined || config.outputJSON === '') ? '{ \n\t"payload":"hello",\n\t"topic":"1"\n}' : config.outputJSON;
|
|
11
11
|
setNodeStatus({ fill: "grey", shape: "dot", text: "Waiting" });
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
RED.httpAdmin.post("/InjectUltimate/:id", RED.auth.needsPermission("InjectUltimate.write"), function (req, res) {
|
|
15
15
|
var node = RED.nodes.getNode(req.params.id);
|
|
@@ -38,14 +38,10 @@ module.exports = function (RED) {
|
|
|
38
38
|
node.alignStatus();
|
|
39
39
|
|
|
40
40
|
this.on("input", function (msg) {
|
|
41
|
-
// Backward compatibility
|
|
42
|
-
// Pass msg.payload = false switches the msg input to the UPPER output
|
|
43
|
-
// Pass msg.payload = true switches the msg input to the LOWER output
|
|
44
|
-
if (msg.payload === false) msg.payload = '0';
|
|
45
|
-
if (msg.payload === true) msg.payload = '1';
|
|
46
41
|
|
|
47
42
|
var sIncomingTopic = "";
|
|
48
43
|
if (msg.hasOwnProperty("topic")) {
|
|
44
|
+
|
|
49
45
|
// 06/11/2019
|
|
50
46
|
if (!msg.hasOwnProperty("topic") || msg.topic === undefined)
|
|
51
47
|
msg.topic = "NoTopicReceived";
|
|
@@ -54,6 +50,12 @@ module.exports = function (RED) {
|
|
|
54
50
|
""
|
|
55
51
|
); // Cut unwanted Characters
|
|
56
52
|
if (sIncomingTopic === node.sTriggerTopic) {
|
|
53
|
+
// Backward compatibility
|
|
54
|
+
// Pass msg.payload = false switches the msg input to the UPPER output
|
|
55
|
+
// Pass msg.payload = true switches the msg input to the LOWER output
|
|
56
|
+
if (msg.payload === false) msg.payload = '0';
|
|
57
|
+
if (msg.payload === true) msg.payload = '1';
|
|
58
|
+
|
|
57
59
|
const utils = require("./utils.js");
|
|
58
60
|
let sPayload = utils.fetchFromObject(
|
|
59
61
|
msg,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-boolean-logic-ultimate",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "A set of Node-RED enhanced boolean logic and utility nodes, flow interruption, blinker, 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": {
|