Comparing version 0.12.2 to 0.12.3
@@ -32,3 +32,3 @@ const assert = require('assert'); | ||
r.regexp = new RegExp(regexp); | ||
r.regexp = new RegExp('^' + regexp + '$'); | ||
return r; | ||
@@ -35,0 +35,0 @@ } |
@@ -42,8 +42,13 @@ const { sign } = require('cookie-signature'); | ||
this.res && this.res.write(chunk); | ||
this.body ? this.body.concat(chunk) : this.body = chunk; | ||
if(!this.body) | ||
this.body = chunk; | ||
else if(this.body instanceof Buffer) | ||
this.body = Buffer.concat([ this.body, chunk ]); | ||
else | ||
this.body += String(chunk); | ||
} | ||
end(body){ | ||
this.body ? this.body.concat(body) : this.body = body; | ||
this.res && this.res.end(body); | ||
body && this.write(body); | ||
this.res && this.res.end(); | ||
@@ -50,0 +55,0 @@ this.log.debug({ |
{ | ||
"name": "nodecaf", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
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
38693
586