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.1 to 0.1.0

10

index.js

@@ -17,3 +17,3 @@ "use strict";

this.delayTime = config.delay;
this.Timer;
this._service = new Service.Switch(this.name);

@@ -31,8 +31,12 @@ this._service.getCharacteristic(Characteristic.On)

if (on) {
setTimeout(function() {
clearTimeout(this.Timer);
this.Timer = setTimeout(function() {
this._service.setCharacteristic(Characteristic.On, false);
}.bind(this), this.delayTime);
}
else {
clearTimeout(this.Timer);
}
callback();
}
}
{
"name": "homebridge-delay-switch",
"version": "0.0.1",
"version": "0.1.0",
"description": "Delay switches for Homebridge: https://github.com/nfarina/homebridge",

@@ -21,2 +21,2 @@ "license": "ISC",

}
}
}

@@ -38,4 +38,4 @@

```sudo npm install -g homebridge-delay-switch```
## Credits
This plugin was forked from and inspired by homebridge-dummy by @nfarina
This plugin was forked from and inspired by homebridge-dummy by @nfarina
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