linkinator
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -14,2 +14,3 @@ "use strict"; | ||
const http = require("http"); | ||
const enableDestroy = require("server-destroy"); | ||
const links_1 = require("./links"); | ||
@@ -40,2 +41,3 @@ const ecstatic = require('ecstatic'); | ||
server = yield this.startWebServer(options.path, port); | ||
enableDestroy(server); | ||
options.path = `http://localhost:${port}`; | ||
@@ -49,3 +51,3 @@ } | ||
if (server) { | ||
server.close(); | ||
server.destroy(); | ||
} | ||
@@ -124,3 +126,4 @@ return result; | ||
// only crawl links that start with the same host | ||
const crawl = url.startsWith(opts.checkOptions.path); | ||
const crawl = opts.checkOptions.recurse && | ||
url.startsWith(opts.checkOptions.path); | ||
yield this.crawl({ | ||
@@ -127,0 +130,0 @@ url, |
{ | ||
"name": "linkinator", | ||
"description": "Find broken links, missing images, etc in your HTML.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "MIT", | ||
@@ -29,2 +29,3 @@ "repository": "JustinBeckwith/linkinator", | ||
"meow": "^5.0.0", | ||
"server-destroy": "^1.0.1", | ||
"update-notifier": "^2.5.0" | ||
@@ -41,2 +42,3 @@ }, | ||
"@types/node": "^11.9.3", | ||
"@types/server-destroy": "^1.0.0", | ||
"@types/sinon": "^7.0.5", | ||
@@ -43,0 +45,0 @@ "@types/update-notifier": "^2.5.0", |
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
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
25449
340
1
8
20
+ Addedserver-destroy@^1.0.1
+ Addedserver-destroy@1.0.1(transitive)