Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-boolean-logic-ultimate

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-boolean-logic-ultimate - npm Package Compare versions

Comparing version 1.0.55 to 1.0.56

7

boolean-logic-ultimate/utils.js

@@ -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>

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc