Comparing version 0.2.3 to 0.2.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154403