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

homebridge-syntex-dynamic-platform

Package Overview
Dependencies
Maintainers
1
Versions
348
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-syntex-dynamic-platform - npm Package Compare versions

Comparing version 1.0.8-b52 to 1.0.8-b53

2

package.json
{
"name": "homebridge-syntex-dynamic-platform",
"version": "1.0.8-b52",
"version": "1.0.8-b53",
"description": "A Dynamic Platform Accessory",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -151,2 +151,34 @@ const BaseService = require('../base');

}
setToCurrentState(state, targetCallback, modeCallback, unchangedCallback)
{
if(state.target != null && (!super.hasState('target') || this.target != state.target))
{
this.changedTarget = true;
}
if(state.mode != null && (!super.hasState('mode') || this.mode != state.mode))
{
this.changedMode = true;
}
if(this.changedTarget)
{
targetCallback(() => {
this.changedTarget = false;
});
}
else if(this.changedMode)
{
modeCallback(() => {
this.changedMode = false;
});
}
else
{
unchangedCallback(() => {});
}
}
}
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