rails-delegate
Advanced tools
Comparing version 0.5.0 to 0.5.2
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8869
7
70
8
1