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.2 to 1.1.3

10

lib/logger.js

@@ -47,7 +47,9 @@ var _ = require('lodash');

this.log({ error:true, id:id, message:err.message });
var stack = err.stack.split('\n');
for (var line in stack) {
if (line >= this.maxErrorLines) break;
this.log({ error:true, id:id, line:line, trace:stack[line] });
if (err.stack) {
var stack = err.stack.split('\n');
for (var line in stack) {
if (line >= this.maxErrorLines) break;
this.log({ error:true, id:id, line:line, trace:stack[line] });
}
}
}

2

package.json
{
"name": "logfmt",
"version": "1.1.2",
"version": "1.1.3",
"description": "key=value logger and parser",

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

@@ -24,2 +24,6 @@ var logfmt = require('../logfmt'),

});
test("doesn't blow up on a bad error object", function(){
logfmt.error({})
})
})
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