node-red-contrib-boolean-logic-ultimate
Advanced tools
Comparing version 1.0.38 to 1.0.39
@@ -78,2 +78,7 @@ module.exports = function (RED) { | ||
else if (typeof value === 'number' || typeof value === 'string') { | ||
if (typeof value === "string" && value.toLowerCase() === "on") return true; | ||
if (typeof value === "string" && value.toLowerCase() === "off") return false; | ||
// Is it formated as a decimal number? | ||
@@ -80,0 +85,0 @@ if (decimal.test(value)) { |
@@ -267,4 +267,4 @@ module.exports = function (RED) { | ||
if (value.toLowerCase() === "on") return true; | ||
if (value.toLowerCase() === "off") return false; | ||
if (typeof value === "string" && value.toLowerCase() === "on") return true; | ||
if (typeof value === "string" && value.toLowerCase() === "off") return false; | ||
@@ -271,0 +271,0 @@ // Is it formated as a decimal number? |
@@ -58,4 +58,4 @@ module.exports = function (RED) { | ||
if (value.toLowerCase() === "on") return true; | ||
if (value.toLowerCase() === "off") return false; | ||
if (typeof value === "string" && value.toLowerCase() === "on") return true; | ||
if (typeof value === "string" && value.toLowerCase() === "off") return false; | ||
@@ -62,0 +62,0 @@ // Is it formated as a decimal number? |
@@ -86,4 +86,4 @@ module.exports = function (RED) { | ||
if (value.toLowerCase() === "on") return true; | ||
if (value.toLowerCase() === "off") return false; | ||
if (typeof value === "string" && value.toLowerCase() === "on") return true; | ||
if (typeof value === "string" && value.toLowerCase() === "off") return false; | ||
@@ -90,0 +90,0 @@ // Is it formated as a decimal number? |
@@ -58,4 +58,4 @@ module.exports = function (RED) { | ||
if (value.toLowerCase() === "on") return true; | ||
if (value.toLowerCase() === "off") return false; | ||
if (typeof value === "string" && value.toLowerCase() === "on") return true; | ||
if (typeof value === "string" && value.toLowerCase() === "off") return false; | ||
@@ -62,0 +62,0 @@ // Is it formated as a decimal number? |
@@ -5,2 +5,6 @@ # node-red-contrib-boolean-logic-ultimate | ||
<p> | ||
<b>Version 1.0.39</b> November 2021<br/> | ||
- FIX a possible issue when msg.payload is numeric.</br> | ||
</p> | ||
<p> | ||
<b>Version 1.0.38</b> November 2021<br/> | ||
@@ -7,0 +11,0 @@ - All nodes does accept "on" and "off" as input, converting it in "true" and "false" values (Homeassistant friendly).</br> |
{ | ||
"name": "node-red-contrib-boolean-logic-ultimate", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"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
700219
745