mirror of
				https://github.com/flynx/colors.js.git
				synced 2025-10-31 20:10:09 +00:00 
			
		
		
		
	Merge pull request #179 from brettz9/patch-1
Update extendStringPrototype.js and merge master into develop
This commit is contained in:
		
						commit
						c8cb532017
					
				
							
								
								
									
										2
									
								
								LICENSE
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								LICENSE
									
									
									
									
									
								
							| @ -1,3 +1,5 @@ | |||||||
|  | MIT License | ||||||
|  | 
 | ||||||
| Original Library | Original Library | ||||||
|   - Copyright (c) Marak Squires |   - Copyright (c) Marak Squires | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -9,14 +9,6 @@ module['exports'] = function () { | |||||||
|     String.prototype.__defineGetter__(color, func); |     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 () { |   addProperty('strip', function () { | ||||||
|     return colors.strip(this); |     return colors.strip(this); | ||||||
|   }); |   }); | ||||||
| @ -67,7 +59,7 @@ module['exports'] = function () { | |||||||
|     var stringPrototypeBlacklist = [ |     var stringPrototypeBlacklist = [ | ||||||
|       '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor', |       '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor', | ||||||
|       'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt', |       'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt', | ||||||
|       'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'repeat', 'replace', 'search', 'slice', 'split', 'substring', |       'indexOf', 'lastIndexOf', 'length', 'localeCompare', 'match', 'repeat', 'replace', 'search', 'slice', 'split', 'substring', | ||||||
|       'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight' |       'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight' | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| { | { | ||||||
|     "name": "colors", |     "name": "colors", | ||||||
|     "description": "get colors in your node.js console", |     "description": "get colors in your node.js console", | ||||||
|     "version": "1.2.0", |     "version": "1.2.1", | ||||||
|     "author": "Marak Squires", |     "author": "Marak Squires", | ||||||
|     "homepage": "https://github.com/Marak/colors.js", |     "homepage": "https://github.com/Marak/colors.js", | ||||||
|     "bugs": "https://github.com/Marak/colors.js/issues", |     "bugs": "https://github.com/Marak/colors.js/issues", | ||||||
| @ -23,6 +23,8 @@ | |||||||
|         "lib", |         "lib", | ||||||
|         "LICENSE", |         "LICENSE", | ||||||
|         "safe.js", |         "safe.js", | ||||||
|         "themes" |         "themes", | ||||||
|  |         "index.d.ts", | ||||||
|  |         "safe.d.ts" | ||||||
|     ] |     ] | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user