mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Move exec and events components to util module
The exec and events components are common components that are used by both runtime and registry. It makes sense to move them into the util package. This also adds some docs to the registry module
This commit is contained in:
@@ -19,8 +19,7 @@ var path = require("path");
|
||||
var fs = require("fs");
|
||||
|
||||
var library = require("./library");
|
||||
|
||||
var events;
|
||||
const {events} = require("@node-red/util")
|
||||
var settings;
|
||||
var loader;
|
||||
|
||||
@@ -31,10 +30,9 @@ var nodeConstructors = {};
|
||||
var nodeTypeToId = {};
|
||||
var moduleNodes = {};
|
||||
|
||||
function init(_settings,_loader, _events) {
|
||||
function init(_settings,_loader) {
|
||||
settings = _settings;
|
||||
loader = _loader;
|
||||
events = _events;
|
||||
moduleNodes = {};
|
||||
nodeTypeToId = {};
|
||||
nodeConstructors = {};
|
||||
|
Reference in New Issue
Block a user