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

homebridge-bigAssFans

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-bigAssFans - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

64

index.js

@@ -57,2 +57,35 @@ var bigAssApi = require("BigAssFansAPI");

/********************************************
* Wrappers for various get and set functions
********************************************/
var passThroughWrapper = function(value) {
return value;
}
var boolGetWrapper = function(value) {
return value > 0;
}
var lightSetWrapper = function(value) {
return (value ? this.lightOn : 0);
}.bind(this)
var fanSetWrapper = function(value) {
return (value ? this.fanOn : 0);
}.bind(this)
var fanRotationSetWrapper = function(value) {
return (value == Characteristic.RotationDirection.CLOCKWISE ? true : false);
}
var fanRotationGetWrapper = function(value) {
return (value ? Characteristic.RotationDirection.CLOCKWISE : Characteristic.RotationDirection.COUNTER_CLOCKWISE);
}
var occupancyGetWrapper = function(value) {
return (value ? Characteristic.OccupancyDetected.OCCUPANCY_DETECTED : Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED);
}
this.lightService = new Service.Lightbulb(this.name);

@@ -109,32 +142,1 @@

/********************************************
* Wrappers for various get and set functions
********************************************/
var passThroughWrapper = function(value) {
return value;
}
var boolGetWrapper = function(value) {
return value > 0;
}
var lightSetWrapper = function(value) {
return (value ? this.lightOn : 0);
}
var fanSetWrapper = function(value) {
return (value ? this.fanOn : 0);
}
var fanRotationSetWrapper = function(value) {
return (value == Characteristic.RotationDirection.CLOCKWISE ? true : false);
}
var fanRotationGetWrapper = function(value) {
return (value ? Characteristic.RotationDirection.CLOCKWISE : Characteristic.RotationDirection.COUNTER_CLOCKWISE);
}
var occupancyGetWrapper = function(value) {
return (value ? Characteristic.OccupancyDetected.OCCUPANCY_DETECTED : Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED);
}
{
"name": "homebridge-bigAssFans",
"version": "0.0.2",
"version": "0.0.3",
"description": "A Homebridge plugin for Big Ass Fans",

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

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