href-checker
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -136,6 +136,9 @@ #!/usr/bin/env node | ||
function getResultType(result, options) { | ||
const { pageExists, fragExists, error } = result.output; | ||
const { pageExists, fragExists, error, status } = result.output; | ||
if (error) { | ||
return 3 /* err */; | ||
} | ||
if (status === 429 /** Too many requests */) { | ||
return 3 /* err */; | ||
} | ||
if ((!pageExists && options.errorIf.has(result.type)) || | ||
@@ -142,0 +145,0 @@ (fragExists === false && options.errorIf.has("fragments"))) { |
{ | ||
"name": "href-checker", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Hyperlink checker for HTML pages which checks href attributes by actually visiting linked pages and also checking existence of URL fragments.", | ||
@@ -31,9 +31,9 @@ "keywords": [ | ||
"dependencies": { | ||
"puppeteer": "^5.2.1", | ||
"sade": "^1.7.3" | ||
"puppeteer": "^5.4.1", | ||
"sade": "^1.7.4" | ||
}, | ||
"devDependencies": { | ||
"@types/puppeteer": "^3.0.1", | ||
"@types/puppeteer": "^5.4.0", | ||
"@types/sade": "^1.7.2", | ||
"typescript": "^3.9.7" | ||
"typescript": "^4.0.5" | ||
}, | ||
@@ -40,0 +40,0 @@ "engines": { |
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
16856
358
Updatedpuppeteer@^5.4.1
Updatedsade@^1.7.4