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

homebridge-rflink

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-rflink - npm Package Compare versions

Comparing version 1.3.2-dev.4 to 1.3.2-dev.5

13

dist/index.js

@@ -236,8 +236,11 @@ "use strict";

this.updateCurrentPosition(newCurrentPosition);
if (!this.config.devices) {
throw new Error("No device provided");
if (this.targetPosition !== 0 && this.targetPosition !== 100) {
// Send STOP command if that target position is not all the way open/closed.
if (!this.config.devices) {
throw new Error("No device provided");
}
const device = this.config.devices[0];
this.log(`stopping ${this.config.type.toLowerCase()} '${this.config.name}' (device = ${device})`);
this.send(`10;${device};STOP\r\n`, () => { });
}
const device = this.config.devices[0];
this.log(`stopping ${this.config.type.toLowerCase()} '${this.config.name}' (device = ${device})`);
this.send(`10;${device};STOP\r\n`, () => { });
}

@@ -244,0 +247,0 @@ else {

{
"name": "homebridge-rflink",
"version": "1.3.2-dev.4",
"version": "1.3.2-dev.5",
"description": "RFLink support for Homebridge",

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

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