@knit/logger
Advanced tools
Comparing version 0.0.37 to 0.1.0
'use strict'; | ||
/* @flow weak */ | ||
var chalk = require('chalk'); | ||
var updateRdrr = require('listr-update-renderer'); | ||
var silentRdrr = require('listr-silent-renderer'); | ||
var verboseRdrr = require('listr-verbose-renderer'); | ||
@@ -73,4 +72,13 @@ | ||
exports.getRenderer = function () { | ||
return process.stdout.isTTY ? updateRdrr : verboseRdrr; | ||
exports.getRenderer = function (_ref) { | ||
var silent = _ref.silent, | ||
verbose = _ref.verbose; | ||
if (silent) { | ||
return silentRdrr; | ||
} else if (verbose) { | ||
return verboseRdrr; | ||
} | ||
return updateRdrr; | ||
}; |
@@ -26,10 +26,12 @@ { | ||
"description": "cli logger", | ||
"version": "0.0.37", | ||
"main": "dist/lib/index.js", | ||
"version": "0.1.0", | ||
"main": "/Users/swilson/Documents/Development/js/knitjs/knit/dist/lib/index.js", | ||
"dependencies": { | ||
"chalk": "1.1.3", | ||
"listr-silent-renderer": "^1.1.1", | ||
"listr-update-renderer": "0.1.2", | ||
"listr-verbose-renderer": "0.1.0" | ||
"listr-verbose-renderer": "^0.2.1" | ||
}, | ||
"peerDependencies": {} | ||
"peerDependencies": {}, | ||
"optionalDependencies": {} | ||
} |
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
3132
63
4
+ Addedlistr-silent-renderer@^1.1.1
+ Addedlistr-silent-renderer@1.1.1(transitive)
+ Addedlistr-verbose-renderer@0.2.1(transitive)
- Removedlistr-verbose-renderer@0.1.0(transitive)