node-red-contrib-boolean-logic-ultimate
Advanced tools
Comparing version 1.1.16 to 1.1.17
@@ -12,4 +12,4 @@ | ||
setNodeStatus({ fill: "grey", shape: "dot", text: "Waiting" }); | ||
5 | ||
RED.httpAdmin.post("/InjectUltimate/:id", RED.auth.needsPermission("InjectUltimate.write"), function (req, res) { | ||
@@ -16,0 +16,0 @@ var node = RED.nodes.getNode(req.params.id); |
@@ -41,10 +41,6 @@ module.exports = function (RED) { | ||
this.on("input", function (msg) { | ||
// Backward compatibility | ||
// Pass msg.payload = false switches the msg input to the UPPER output | ||
// Pass msg.payload = true switches the msg input to the LOWER output | ||
if (msg.payload === false) msg.payload = '0'; | ||
if (msg.payload === true) msg.payload = '1'; | ||
var sIncomingTopic = ""; | ||
if (msg.hasOwnProperty("topic")) { | ||
// 06/11/2019 | ||
@@ -58,2 +54,8 @@ if (!msg.hasOwnProperty("topic") || msg.topic === undefined) | ||
if (sIncomingTopic === node.sTriggerTopic) { | ||
// Backward compatibility | ||
// Pass msg.payload = false switches the msg input to the UPPER output | ||
// Pass msg.payload = true switches the msg input to the LOWER output | ||
if (msg.payload === false) msg.payload = '0'; | ||
if (msg.payload === true) msg.payload = '1'; | ||
const utils = require("./utils.js"); | ||
@@ -60,0 +62,0 @@ let sPayload = utils.fetchFromObject( |
@@ -7,2 +7,6 @@ # node-red-contrib-boolean-logic-ultimate | ||
<p> | ||
<b>Version 1.1.17</b> September 2024<br/> | ||
- 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> | ||
</p> | ||
<p> | ||
<b>Version 1.1.16</b> August 2024<br/> | ||
@@ -9,0 +13,0 @@ - Railway Switcher: fixed an issue for backward compatibility of true/false input msg.</br> |
{ | ||
"name": "node-red-contrib-boolean-logic-ultimate", | ||
"version": "1.1.16", | ||
"version": "1.1.17", | ||
"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,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1332615
1451