From 5152d16f22789d66e107275e006f88517641ed18 Mon Sep 17 00:00:00 2001 From: Edgar Hipp Date: Tue, 21 Jun 2016 13:33:20 +0200 Subject: [PATCH 1/3] Update LICENSE --- LICENSE | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 3de4e33..17880ff 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,5 @@ +MIT License + Original Library - Copyright (c) Marak Squires @@ -20,4 +22,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file +THE SOFTWARE. From 255c07877296ced2ba2353f984b49ee7e1a349aa Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Thu, 12 Jan 2017 09:37:25 +0800 Subject: [PATCH 2/3] Update extendStringPrototype.js Remove ununused function and fix method name in blacklist --- lib/extendStringPrototype.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/extendStringPrototype.js b/lib/extendStringPrototype.js index 67374a1..6c04c87 100644 --- a/lib/extendStringPrototype.js +++ b/lib/extendStringPrototype.js @@ -9,14 +9,6 @@ module['exports'] = function () { String.prototype.__defineGetter__(color, func); }; - var sequencer = function sequencer (map, str) { - return function () { - var exploded = this.split(""), i = 0; - exploded = exploded.map(map); - return exploded.join(""); - } - }; - addProperty('strip', function () { return colors.strip(this); }); @@ -67,7 +59,7 @@ module['exports'] = function () { var stringPrototypeBlacklist = [ '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt', - 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring', + 'indexOf', 'lastIndexOf', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight' ]; @@ -110,4 +102,4 @@ module['exports'] = function () { } }; -}; \ No newline at end of file +}; From dc82cc01d00df2f1cdcf90cba699a5a61da70446 Mon Sep 17 00:00:00 2001 From: DABH Date: Sun, 11 Mar 2018 22:51:05 -0700 Subject: [PATCH 3/3] Fix files field in package.json to include TS definitions; bump version --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e26e29d..a24614a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "colors", "description": "get colors in your node.js console", - "version": "1.2.0", + "version": "1.2.1", "author": "Marak Squires", "homepage": "https://github.com/Marak/colors.js", "bugs": "https://github.com/Marak/colors.js/issues", @@ -23,6 +23,8 @@ "lib", "LICENSE", "safe.js", - "themes" + "themes", + "index.d.ts", + "safe.d.ts" ] }