harp 0.40.3 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/harp +1 -1
- package/lib/middleware.js +2 -3
- package/package.json +16 -17
package/bin/harp
CHANGED
package/lib/middleware.js
CHANGED
|
@@ -8,7 +8,6 @@ var skin = require('./skin')
|
|
|
8
8
|
var connect = require('connect')
|
|
9
9
|
var send = require('send')
|
|
10
10
|
var utilsPause = require('pause')
|
|
11
|
-
var utilsEscape = require('escape-html')
|
|
12
11
|
var parse = require('parseurl')
|
|
13
12
|
var url = require('url')
|
|
14
13
|
var auth = require('basic-auth')
|
|
@@ -453,7 +452,7 @@ exports.static = function(req, res, next) {
|
|
|
453
452
|
var pathname = url.parse(req.originalUrl).pathname;
|
|
454
453
|
res.statusCode = 301;
|
|
455
454
|
res.setHeader('Location', pathname + '/');
|
|
456
|
-
res.end('Redirecting to ' +
|
|
455
|
+
res.end('Redirecting to ' + pathname + '/');
|
|
457
456
|
}
|
|
458
457
|
|
|
459
458
|
function error(err) {
|
|
@@ -618,7 +617,7 @@ exports.process = function(req, rsp, next){
|
|
|
618
617
|
// 301 redirect
|
|
619
618
|
rsp.statusCode = 301
|
|
620
619
|
rsp.setHeader('Location', prospectCleanPath)
|
|
621
|
-
rsp.end('Redirecting to ' +
|
|
620
|
+
rsp.end('Redirecting to ' + prospectCleanPath)
|
|
622
621
|
}
|
|
623
622
|
|
|
624
623
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "Static web server with built in preprocessing",
|
|
5
5
|
"author": "Brock Whitten <brock@chloi.io>",
|
|
6
6
|
"contributors": [
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"Jurgen Van de Moere <jurgen.van.de.moere@gmail.com>",
|
|
23
23
|
"Marco Emrich <m.emrich@webmasters.de>",
|
|
24
24
|
"Roger K <misterhtmlcss@gmail.com>",
|
|
25
|
-
"Claus Colloseus <ccprog@gmx.de>"
|
|
25
|
+
"Claus Colloseus <ccprog@gmx.de>",
|
|
26
|
+
"mannyluvstacos <mannyis@typingona.computer>"
|
|
26
27
|
],
|
|
27
28
|
"keywords": [
|
|
28
29
|
"static web server",
|
|
@@ -42,29 +43,27 @@
|
|
|
42
43
|
"url": "https://github.com/sintaxi/harp.git"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
46
|
+
"@colors/colors": "1.5.0",
|
|
45
47
|
"async": "0.2.9",
|
|
46
|
-
"basic-auth": "
|
|
47
|
-
"boxt": "
|
|
48
|
-
"
|
|
49
|
-
"connect": "^3.6.6",
|
|
48
|
+
"basic-auth": "2.0.1",
|
|
49
|
+
"boxt": "1.1.2",
|
|
50
|
+
"connect": "3.7.0",
|
|
50
51
|
"envy-json": "0.2.1",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"parseurl": "^1.3.2",
|
|
52
|
+
"fs-extra": "10.1.0",
|
|
53
|
+
"mime-types": "2.1.35",
|
|
54
|
+
"minimist": "1.2.6",
|
|
55
|
+
"parseurl": "1.3.3",
|
|
56
56
|
"pause": "0.1.0",
|
|
57
|
-
"send": "
|
|
58
|
-
"terraform": "1.
|
|
57
|
+
"send": "0.18.0",
|
|
58
|
+
"terraform": "1.21.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"
|
|
62
|
-
"mocha": "
|
|
63
|
-
"nixt": "^0.5.1",
|
|
64
|
-
"request": "^2.88.0",
|
|
61
|
+
"axios": "0.27.2",
|
|
62
|
+
"mocha": "10.0.0",
|
|
65
63
|
"should": "3.3.2"
|
|
66
64
|
},
|
|
67
65
|
"scripts": {
|
|
66
|
+
"prepare": "git config core.hooksPath ./hooks",
|
|
68
67
|
"test": "mocha --reporter spec -t 4000",
|
|
69
68
|
"test:fallbacks": "mocha test/fallbacks.js -t 3000",
|
|
70
69
|
"test:helpers": "mocha test/helpers.js -t 3000"
|