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

homebridge-delay-switch

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-delay-switch - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

16

index.js

@@ -35,13 +35,11 @@ var Service, Characteristic, Accessory;

this.log("Setting switch to " + on);
if (on == 1) {
clearTimeout(this.Timer);
this.Timer = setTimeout(function() {
this.service.setCharacteristic(Characteristic.On, false);
}, this.delayTime);
}
else {
clearTimeout(this.Timer);
}
var self = this;
if (on) {
clearTimeout(self.Timer);
self.Timer = setTimeout(function() {
self.service.getCharacteristic(Characteristic.On).updateValue(false);
}, self.delayTime);
} else clearTimeout(self.Timer);
callback();
}
{
"name": "homebridge-delay-switch",
"version": "0.0.4",
"version": "0.0.5",
"description": "Delay switches for Homebridge: https://github.com/nfarina/homebridge",

@@ -5,0 +5,0 @@ "license": "ISC",

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