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

homebridge-syntex-webhooks

Package Overview
Dependencies
Maintainers
1
Versions
1176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-syntex-webhooks - npm Package Compare versions

Comparing version 2.3.8 to 2.3.9-b1

4

package.json
{
"name": "homebridge-syntex-webhooks",
"version": "2.3.8",
"version": "2.3.9-b1",
"description": "A webhook plugin for HTTP devices",

@@ -15,3 +15,3 @@ "main": "index.js",

"color-convert": "^1.5.0",
"homebridge-syntex-dynamic-platform": "1.0.8-b42",
"homebridge-syntex-dynamic-platform": "1.0.8-b43",
"json-fs-store": "^1.0.1"

@@ -18,0 +18,0 @@ },

@@ -36,3 +36,3 @@ const { BlindService } = require('homebridge-syntex-dynamic-platform');

super.setTargetPosition(value, () => callback(this.updatePosition(value)), true);
super.setTargetPosition(value, () => callback(this.updateTarget(value)), true);

@@ -55,20 +55,20 @@ this.AutomationSystem.LogikEngine.runAutomation(this, { value });

{
callback(null, this.position);
callback(null, this.mode);
}
updatePosition(value)
updateTarget(value)
{
this.position = value > 0 ? this.Characteristic.PositionState.INCREASING : this.Characteristic.PositionState.DECREASING;
this.mode = value > 0 ? this.Characteristic.PositionState.INCREASING : this.Characteristic.PositionState.DECREASING;
this.service.getCharacteristic(this.Characteristic.TargetPosition).updateValue(value);
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.position);
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.mode);
super.setPositionState(this.position, () => setTimeout(() => {
super.setPositionState(this.mode, () => setTimeout(() => {
this.position = this.Characteristic.PositionState.STOPPED;
this.mode = this.Characteristic.PositionState.STOPPED;
this.service.getCharacteristic(this.Characteristic.CurrentPosition).updateValue(this.value);
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.position);
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.mode);
super.setPositionState(this.position, () => {});
super.setPositionState(this.mode, () => {});

@@ -75,0 +75,0 @@ }, value > 0 ? this.timeDelayUp : this.timeDelayDown));

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