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.5.0 to 0.5.2

CONTRIBUTING.md

42

package.json
{
"name": "rails-delegate",
"version": "0.5.0",
"description": "A simple helper to implement the delegation pattern in JavaScript code bases",
"main": "lib/rails-delegate.js",
"scripts": {
"postpublish": "git push && git push --tags",
"prepublish": "bin/build",
"preversion": "npm test && npm run update",
"test": "cucumber-js",
"update": "david update"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Originate/delegation-pattern-js.git"
},
"version": "0.5.2",
"author": "Kevin Goslar",
"license": "ISC",
"bugs": {
"url": "https://github.com/Originate/delegation-pattern-js/issues"
"dependencies": {
"debug": "^2.2.0",
"lodash.flatten": "^4.0.0"
},
"homepage": "https://github.com/Originate/delegation-pattern-js#readme",
"description": "A simple helper to implement the delegation pattern in JavaScript code bases",
"devDependencies": {
"chai": "^3.4.1",
"cucumber": "^0.9.2",
"david": "^7.0.0",
"dependency-lint": "^3.1.1",
"jsdiff-console": "^1.1.3",
"livescript": "^1.4.0",
"npm-check-updates": "^2.5.8",
"publish-via-ci": "^0.2.2",
"wait": "^0.1.0"
},
"dependencies": {
"debug": "^2.2.0",
"lodash.flatten": "^4.0.0"
"homepage": "https://github.com/Originate/delegation-pattern-js#readme",
"license": "ISC",
"main": "dist/rails-delegate.js",
"repository": {
"type": "git",
"url": "git+https://github.com/Originate/delegation-pattern-js.git"
},
"scripts": {
"postpublish": "git push && git push --tags",
"prepublish": "bin/build",
"preversion": "check-update && bin/spec",
"test": "bin/spec"
}
}

@@ -18,3 +18,3 @@ # Delegation Pattern for JavaScript

```javascript
delegate = require('rails-delegate');
delegate = require('rails-delegate').delegate;

@@ -45,6 +45,8 @@ function Car() {

```javascript
delegateEvent = require('rails-delegate').delegateEvent;
function Car() {
this.engine = new Engine();
delegateEvents('starting', 'stopping', { from: this.engine, to: this });
delegateEvent('starting', 'stopping', { from: this.engine, to: this });
};

@@ -65,1 +67,6 @@ ```

[node-delegates](https://github.com/tj/node-delegates).
## Development
See our [developer guidelines](CONTRIBUTING.md)
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