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

thing-it-device-aircable

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thing-it-device-aircable - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

26

airCableSmartDimmer.js

@@ -164,2 +164,7 @@ module.exports = {

if (this.isSimulated()) {
setInterval(function () {
this.state.batteryLevel = 100 - 20 * Math.floor((Math.random() * 5));
this.publishStateChange();
}.bind(this), 10);
deferred.resolve();

@@ -192,7 +197,6 @@ } else {

AirCableSmartDimmer.prototype.on = function () {
if (this.isSimulated()) {
this.state.switch = true;
this.state.switch = true;
if (!this.isSimulated()) {
}
else {
}

@@ -207,7 +211,6 @@ this.publishStateChange();

AirCableSmartDimmer.prototype.off = function () {
if (this.isSimulated()) {
this.state.switch = false;
this.state.switch = false;
if (!this.isSimulated()) {
}
else {
}

@@ -222,7 +225,6 @@ this.publishStateChange();

AirCableSmartDimmer.prototype.toggle = function () {
if (this.isSimulated()) {
this.state.switch = !this.state.switch;
this.state.switch = !this.state.switch;
if (!this.isSimulated()) {
}
else {
}

@@ -229,0 +231,0 @@ this.publishStateChange();

{
"name": "thing-it-device-aircable",
"version": "0.0.17",
"version": "0.0.18",
"description": "[thing-it-node] Device Plugin for AIRcable products (e.g. AIRcable SmartDimmer).",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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