Comparing version 0.0.6 to 0.0.7
@@ -13,2 +13,3 @@ #!/usr/bin/env node | ||
--help, -h Show help | ||
--silent Prevent snippets from printing messages through the console | ||
--version, -v, -V Show version | ||
@@ -48,2 +49,2 @@ | ||
runner(config.dependencies, config.timeout, file) | ||
runner(config.dependencies, config.timeout, file, cli.flags.silent) |
@@ -107,4 +107,4 @@ const R = require('ramda') | ||
// reportResults :: Spinner -> String -> ([FileResult] -> Cases) | ||
const reportResults = (spinner, glob) => results => { | ||
// reportResults :: Spinner -> String -> Boolean -> ([FileResult] -> Cases) | ||
const reportResults = (spinner, glob, silent) => results => { | ||
const cases = countCases(results) | ||
@@ -126,3 +126,5 @@ | ||
listOutput(sortedResults) | ||
if (!silent) { | ||
listOutput(sortedResults) | ||
} | ||
@@ -129,0 +131,0 @@ if (cases.reject) { |
const { taskOfSnippets } = require('./lib') | ||
const { createSpinner, reportResults } = require('./reporter') | ||
function runner(dependencies, timeout, glob) { | ||
function runner(dependencies, timeout, glob, silent) { | ||
const spinner = createSpinner() | ||
@@ -10,3 +10,3 @@ | ||
return taskOfSnippets(dependencies, timeout, glob) | ||
.map(reportResults(spinner, glob)) | ||
.map(reportResults(spinner, glob, silent)) | ||
.fork( | ||
@@ -13,0 +13,0 @@ error => spinner.fail(error.message), |
{ | ||
"name": "chimi", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Validate JavaScript code from your README", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
89072
360
2