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 1.1.1 to 1.1.2

examples/r14.logfmt

7

lib/streaming.js

@@ -10,9 +10,6 @@ var split = require('split')

var streamParser = new PassThrough();
var splitter = split(/\b\r?\n/)
var self = this;
var logfmtStream = through(function(line){
this.queue(self.parse(line))
}, function(){
this.queue(null)
if(line !== '') this.queue(self.parse(line))
})

@@ -24,3 +21,3 @@

if(source.unpipe) source.unpipe(this);
this.transformStream = source.pipe(splitter).pipe(logfmtStream);
this.transformStream = source.pipe(split()).pipe(logfmtStream);
});

@@ -27,0 +24,0 @@

{
"name": "logfmt",
"version": "1.1.1",
"version": "1.1.2",
"description": "key=value logger and parser",

@@ -5,0 +5,0 @@ "main": "logfmt.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc