linkinator
Advanced tools
Comparing version 2.6.0 to 2.7.0
@@ -109,4 +109,2 @@ #!/usr/bin/env node | ||
break; | ||
default: | ||
throw new Error('Invalid state.'); | ||
} | ||
@@ -172,4 +170,2 @@ log(`${state} ${chalk.gray(link.url)}`); | ||
break; | ||
default: | ||
throw new Error('Invalid state.'); | ||
} | ||
@@ -176,0 +172,0 @@ log(` ${state} ${chalk.gray(link.url)}`); |
@@ -127,2 +127,10 @@ "use strict"; | ||
} | ||
// enable markdown if someone passes a flag/glob right at it | ||
if (options.markdown === undefined) { | ||
for (const p of options.path) { | ||
if (path.extname(p).toLowerCase() === '.md') { | ||
options.markdown = true; | ||
} | ||
} | ||
} | ||
// Figure out which directory should be used as the root for the web server, | ||
@@ -129,0 +137,0 @@ // and how that impacts the path to the file for the first request. |
{ | ||
"name": "linkinator", | ||
"description": "Find broken links, missing images, etc in your HTML. Scurry around your site and find all those broken links.", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "JustinBeckwith/linkinator", |
Sorry, the diff of this file is not supported yet
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
62127
801