Socket
Socket
Sign inDemoInstall

fluent-logger

Package Overview
Dependencies
1
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

20

lib/index.js

@@ -11,10 +11,2 @@ var FluentSender = require('./sender').FluentSender;

emit: function(label, data, callback){
sender.emit(label, data, callback);
},
end: function(label, data){
sender.end(label, data);
},
createFluentSender: function(tag, options){

@@ -30,2 +22,12 @@ return new FluentSender(tag, options);

}
}
};
// delegate logger interfaces to default sender object
var methods = ['emit', 'end', 'addListener', 'on', 'once', 'removeListener', 'removeAllListeners'];
methods.forEach(function(attr, i){
module.exports[attr] = function(){
if( sender ){
sender[attr].apply(sender, Array.prototype.slice.call(arguments));
}
};
});
{
"name": "fluent-logger",
"version": "0.2.1",
"version": "0.2.2",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc