harp 0.46.0 → 0.47.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/README.md +1 -1
- package/lib/middleware.js +1 -1
- package/lib/templates/_layout.jade +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Pre-compilers are becoming extremely powerful and shipping front-ends as static
|
|
|
32
32
|
|
|
33
33
|
### Resources
|
|
34
34
|
|
|
35
|
-
- **Server Documentation** - [
|
|
35
|
+
- **Server Documentation** - [harp.rip/docs/](http://harp.rip/docs/)
|
|
36
36
|
- **Source Code** - [github.com/sintaxi/harp](https://github.com/sintaxi/harp)
|
|
37
37
|
|
|
38
38
|
Authored and maintained by [@sintaxi](http://twitter.com/sintaxi).
|
package/lib/middleware.js
CHANGED
|
@@ -32,7 +32,7 @@ exports.setupLog = function(req, rsp, next){
|
|
|
32
32
|
try{
|
|
33
33
|
contentLength = parseInt(rsp._header.split("\n").find(h => h.includes("Content-Length")).split(" ")[1].split("\r")[0])
|
|
34
34
|
}catch(e){}
|
|
35
|
-
console.log(new Date(),
|
|
35
|
+
console.log(new Date(), req.method.green, rsp.statusCode, req.url, measureBody(contentLength).grey)
|
|
36
36
|
})
|
|
37
37
|
|
|
38
38
|
// var start = process.hrtime()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "Static Web Server/Generator/Bundler",
|
|
5
5
|
"author": "Brock Whitten <brock@chloi.io>",
|
|
6
6
|
"contributors": [
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"Marco Emrich <m.emrich@webmasters.de>",
|
|
24
24
|
"Roger K <misterhtmlcss@gmail.com>",
|
|
25
25
|
"Claus Colloseus <ccprog@gmx.de>",
|
|
26
|
-
"mannyluvstacos <mannyis@typingona.computer>"
|
|
26
|
+
"mannyluvstacos <mannyis@typingona.computer>",
|
|
27
|
+
"Marcos Lopez C <MarcosLopezC@live.com>"
|
|
27
28
|
],
|
|
28
29
|
"keywords": [
|
|
29
30
|
"static web server",
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"cjs",
|
|
36
37
|
"jsx"
|
|
37
38
|
],
|
|
38
|
-
"homepage": "http://
|
|
39
|
+
"homepage": "http://harp.rip",
|
|
39
40
|
"bugs": "http://github.com/sintaxi/harp/issues",
|
|
40
41
|
"main": "./lib/index.js",
|
|
41
42
|
"repository": {
|
|
@@ -65,6 +66,8 @@
|
|
|
65
66
|
"should": "3.3.2"
|
|
66
67
|
},
|
|
67
68
|
"scripts": {
|
|
69
|
+
"preversion": "npm test",
|
|
70
|
+
"version": "npm publish",
|
|
68
71
|
"prepare": "git config core.hooksPath ./hooks",
|
|
69
72
|
"test": "mocha --reporter spec -t 4000",
|
|
70
73
|
"test:fallbacks": "mocha test/fallbacks.js -t 3000",
|