Comparing version 0.12.1 to 0.12.2
@@ -176,4 +176,11 @@ const assert = require('assert'); | ||
input.req = { method, path, host: origReq.host, 'user-agent': origReq['user-agent'] }; | ||
app.log.debug({ req: input.req }); | ||
app.log.debug({ | ||
method: method, path, | ||
host: origReq.host, | ||
agent: origReq['user-agent'], | ||
type: 'request', | ||
msg: 'Received ' + method + ' request to ' + path | ||
}); | ||
let res = input.res = new Response(input); | ||
@@ -180,0 +187,0 @@ |
@@ -110,3 +110,3 @@ const | ||
this.state = 'stuck'; | ||
await this.stop(); | ||
await this.stop().catch(() => {}); | ||
throw err; | ||
@@ -113,0 +113,0 @@ } |
@@ -48,3 +48,14 @@ const { sign } = require('cookie-signature'); | ||
this.res && this.res.end(body); | ||
this.log.debug({ res: this }); | ||
this.log.debug({ | ||
path: this.req.path, | ||
method: this.req.method, | ||
host: this.req.host, | ||
agent: this.req['user-agent'], | ||
status: this.statusCode, | ||
level: this.statusCode > 499 ? 'warn' : 'debug', | ||
type: 'response', | ||
msg: 'Sent ' + this.statusCode + ' response to ' + this.req.method + ' ' + this.req.path | ||
}); | ||
this.finished = true; | ||
@@ -51,0 +62,0 @@ return this.resolve({ |
{ | ||
"name": "nodecaf", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.", | ||
@@ -45,8 +45,8 @@ "main": "lib/main.js", | ||
"cors": "^2.8.5", | ||
"golog": "^0.4.1" | ||
"golog": "^0.5.0" | ||
}, | ||
"devDependencies": { | ||
"muhb": "^3.0.4", | ||
"muhb": "^3.0.6", | ||
"toml": "^3.0.0" | ||
} | ||
} |
# [Nodecaf](https://gitlab.com/GCSBOSS/nodecaf) | ||
> Docs for version v0.11.x. | ||
> Docs for version v0.12.x. | ||
@@ -34,2 +34,5 @@ Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner. | ||
// Optionally bind to a given port | ||
conf: { port: 80 }, | ||
// Load your routes and API definitions. | ||
@@ -36,0 +39,0 @@ api, |
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
38561
581
476
+ Addedgolog@0.5.1(transitive)
- Removedgolog@0.4.1(transitive)
Updatedgolog@^0.5.0