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

devnull

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devnull - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

readme.md

2

lib/logger.js

@@ -444,3 +444,3 @@ "use strict";

Logger.version = '0.0.3';
Logger.version = '0.0.4';

@@ -447,0 +447,0 @@ /**

{
"name": "devnull"
, "version": "0.0.3"
, "version": "0.0.4"
, "description": "A simple logger with automatic function detection."

@@ -14,6 +14,7 @@ , "homepage": "http://observer.no.de"

"colors": "0.5.1"
, "mongodb": ""
}
, "devDependencies": {
"mocha": "*"
, "should": "0.3.2"
, "should": "*"
, "long-stack-traces": "0.1.2"

@@ -20,0 +21,0 @@ }

@@ -21,3 +21,5 @@ /**!

fixtures = {};
fixtures = {
mongodb: 'mongodb://test:test@localhost:27017/myapp'
};

@@ -24,0 +26,0 @@ /**

@@ -49,5 +49,3 @@ "use strict";

Streamer.prototype.write = function write (type, namespace, args) {
if (this.stream.writable) {
this.stream.write(
this.logger.stamp()
var log = this.logger.stamp()
+ ' '

@@ -59,4 +57,9 @@ + this.logger.prefix[type]

+ this.logger.format.apply(this, args)
+ '\n'
);
+ '\n';
if (this.stream.writable) {
this.stream.write(log);
this.logger.emit('transport:write', log);
} else {
this.logger.emit('transport:error', new Error('stream not writable'), log);
}

@@ -67,2 +70,8 @@

/**
* Shutdown down the transport.
*
* @api private
*/
Streamer.prototype.close = function () {

@@ -69,0 +78,0 @@ // don't close the stdout

@@ -25,2 +25,5 @@ var EventEmitter = process.EventEmitter;

var Transport = module.exports = function transport (logger, options) {
var self = this
, key;
options = options || {};

@@ -31,3 +34,3 @@ this.name = 'transport';

// exact same type
for (var key in options) {
for (key in options) {
if (key in this

@@ -44,4 +47,7 @@ && type(this[key]) !== 'function'

// lazy initialize
if (this.initialize) {
this.initialize.call(this, options);
process.nextTick(function next () {
self.initialize.call(self, options);
});
}

@@ -48,0 +54,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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