mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 02:50:10 +00:00
[dist] [fix] Remove override check. Bump to v0.6.0-1
This commit is contained in:
parent
1ccd286880
commit
3c2eb9d0e6
@ -46,9 +46,6 @@ if (!isHeadless) {
|
||||
//
|
||||
var addProperty = function (color, func) {
|
||||
var allowOverride = ['bold'];
|
||||
if (""[color] && allowOverride.indexOf(color) === -1) {
|
||||
throw new Error(color + ' already exists on String.prototype, cannot override.')
|
||||
}
|
||||
exports[color] = function(str) {
|
||||
return func.apply(str);
|
||||
};
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "colors",
|
||||
"description": "get colors in your node.js console like what",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.0-1",
|
||||
"author": "Marak Squires",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user