New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eventproxy

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventproxy - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

15

lib/eventproxy.js

@@ -397,7 +397,16 @@ /*global exports */

}
if (typeof handler === 'function') {
// getAsync(query, ep.done('query'));
if (typeof handler === 'string') {
return that.emit(handler, data);
}
// speed improve for mostly case: `callback(err, data)`
if (arguments.length <= 2) {
return handler(data);
}
var eventname = handler;
that.emit(eventname, data);
// callback(err, args1, args2, ...)
var args = Array.prototype.slice.call(arguments, 1);
handler.apply(null, args);
};

@@ -404,0 +413,0 @@ };

4

package.json

@@ -24,3 +24,3 @@ {

"scripts": {
"test": "mocha test/test.js"
"test": "make test"
},

@@ -31,3 +31,3 @@ "repository": {

},
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",

@@ -34,0 +34,0 @@ "directories": {

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