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.31 to 1.0.32

11

boolean-logic-ultimate/InterruptFlowUltimate.js

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

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