istanbul-coverage-enforcer
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -14,14 +14,11 @@ #!/usr/bin/env node | ||
program | ||
.command('enforce') | ||
.option('-c, --coverage-path <coverage>', 'The path to coverage JSON file') | ||
.option('-t, --threshold-path <threshold>', 'The path to the threshold JSON file') | ||
.action((cmd) => { | ||
try { | ||
enforce(parseAndTrim(cmd.coveragePath), parseAndTrim(cmd.thresholdPath)); | ||
console.log(`[SUCCESS]: Coverage above threshold`.green); | ||
} catch (e) { | ||
console.log(`${e.message}`.red) | ||
} | ||
}); | ||
.parse(process.argv); | ||
program.parse(process.argv); | ||
try { | ||
enforce(parseAndTrim(program.coveragePath), parseAndTrim(program.thresholdPath)); | ||
console.log(`[SUCCESS]: Coverage above threshold`.green); | ||
} catch (e) { | ||
console.log(`${e.message}`.red) | ||
} |
{ | ||
"name": "istanbul-coverage-enforcer", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A Nodejs package and cli tool to enforce code coverage", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
3
0
121490
11
1062