From 81981ae7c6856154f32e509038c20bcbc2cebdb7 Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 17 Jun 2015 14:49:52 +0200 Subject: [PATCH 1/6] [fix] In-proper scope reference. Closes #124 --- lib/extendStringPrototype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extendStringPrototype.js b/lib/extendStringPrototype.js index bbb9bcc..67374a1 100644 --- a/lib/extendStringPrototype.js +++ b/lib/extendStringPrototype.js @@ -86,7 +86,7 @@ module['exports'] = function () { addProperty(prop, function () { var ret = this; for (var t = 0; t < theme[prop].length; t++) { - ret = exports[theme[prop][t]](ret); + ret = colors[theme[prop][t]](ret); } return ret; }); From 5958f1677d827fec37275427476499d84613e4a4 Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 17 Jun 2015 14:50:29 +0200 Subject: [PATCH 2/6] [dist] Bump to v1.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a896254..67e03ed 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "colors", "description": "get colors in your node.js console", - "version": "1.1.0", + "version": "1.1.1", "author": "Marak Squires", "homepage": "https://github.com/Marak/colors.js", "bugs": "https://github.com/Marak/colors.js/issues", From d05ab9df3c89ff7706dbc4395ef27dbbe892e24f Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 17 Jun 2015 14:59:08 +0200 Subject: [PATCH 3/6] [fix] Really bad example in README. Examples should actually contain code that can run. Blame c11d23d96aee270bcfc8761c1f6c20579def88f3 --- ReadMe.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index f139bd5..0326aab 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -166,12 +166,13 @@ console.log(colors.warn("this is a warning")); You can also combine them: ```javascript +var colors = require('colors'); + colors.setTheme({ - link: ['underline', 'blue'] + custom: ['red', 'underline'] }); -// outputs underlined blue text -console.log(colors.info('Listening on ') + colors.link('http://0.0.0.0:' + port)); +console.log('test'.custom); ``` *Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.* From 8bf2ad9fa695dcb30b7e9fd83691b139fd6655c4 Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 17 Jun 2015 15:01:51 +0200 Subject: [PATCH 4/6] [dist] Bump to v1.1.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 67e03ed..c365064 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "colors", "description": "get colors in your node.js console", - "version": "1.1.1", + "version": "1.1.2", "author": "Marak Squires", "homepage": "https://github.com/Marak/colors.js", "bugs": "https://github.com/Marak/colors.js/issues", From 90dd85b173cc48d668412a84306bf6b01751dd21 Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 17 Jun 2015 15:42:07 +0200 Subject: [PATCH 5/6] Update ReadMe.md --- ReadMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReadMe.md b/ReadMe.md index 0326aab..f09eb70 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -163,7 +163,7 @@ console.log(colors.warn("this is a warning")); ``` -You can also combine them: +### Combining Colors ```javascript var colors = require('colors'); From 580b266a0aa60b486f178020ccaf78f5ae7dacf3 Mon Sep 17 00:00:00 2001 From: fscherwi Date: Thu, 24 Sep 2015 20:38:28 +0200 Subject: [PATCH 6/6] test Node.js 0.12 and 4 --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ec43125..22a2e83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: node_js node_js: + - "4" + - "0.12" - "0.11" - "0.10" - "0.8" - - "0.6" \ No newline at end of file + - "0.6"