Socket
Socket
Sign inDemoInstall

homebridge-http-base

Package Overview
Dependencies
121
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.5 to 2.1.6

15

dist/notifications/pulltimer.js

@@ -19,7 +19,8 @@ "use strict";

start() {
if (this.timeout) {
this.resetTimer();
return;
if (!this.timeout) {
this.timeout = setTimeout(this.handleTimer.bind(this), this.interval);
}
this.timeout = setTimeout(this.handleTimer.bind(this), this.interval);
else {
this.timeout.refresh();
}
}

@@ -29,8 +30,8 @@ resetTimer() {

return;
clearTimeout(this.timeout);
this.timeout = setTimeout(this.handleTimer.bind(this), this.interval);
this.timeout.refresh();
}
stop() {
if (this.timeout)
if (this.timeout) {
clearTimeout(this.timeout);
}
this.timeout = undefined;

@@ -37,0 +38,0 @@ }

{
"name": "homebridge-http-base",
"version": "2.1.5",
"version": "2.1.6",
"description": "Base and utils for homebridge-http devices",

@@ -29,20 +29,20 @@ "license": "ISC",

"dependencies": {
"request": "^2.88.0",
"async": "^3.1.0",
"request": "^2.88.2",
"async": "^3.2.0",
"mqtt": "^3.0.0"
},
"devDependencies": {
"@types/async": "^3.0.3",
"@types/async": "^3.0.8",
"@types/request": "^2.48.4",
"@types/jest": "^24.9.0",
"@types/jest": "^25.1.4",
"@types/node": "^10.17.13",
"jest": "^24.9.0",
"ts-jest": "^24.3.0",
"jest": "^25.1.0",
"ts-jest": "^25.2.1",
"chalk": "^3.0.0",
"hap-nodejs": "^0.5.6",
"hap-nodejs": "^0.5.7",
"nyc": "^15.0.0",
"rimraf": "^3.0.0",
"ts-node": "^8.6.2",
"typescript": "^3.7.5"
"rimraf": "^3.0.2",
"ts-node": "^8.8.1",
"typescript": "^3.8.3"
}
}

@@ -22,8 +22,7 @@ import * as utils from '../utils';

start() {
if (this.timeout) {
this.resetTimer();
return;
if (!this.timeout) {
this.timeout = setTimeout(this.handleTimer.bind(this), this.interval);
} else {
this.timeout.refresh();
}
this.timeout = setTimeout(this.handleTimer.bind(this), this.interval);
}

@@ -35,9 +34,9 @@

clearTimeout(this.timeout);
this.timeout = setTimeout(this.handleTimer.bind(this), this.interval);
this.timeout.refresh();
}
stop() {
if (this.timeout)
if (this.timeout) {
clearTimeout(this.timeout);
}

@@ -44,0 +43,0 @@ this.timeout = undefined;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc