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

node-red-contrib-deconz

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-deconz - npm Package Compare versions

Comparing version 0.10.3 to 0.10.4

8

nodes/in.js

@@ -89,2 +89,10 @@ module.exports = function(RED) {

//outputs
if ( node.config.state in device.state && node.config.output == 'onchange' && device.state[node.config.state] == node.oldState ) {
return;
}
if ( node.config.state in device.state && node.config.output == 'onupdate' && device.state['lastupdated'] == node.prevUpdateTime ) {
return;
}
node.oldState = device.state[node.config.state];
node.prevUpdateTime = device.state['lastupdated'];
node.send([

@@ -91,0 +99,0 @@ {

2

package.json

@@ -41,3 +41,3 @@ {

},
"version": "0.10.3"
"version": "0.10.4"
}

@@ -119,3 +119,3 @@ function deconz_gatewayScanner(nodeItem, selectedItemElementName, options = {}) {

var sHTML = selectItemSpanElement.html();
selectItemSpanElement.html(truncateWithEllipses(sHTML, 35));
selectItemSpanElement.html(deconz_truncateWithEllipses(sHTML, 35));
} catch (error) {

@@ -211,3 +211,3 @@ console.error('Error #4534');

var sHTML = selectItemSpanElement.html();
selectItemSpanElement.html(truncateWithEllipses(sHTML, 35));
selectItemSpanElement.html(deconz_truncateWithEllipses(sHTML, 35));

@@ -389,1 +389,16 @@ } catch (error) {

}
/**
* truncateWithEllipses
*
* Utility function to truncate long strings with elipsis ('...')
*
*/
function deconz_truncateWithEllipses(text, max = 30) {
if (text) {
return text.substr(0, max - 1) + (text.length > max ? '…' : '');
} else {
return text;
}
}

Sorry, the diff of this file is not supported yet

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