Comparing version 1.1.1 to 1.1.2
@@ -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", |
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
64936
56
1486