Socket
Socket
Sign inDemoInstall

undertaker-registry

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

undertaker-registry - npm Package Compare versions

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",

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