mirror of
				https://github.com/flynx/colors.js.git
				synced 2025-10-31 12:00:08 +00:00 
			
		
		
		
	Update supports-colors.js
This commit is contained in:
		
							parent
							
								
									a0bb404163
								
							
						
					
					
						commit
						493733638d
					
				| @ -29,7 +29,7 @@ var hasFlag = require('./has-flag.js'); | |||||||
| 
 | 
 | ||||||
| var env = process.env; | var env = process.env; | ||||||
| 
 | 
 | ||||||
| let forceColor; | var forceColor; | ||||||
| if (hasFlag('no-color') || | if (hasFlag('no-color') || | ||||||
| 	hasFlag('no-colors') || | 	hasFlag('no-colors') || | ||||||
| 	hasFlag('color=false')) { | 	hasFlag('color=false')) { | ||||||
| @ -50,7 +50,7 @@ function translateLevel(level) { | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	return { | 	return { | ||||||
| 		level, | 		level: level, | ||||||
| 		hasBasic: true, | 		hasBasic: true, | ||||||
| 		has256: level >= 2, | 		has256: level >= 2, | ||||||
| 		has16m: level >= 3 | 		has16m: level >= 3 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user