@knit/logger
Advanced tools
Comparing version 0.8.0 to 0.8.1
38
index.js
@@ -1,31 +0,25 @@ | ||
"use strict"; | ||
/* @flow */ | ||
const chalk = require("chalk"); | ||
const updateRdrr = require("listr-update-renderer"); | ||
const silentRdrr = require("listr-silent-renderer"); | ||
const verboseRdrr = require("listr-verbose-renderer"); | ||
const info = (...msg) => console.log(chalk.blue("info"), ...msg); | ||
type TLog = (...e: Array<mixed>) => void; | ||
const command = (...msg) => console.log(chalk.blue("command"), ...msg); | ||
const info: TLog = (...msg) => console.log(chalk.blue("info"), ...msg); | ||
const command: TLog = (...msg) => console.log(chalk.blue("command"), ...msg); | ||
const warning: TLog = (...msg) => console.log(chalk.yellow("warning"), ...msg); | ||
const error: TLog = (...msg) => console.log(chalk.red("error"), ...msg); | ||
const success: TLog = (...msg) => console.log(chalk.green("success"), ...msg); | ||
const missing: TLog = (...msg) => console.log(chalk.red("missing"), ...msg); | ||
const subtree: TLog = (...msg) => console.log(chalk.white("└─"), ...msg); | ||
const warning = (...msg) => console.log(chalk.yellow("warning"), ...msg); | ||
export type TGetRenderer = { | ||
silent: boolean, | ||
verbose: boolean | ||
}; | ||
const error = (...msg) => console.log(chalk.red("error"), ...msg); | ||
const success = (...msg) => console.log(chalk.green("success"), ...msg); | ||
const missing = (...msg) => console.log(chalk.red("missing"), ...msg); | ||
const subtree = (...msg) => console.log(chalk.white("└─"), ...msg); | ||
const getRenderer = opts => { | ||
const { | ||
silent, | ||
verbose | ||
} = opts || {}; | ||
const getRenderer = (opts: TGetRenderer) => { | ||
const { silent, verbose } = opts || {}; | ||
if (silent) { | ||
@@ -49,2 +43,2 @@ return silentRdrr; | ||
getRenderer | ||
}; | ||
}; |
{ | ||
"homepage": "https://github.com/knitjs/knit#readme", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Shane Wilson" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/knitjs/knit/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/knitjs/knit.git" | ||
}, | ||
"engines": { | ||
"node": ">=4", | ||
"npm": ">=3" | ||
}, | ||
"private": false, | ||
"name": "@knit/logger", | ||
"description": "cli logger", | ||
"version": "0.8.0", | ||
"dependencies": { | ||
"chalk": "3.0.0-beta.1", | ||
"listr-silent-renderer": "^1.1.1", | ||
"listr-update-renderer": "^0.5.0", | ||
"listr-verbose-renderer": "^0.5.0" | ||
} | ||
"version": "0.8.1" | ||
} |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
0
36
1254
1
2
2
1
- Removedchalk@3.0.0-beta.1
- Removedlistr-silent-renderer@^1.1.1
- Removedlistr-update-renderer@^0.5.0
- Removedlistr-verbose-renderer@^0.5.0
- Removed@samverschueren/stream-to-observable@0.3.1(transitive)
- Removedansi-escapes@3.2.0(transitive)
- Removedansi-regex@2.1.13.0.1(transitive)
- Removedansi-styles@2.2.13.2.14.3.0(transitive)
- Removedany-observable@0.3.0(transitive)
- Removedchalk@1.1.32.4.23.0.0-beta.1(transitive)
- Removedcli-cursor@2.1.0(transitive)
- Removedcli-truncate@0.2.1(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcolor-convert@1.9.32.0.1(transitive)
- Removedcolor-name@1.1.31.1.4(transitive)
- Removeddate-fns@1.30.1(transitive)
- Removedelegant-spinner@1.0.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfigures@1.7.02.0.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-flag@3.0.04.0.0(transitive)
- Removedindent-string@3.2.0(transitive)
- Removedis-fullwidth-code-point@1.0.02.0.0(transitive)
- Removedis-observable@1.1.0(transitive)
- Removedis-promise@2.2.2(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedlistr@0.14.3(transitive)
- Removedlistr-silent-renderer@1.1.1(transitive)
- Removedlistr-update-renderer@0.5.0(transitive)
- Removedlistr-verbose-renderer@0.5.0(transitive)
- Removedlog-symbols@1.0.2(transitive)
- Removedlog-update@2.3.0(transitive)
- Removedmimic-fn@1.2.0(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonetime@2.0.1(transitive)
- Removedp-map@2.1.0(transitive)
- Removedrestore-cursor@2.0.0(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedslice-ansi@0.0.4(transitive)
- Removedstring-width@1.0.22.1.1(transitive)
- Removedstrip-ansi@3.0.14.0.0(transitive)
- Removedsupports-color@2.0.05.5.07.2.0(transitive)
- Removedsymbol-observable@1.2.0(transitive)
- Removedtslib@1.14.1(transitive)
- Removedwrap-ansi@3.0.1(transitive)