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

thing-it-device-enocean-ip

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thing-it-device-enocean-ip - npm Package Compare versions

Comparing version 0.2.19 to 0.2.20

29

default-units/pressureSwitch.js

@@ -68,19 +68,16 @@ module.exports = {

//dataArray = telegram.telegramInfo.data.match(/.{1,2}/g);
//console.log("Data bits: ", dataArray[2]);
for (n in telegram.functions) {
if (telegram.functions[n].key === "trigger") {
if (telegram.functions[n].value === "event") {
this.state.lastOperation = "Button Pressed";
this.state.pressed = true;
console.log(this.state);
this.publishEvent('buttonPressed', {});
} else {
this.state.lastOperation = "Button Released";
this.state.pressed = false;
console.log(this.state);
this.publishEvent('buttonReleased', {});
}
}
dataArray = telegram.telegramInfo.data.match(/.{1,2}/g);
console.log("Data bits: ", dataArray[2]);
if(dataArray[2] === "11") {
this.state.lastOperation = "Button Pressed";
this.state.pressed = true;
console.log(this.state);
this.publishEvent('buttonPressed', {});
}
else{
this.state.lastOperation = "Button Released";
this.state.pressed = false;
console.log(this.state);
this.publishEvent('buttonReleased', {});
}
}

@@ -87,0 +84,0 @@ });

{
"name": "thing-it-device-enocean-ip",
"version": "0.2.19",
"version": "0.2.20",
"description": "[thing-it-node] Device Plugin for EnOcean IP products.",

@@ -5,0 +5,0 @@ "authors": "Marc Gille",

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