Skip to content

Commit

Permalink
update color-convert to 1.2.2 (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- authored and rwaldron committed Apr 8, 2016
1 parent 83ddd86 commit 6ddbf53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/lcd.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var Board = require("./board"),
Pin = require("./pin.js"),
lcdCharacters = require("./lcd-chars.js"),
converter = require("color-convert")();
converter = require("color-convert");

var priv = new Map();

Expand Down Expand Up @@ -230,7 +230,7 @@ var Controllers = {
rgb = r;
}
if (typeof r === "string") {
rgb = converter.keyword(r).rgb();
rgb = converter.keyword.rgb(r);
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/led/rgb.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ RGB.prototype.color = function(red, green, blue) {

} else {
// color name
return this.color(converter.keyword2rgb(input.toLowerCase()));
return this.color(converter.keyword.rgb(input.toLowerCase()));
}
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
},
"dependencies": {
"chalk": "latest",
"color-convert": "~0.5.2",
"color-convert": "~1.2.2",
"ease-component": "latest",
"es6-shim": "latest",
"lodash.clonedeep": "^4.3.0",
Expand Down

0 comments on commit 6ddbf53

Please sign in to comment.