Comparing version 0.10.0 to 0.11.0
@@ -12,3 +12,3 @@ var split = require('split'); | ||
if (req._body) return next(); | ||
var is_mime = req.get('content-type') === mime; | ||
var is_mime = req.header('content-type') === mime; | ||
if (!is_mime) return next(); | ||
@@ -15,0 +15,0 @@ req._body = true; |
@@ -26,6 +26,6 @@ | ||
if (req._body) return next(); | ||
req.body = req.body || {}; | ||
var is_mime = req.get('content-type') === options.contentType; | ||
var is_mime = req.header('content-type') === options.contentType; | ||
if (!is_mime) return next(); | ||
req._body = true; | ||
req.body = req.body || {}; | ||
var buf; | ||
@@ -38,7 +38,5 @@ buf = ""; | ||
req.on("end", function() { | ||
var first; | ||
first = buf.trim(); | ||
try { | ||
var lines = [] | ||
buf.split("\n").forEach(function(line){ | ||
buf.trim().split("\n").forEach(function(line){ | ||
lines.push(options.parser(line)) | ||
@@ -45,0 +43,0 @@ }) |
{ | ||
"name": "logfmt", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "Key-Value log line parser", | ||
@@ -17,3 +17,4 @@ "main": "logfmt.js", | ||
"express" : "3.*", | ||
"mocha" : "*" | ||
"mocha" : "*", | ||
"restify" : "*" | ||
}, | ||
@@ -20,0 +21,0 @@ "repository": { |
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
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
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
18095209
36
757
3
1