Fixed bugs, updated packages

This commit is contained in:
Nathan Kellenicki 2020-04-04 17:14:48 -07:00
parent 48532ab56f
commit 4bf26cf158
3 changed files with 587 additions and 609 deletions

1176
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,21 +16,21 @@
"author": "Nathan Kellenicki <nathan@kellenicki.com>", "author": "Nathan Kellenicki <nathan@kellenicki.com>",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"compare-versions": "^3.5.1", "compare-versions": "^3.6.0",
"debug": "^4.1.1", "debug": "^4.1.1",
"@abandonware/noble": "1.9.2-5" "@abandonware/noble": "1.9.2-8"
}, },
"devDependencies": { "devDependencies": {
"@types/debug": "4.1.5", "@types/debug": "4.1.5",
"@types/node": "^13.7.0", "@types/node": "^13.11.0",
"@types/web-bluetooth": "0.0.5", "@types/web-bluetooth": "0.0.5",
"ink-docstrap": "^1.3.2", "ink-docstrap": "^1.3.2",
"jsdoc": "^3.6.3", "jsdoc": "^3.6.3",
"jsdoc-to-markdown": "^5.0.3", "jsdoc-to-markdown": "^5.0.3",
"ts-loader": "^6.2.1", "ts-loader": "^6.2.2",
"tslint": "^6.0.0", "tslint": "^6.1.1",
"typescript": "^3.7.5", "typescript": "^3.8.3",
"webpack": "^4.41.5", "webpack": "^4.42.1",
"webpack-cli": "^3.3.10" "webpack-cli": "^3.3.11"
} }
} }

View File

@ -175,7 +175,7 @@ export class ColorDistanceSensor extends Device {
*/ */
public setColor (color: number | boolean) { public setColor (color: number | boolean) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (typeof color === "boolean") { if (color === false) {
color = 0; color = 0;
} }
if (this.isWeDo2SmartHub) { if (this.isWeDo2SmartHub) {