Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filter-log

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filter-log - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

5

filter-log.js

@@ -40,2 +40,7 @@ var _ = require('underscore')

}
if(data instanceof Error) {
data = {
error: data
}
}
if(typeof data == 'object') {

@@ -42,0 +47,0 @@ stream.write(_.extend({}, data, {level: filterLog.levels[key]}))

2

package.json
{
"name": "filter-log",
"version": "0.0.4",
"version": "0.0.5",
"description": "flexible, minimalistic logging",

@@ -5,0 +5,0 @@ "main": "filter-log.js",

@@ -61,3 +61,14 @@ var filog = require('../filter-log')

it("test error object", function() {
filog.clearProcessors()
var out = objStream()
filog.defineProcessor('string-out', null, out)
let msg = 'This is a test'
let e = new Error(msg)
debugger
log1.info(e)
assert(out.data[0].error.toString().indexOf('Error: This is a test') == 0)
})
})
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