New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-knx-ultimate

Package Overview
Dependencies
Maintainers
1
Versions
461
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-knx-ultimate - npm Package Compare versions

Comparing version

to
1.0.11

2

CHANGELOG.md
# node-red-contrib-knx-ultimate
<p>
<b>Version 1.0.9</b><br/>
<b>Version 1.0.11</b><br/>
- Fixed knx dependency<br/>

@@ -5,0 +5,0 @@ </p>

@@ -75,14 +75,16 @@ const knx = require('knx')

// Check if the node has a valid topic and dpt
if (typeof _Node.topic == "undefined" || typeof _Node.dpt == "undefined") {
_Node.status({ fill: "red", shape: "dot", text: "Empty group address (topic) or datapoint." })
return;
} else {
if (!_Node.listenallga) {
if (typeof _Node.topic == "undefined" || typeof _Node.dpt == "undefined") {
_Node.status({ fill: "red", shape: "dot", text: "Empty group address (topic) or datapoint." })
return;
} else {
// Topic must be in formar x/x/x
if (_Node.topic.split("\/").length < 3) {
_Node.status({ fill: "red", shape: "dot", text: "Wrong group address (topic: " + _Node.topic + ") format." })
return;
// Topic must be in formar x/x/x
if (_Node.topic.split("\/").length < 3) {
_Node.status({ fill: "red", shape: "dot", text: "Wrong group address (topic: " + _Node.topic + ") format." })
return;
}
}
}
}
// Add _Node to the clients array

@@ -142,3 +144,2 @@ node.nodeClients.push(_Node)

RED.log.error('knxUltimate readValue: (' + topic + ') ' + error);
node.setClientStatus("error tx", "red", 'readValue: (' + topic + ') ' + error)
}

@@ -145,0 +146,0 @@

@@ -16,11 +16,13 @@ module.exports = function (RED) {

// Check if the node has a valid topic and dpt
if (typeof node.topic == "undefined" || typeof node.dpt == "undefined") {
node.status({ fill: "red", shape: "dot", text: "Empty group address (topic) or datapoint." })
return;
} else {
// Topic must be in formar x/x/x
if (node.topic.split("\/").length < 3) {
node.status({ fill: "red", shape: "dot", text: "Wrong group address (topic: " + node.topic + ") format." })
if(!node.listenallga){
if (typeof node.topic == "undefined" || typeof node.dpt == "undefined") {
node.status({ fill: "red", shape: "dot", text: "Empty group address (topic) or datapoint." })
return;
} else {
// Topic must be in formar x/x/x
if (node.topic.split("\/").length < 3) {
node.status({ fill: "red", shape: "dot", text: "Wrong group address (topic: " + node.topic + ") format." })
return;
}
}

@@ -27,0 +29,0 @@ }

{
"name": "node-red-contrib-knx-ultimate",
"version": "1.0.9",
"version": "1.0.11",
"description": "Single Node KNX IN/OUT with optional ETS group address importer.",

@@ -5,0 +5,0 @@ "dependencies": {