node-red-contrib-boolean-logic-ultimate
Advanced tools
Comparing version 1.0.55 to 1.0.56
@@ -17,3 +17,10 @@ module.exports.ToBoolean = function ToBoolean(value) { | ||
if (value.toLowerCase() === "closed") return false; | ||
if (value.toLowerCase() === "close") return false; | ||
if (value.toLowerCase() === "1") return true; | ||
if (value.toLowerCase() === "0") return false; | ||
if (value.toLowerCase() === "true") return true; | ||
if (value.toLowerCase() === "false") return false; | ||
} else if (typeof value === 'number') { | ||
@@ -20,0 +27,0 @@ // Is it formated as a decimal number? |
@@ -7,2 +7,7 @@ # node-red-contrib-boolean-logic-ultimate | ||
<p> | ||
<b>Version 1.0.56</b> August 2022<br/> | ||
- NEW: added string conversion from "true", "false", "0", "1", "close" to boolean.</br> | ||
- Updated the README</br> | ||
</p> | ||
<p> | ||
<b>Version 1.0.55</b> July 2022<br/> | ||
@@ -9,0 +14,0 @@ - NEW: you can now specify the input property name from witch the node picks up the payload.</br> |
{ | ||
"name": "node-red-contrib-boolean-logic-ultimate", | ||
"version": "1.0.55", | ||
"version": "1.0.56", | ||
"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)", |
@@ -33,3 +33,7 @@ # node-red-contrib-boolean-logic-ultimate | ||
| "open" | true | | ||
| "closed" | false | | ||
| "closed" or "close" | false | | ||
| "true" | true | | ||
| "false" | false | | ||
| "1" | true | | ||
| "0" | false | | ||
@@ -36,0 +40,0 @@ |
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
1232573
943
485