Comparing version 2.0.17 to 2.0.18
import * as tty from "tty" | ||
const env = process.env || {} | ||
const argv = process.argv || [] | ||
const { env, argv, platform } = typeof process === "undefined" ? {} : process | ||
const isDisabled = "NO_COLOR" in env || argv.includes("--no-color") | ||
const isForced = "FORCE_COLOR" in env || argv.includes("--color") | ||
const isWindows = process.platform === "win32" | ||
const isWindows = platform === "win32" | ||
const isDumbTerminal = env.TERM === "dumb" | ||
@@ -19,3 +18,4 @@ | ||
export const isColorSupported = | ||
!isDisabled && (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI) | ||
!isDisabled && | ||
(isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI) | ||
@@ -22,0 +22,0 @@ const replaceClose = ( |
{ | ||
"name": "colorette", | ||
"version": "2.0.17", | ||
"version": "2.0.18", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
16934
6
420