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

rails-delegate

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails-delegate - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

10

lib/rails-delegate.js

@@ -54,8 +54,14 @@ // Generated by LiveScript 1.4.0

_delegateEvent = function(eventName, from, to){
var i$, ref$, len$, source, results$ = [];
debug("delegating event '" + eventName + "'");
return from.on(eventName, function(){
for (i$ = 0, len$ = (ref$ = flatten([from])).length; i$ < len$; ++i$) {
source = ref$[i$];
results$.push(source.on(eventName, fn$));
}
return results$;
function fn$(){
var params;
params = slice$.call(arguments);
return to.emit.apply(to, [eventName].concat(slice$.call(params)));
});
}
};

@@ -62,0 +68,0 @@ module.exports = {

2

package.json
{
"name": "rails-delegate",
"version": "0.4.1",
"version": "0.5.0",
"description": "A simple helper to implement the delegation pattern in JavaScript code bases",

@@ -5,0 +5,0 @@ "main": "lib/rails-delegate.js",

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