node-red-contrib-boolean-logic-ultimate
Advanced tools
Comparing version 1.0.31 to 1.0.32
@@ -9,3 +9,3 @@ module.exports = function (RED) { | ||
node.bInviaMessaggio = (node.config.initializewith === undefined || node.config.initializewith === "1") ? true : false; // Send the message or not | ||
function setNodeStatus({ fill, shape, text }) { | ||
@@ -16,4 +16,4 @@ var dDate = new Date(); | ||
setNodeStatus({ fill: "green", shape: "ring", text: "-> pass" }); | ||
if (node.bInviaMessaggio) { | ||
@@ -29,2 +29,3 @@ setNodeStatus({ fill: "green", shape: "dot", text: "-> pass" }); | ||
// 06/11/2019 | ||
if (!msg.hasOwnProperty("topic") || msg.topic === undefined) msg.topic = "NoTopicReceived"; | ||
sIncomingTopic = msg.topic.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, ''); // Cut unwanted Characters | ||
@@ -66,9 +67,9 @@ if (sIncomingTopic == node.sTriggerTopic) { | ||
function ToBoolean(value) { | ||
var res = false; | ||
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/ | ||
if (typeof value === 'boolean') { | ||
@@ -79,3 +80,3 @@ res = value; | ||
// Is it formated as a decimal number? | ||
if (decimal.test(value)) { | ||
@@ -82,0 +83,0 @@ var v = parseFloat(value); |
@@ -5,2 +5,6 @@ # node-red-contrib-boolean-logic-ultimate | ||
<p> | ||
<b>Version 1.0.32</b> August 2021<br/> | ||
- Interruptflow ultimate: fixed an issue involving messages without topic.</br> | ||
</p> | ||
<p> | ||
<b>Version 1.0.31</b> August 2021<br/> | ||
@@ -7,0 +11,0 @@ - NEW: Boolean-Logic-Ulimate can now strict filter for input payload, by accepting only boolean true/false values. If the option is not enabled, the node will continue to try to transform the input payload to a suitable boolean value.</br> |
{ | ||
"name": "node-red-contrib-boolean-logic-ultimate", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "A set of Node-RED enhanced boolean logic node, flow interruption node, blinker node, invert node, filter node, with persisten values after reboot and more.", | ||
@@ -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
627342
625