mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 19:10: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 addProperty = function (color, func) {
|
||||||
var allowOverride = ['bold'];
|
var allowOverride = ['bold'];
|
||||||
if (""[color] && allowOverride.indexOf(color) === -1) {
|
|
||||||
throw new Error(color + ' already exists on String.prototype, cannot override.')
|
|
||||||
}
|
|
||||||
exports[color] = function(str) {
|
exports[color] = function(str) {
|
||||||
return func.apply(str);
|
return func.apply(str);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "colors",
|
"name": "colors",
|
||||||
"description": "get colors in your node.js console like what",
|
"description": "get colors in your node.js console like what",
|
||||||
"version": "0.6.0",
|
"version": "0.6.0-1",
|
||||||
"author": "Marak Squires",
|
"author": "Marak Squires",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user