emit-logger
Advanced tools
Comparing version 0.0.1 to 0.0.2
0.0.2 / 2013-07-04 | ||
================== | ||
* use emit method itself | ||
0.0.1 / 2013-07-04 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -43,7 +43,8 @@ /** | ||
var self = this; | ||
var emit = emitter.emit; | ||
emitter.emit = function() { | ||
var args = [].slice.call(arguments); | ||
self._store.add(emitter, args); | ||
return Emitter.prototype.emit.apply(emitter, arguments); | ||
return emit.apply(emitter, arguments); | ||
}; | ||
@@ -73,2 +74,2 @@ | ||
return this; | ||
}; | ||
}; |
{ | ||
"name": "emit-logger", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "event logger for EventEmitter", | ||
@@ -5,0 +5,0 @@ "keywords": ["EventEmitter", "event", "log", "logging", "logger"], |
@@ -18,3 +18,3 @@ | ||
var Emitter = require('events').EventEmitter; | ||
var EmitLogger = require('./'); | ||
var EmitLogger = require('emit-logger'); | ||
var logger = new EmitLogger(); | ||
@@ -52,2 +52,2 @@ | ||
Copyright (c) 2013 Circuit Lab. <info@uniba.jp> | ||
Copyright (c) 2013 Circuit Lab. <info@uniba.jp> |
3101
76
52