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.38 to 1.0.39

5

boolean-logic-ultimate/BlinkerUltimate.js

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

4

boolean-logic-ultimate/BooleanLogicUltimate.js

@@ -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)",

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