linkinator
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -8,3 +8,4 @@ "use strict"; | ||
const links_1 = require("./links"); | ||
const ecstatic = require('ecstatic'); | ||
const finalhandler = require('finalhandler'); | ||
const serveStatic = require('serve-static'); | ||
var LinkState; | ||
@@ -59,6 +60,8 @@ (function (LinkState) { | ||
startWebServer(root, port) { | ||
return new Promise(resolve => { | ||
return new Promise((resolve, reject) => { | ||
const serve = serveStatic(root); | ||
const server = http | ||
.createServer(ecstatic({ root })) | ||
.listen(port, () => resolve(server)); | ||
.createServer((req, res) => serve(req, res, finalhandler(req, res))) | ||
.listen(port, () => resolve(server)) | ||
.on('error', reject); | ||
}); | ||
@@ -65,0 +68,0 @@ } |
{ | ||
"name": "linkinator", | ||
"description": "Find broken links, missing images, etc in your HTML. Scurry around your site and find all those broken links.", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"license": "MIT", | ||
@@ -24,6 +24,7 @@ "repository": "JustinBeckwith/linkinator", | ||
"cheerio": "^1.0.0-rc.2", | ||
"ecstatic": "^4.1.2", | ||
"finalhandler": "^1.1.2", | ||
"gaxios": "^2.0.0", | ||
"jsonexport": "^2.4.1", | ||
"meow": "^5.0.0", | ||
"serve-static": "^1.14.1", | ||
"server-destroy": "^1.0.1", | ||
@@ -34,2 +35,3 @@ "update-notifier": "^3.0.0" | ||
"@types/cheerio": "^0.22.10", | ||
"@types/finalhandler": "^1.1.0", | ||
"@types/meow": "^5.0.0", | ||
@@ -39,2 +41,3 @@ "@types/mocha": "^5.2.6", | ||
"@types/node": "^11.9.4", | ||
"@types/serve-static": "^1.13.2", | ||
"@types/server-destroy": "^1.0.0", | ||
@@ -48,3 +51,3 @@ "@types/sinon": "^7.0.6", | ||
"nyc": "^14.0.0", | ||
"semantic-release": "^15.13.12", | ||
"semantic-release": "^15.13.13", | ||
"sinon": "^7.2.3", | ||
@@ -51,0 +54,0 @@ "source-map-support": "^0.5.10", |
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
32932
402
9
19
+ Addedfinalhandler@^1.1.2
+ Addedserve-static@^1.14.1
+ Addeddebug@2.6.9(transitive)
+ Addeddepd@2.0.0(transitive)
+ Addeddestroy@1.2.0(transitive)
+ Addedencodeurl@1.0.22.0.0(transitive)
+ Addedescape-html@1.0.3(transitive)
+ Addedetag@1.8.1(transitive)
+ Addedfinalhandler@1.3.1(transitive)
+ Addedfresh@0.5.2(transitive)
+ Addedhttp-errors@2.0.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedmime@1.6.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedparseurl@1.3.3(transitive)
+ Addedrange-parser@1.2.1(transitive)
+ Addedsend@0.19.0(transitive)
+ Addedserve-static@1.16.2(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedstatuses@2.0.1(transitive)
+ Addedtoidentifier@1.0.1(transitive)
+ Addedunpipe@1.0.0(transitive)
- Removedecstatic@^4.1.2
- Removedcharset@1.0.1(transitive)
- Removedecstatic@4.1.4(transitive)
- Removedhe@1.2.0(transitive)
- Removedmime@2.6.0(transitive)
- Removedurl-join@4.0.1(transitive)