Socket
Socket
Sign inDemoInstall

logfmt

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logfmt - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

examples/restify_buffered.js

2

lib/body_parser_stream.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc