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

hue

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hue - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

dist/src/models/Light.d.ts

@@ -27,5 +27,5 @@ import Bridge from './Bridge';

toggle(): Promise<void>;
dim(direction: -1 | 1): Promise<void>;
dim(direction?: -1 | 1): Promise<void>;
freeze(): Promise<void>;
}
export default Light;

@@ -278,3 +278,3 @@ "use strict";

case 0:
if (direction) {
if (typeof direction === 'number') {
this.dim_bri_incr = direction;

@@ -281,0 +281,0 @@ }

{
"name": "hue",
"version": "0.2.3",
"version": "0.2.4",
"description": "An easy to use wrapper for the Hue API in NodeJS",

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

@@ -135,4 +135,4 @@ import Bridge from './Bridge';

async dim(direction: -1|1) : Promise<void> {
if (direction) {
async dim(direction?: -1|1) : Promise<void> {
if (typeof direction === 'number') {
this.dim_bri_incr = direction;

@@ -139,0 +139,0 @@ } else {

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