@ctx-core/logger
Advanced tools
Comparing version 8.0.10 to 9.0.0
# @ctx-core/logger | ||
## 9.0.0 | ||
### Major Changes | ||
- "type": "module": module npm type | ||
## 8.0.10 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,1 @@ | ||
export declare function init_chalk(): void; | ||
export declare function chalk_debug(...arg_a: any[]): void; | ||
@@ -3,0 +2,0 @@ export declare function chalk_log(...arg_a: any[]): void; |
@@ -1,6 +0,3 @@ | ||
let chalk; | ||
import chalk from 'chalk'; | ||
const use_chalk = !!(typeof window === 'undefined' && typeof require === 'function'); | ||
export function init_chalk() { | ||
chalk = _chalk(); | ||
} | ||
export function chalk_debug(...arg_a) { | ||
@@ -46,12 +43,2 @@ return (console.debug || console.info).apply(console, debug_chalk_a_(...arg_a)); | ||
} | ||
function _chalk() { | ||
if (use_chalk) { | ||
return require('chalk'); | ||
} | ||
else { | ||
return function chalk(...arg_a) { | ||
return arg_a; | ||
}; | ||
} | ||
} | ||
//# sourceMappingURL=../src/dist/chalk.js.map |
{ | ||
"name": "@ctx-core/logger", | ||
"version": "8.0.10", | ||
"version": "9.0.0", | ||
"description": "ctx-core logger", | ||
@@ -19,2 +19,3 @@ "keywords": [ | ||
"author": "Brian Takita", | ||
"type": "module", | ||
"main": "./dist/index.js", | ||
@@ -21,0 +22,0 @@ "module": "./dist/index.js", |
@@ -1,9 +0,5 @@ | ||
import type { Chalk } from 'chalk' | ||
let chalk:Chalk | ||
import chalk from 'chalk' | ||
const use_chalk = !!( | ||
typeof window === 'undefined' && typeof require === 'function' | ||
) | ||
export function init_chalk() { | ||
chalk = _chalk() | ||
} | ||
export function chalk_debug(...arg_a:any[]) { | ||
@@ -59,10 +55,1 @@ return (console.debug || console.info).apply(console, debug_chalk_a_(...arg_a)) | ||
} | ||
function _chalk() { | ||
if (use_chalk) { | ||
return require('chalk') | ||
} else { | ||
return function chalk(...arg_a:any[]) { | ||
return arg_a | ||
} | ||
} | ||
} |
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
Yes
17089
281