Fixed bugs, updated packages
This commit is contained in:
parent
48532ab56f
commit
4bf26cf158
1178
package-lock.json
generated
1178
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -16,21 +16,21 @@
|
||||
"author": "Nathan Kellenicki <nathan@kellenicki.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"compare-versions": "^3.5.1",
|
||||
"compare-versions": "^3.6.0",
|
||||
"debug": "^4.1.1",
|
||||
"@abandonware/noble": "1.9.2-5"
|
||||
"@abandonware/noble": "1.9.2-8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "4.1.5",
|
||||
"@types/node": "^13.7.0",
|
||||
"@types/node": "^13.11.0",
|
||||
"@types/web-bluetooth": "0.0.5",
|
||||
"ink-docstrap": "^1.3.2",
|
||||
"jsdoc": "^3.6.3",
|
||||
"jsdoc-to-markdown": "^5.0.3",
|
||||
"ts-loader": "^6.2.1",
|
||||
"tslint": "^6.0.0",
|
||||
"typescript": "^3.7.5",
|
||||
"webpack": "^4.41.5",
|
||||
"webpack-cli": "^3.3.10"
|
||||
"ts-loader": "^6.2.2",
|
||||
"tslint": "^6.1.1",
|
||||
"typescript": "^3.8.3",
|
||||
"webpack": "^4.42.1",
|
||||
"webpack-cli": "^3.3.11"
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ export class ColorDistanceSensor extends Device {
|
||||
*/
|
||||
public setColor (color: number | boolean) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (typeof color === "boolean") {
|
||||
if (color === false) {
|
||||
color = 0;
|
||||
}
|
||||
if (this.isWeDo2SmartHub) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user