undertaker-registry
Advanced tools
Comparing version 0.0.0 to 0.0.1
10
index.js
'use strict'; | ||
function DefaultRegistry(){ | ||
this.tasks = {}; | ||
this._tasks = {}; | ||
} | ||
DefaultRegistry.prototype.get = function get(name){ | ||
return this.tasks[name]; | ||
return this._tasks[name]; | ||
}; | ||
DefaultRegistry.prototype.set = function set(name, fn){ | ||
this.tasks[name] = fn; | ||
this._tasks[name] = fn; | ||
}; | ||
DefaultRegistry.prototype.tasks = function tasks(){ | ||
return Object.keys(this._tasks).map(this.get, this); | ||
}; | ||
module.exports = DefaultRegistry; |
{ | ||
"name": "undertaker-registry", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "undertaker-registry ===================", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
2685
14