linkinator
Advanced tools
Comparing version 2.13.5 to 2.13.6
@@ -233,8 +233,9 @@ #!/usr/bin/env node | ||
const total = (Date.now() - start) / 1000; | ||
const scannedLinks = result.links.filter(x => x.state !== index_1.LinkState.SKIPPED); | ||
if (!result.passed) { | ||
const borked = result.links.filter(x => x.state === index_1.LinkState.BROKEN); | ||
logger.error(chalk.bold(`${chalk.red('ERROR')}: Detected ${borked.length} broken links. Scanned ${chalk.yellow(result.links.length.toString())} links in ${chalk.cyan(total.toString())} seconds.`)); | ||
logger.error(chalk.bold(`${chalk.red('ERROR')}: Detected ${borked.length} broken links. Scanned ${chalk.yellow(scannedLinks.length.toString())} links in ${chalk.cyan(total.toString())} seconds.`)); | ||
process.exit(1); | ||
} | ||
logger.error(chalk.bold(`🤖 Successfully scanned ${chalk.green(result.links.length.toString())} links in ${chalk.cyan(total.toString())} seconds.`)); | ||
logger.error(chalk.bold(`🤖 Successfully scanned ${chalk.green(scannedLinks.length.toString())} links in ${chalk.cyan(total.toString())} seconds.`)); | ||
} | ||
@@ -241,0 +242,0 @@ function parseVerbosity(flags) { |
{ | ||
"name": "linkinator", | ||
"description": "Find broken links, missing images, etc in your HTML. Scurry around your site and find all those broken links.", | ||
"version": "2.13.5", | ||
"version": "2.13.6", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "JustinBeckwith/linkinator", |
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
94756
1295