@ctx-core/logger
Advanced tools
Comparing version 9.2.9 to 9.2.10
@@ -25,31 +25,26 @@ const use_ansi = !!(typeof window === 'undefined' && typeof require === 'function') | ||
function debug_ansi_a_(...arg_a) { | ||
return use_ansi ? [ | ||
`\x1B[37m${arg_a.join(' ')}\x1B[39m` | ||
] // chalk.white | ||
: arg_a | ||
return use_ansi | ||
? [`\x1B[37m${arg_a.join(' ')}\x1B[39m`] /* chalk.white */ | ||
: arg_a | ||
} | ||
function log_ansi_a_(...arg_a) { | ||
return use_ansi ? [ | ||
`\x1B[90m${arg_a.join(' ')}\x1B[39m` | ||
] // chalk.grey | ||
: arg_a | ||
return use_ansi | ||
? [`\x1B[90m${arg_a.join(' ')}\x1B[39m`] /* chalk.grey */ | ||
: arg_a | ||
} | ||
function info_ansi_a_(...arg_a) { | ||
return use_ansi ? [ | ||
`\x1B[32m${arg_a.join(' ')}\x1B[39m` | ||
] // chalk.green | ||
: arg_a | ||
return use_ansi | ||
? [`\x1B[32m${arg_a.join(' ')}\x1B[39m`] // chalk.green | ||
: arg_a | ||
} | ||
function warn_ansi_a_(...arg_a) { | ||
return use_ansi ? [ | ||
`\x1B[31m${arg_a.join(' ')}\x1B[39m` | ||
] // chalk.red | ||
: arg_a | ||
return use_ansi | ||
? [`\x1B[31m${arg_a.join(' ')}\x1B[39m`] /* chalk.red */ | ||
: arg_a | ||
} | ||
function error_ansi_a_(...arg_a) { | ||
return use_ansi ? [ | ||
`\x1B[31m\x1B[1m${arg_a.join(' ')}\x1B[22m\x1B[39m` | ||
] // chalk.red.bold | ||
: arg_a | ||
return use_ansi | ||
? [`\x1B[31m\x1B[1m${arg_a.join(' ')}\x1B[22m\x1B[39m`] /* chalk.red.bold */ | ||
: arg_a | ||
} | ||
{ | ||
"name": "@ctx-core/logger", | ||
"version": "9.2.9", | ||
"version": "9.2.10", | ||
"description": "ctx-core logger", | ||
@@ -40,5 +40,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"c8": "^8.0.1", | ||
"c8": "^9.1.0", | ||
"check-dts": "^0.7.2", | ||
"tsx": "^4.7.0", | ||
"tsx": "^4.7.1", | ||
"typescript": "next", | ||
@@ -56,6 +56,7 @@ "uvu": "^0.5.6" | ||
"exec": "$@", | ||
"test": "pnpm test-unit && check-dts", | ||
"test-unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'", | ||
"test-unit-coverage": "c8 pnpm test-unit" | ||
"test": "pnpm test:unit && pnpm test:types", | ||
"test:types": "check-dts", | ||
"test:unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'", | ||
"test:unit:coverage": "c8 pnpm test:unit" | ||
} | ||
} |
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
6756
170