UNPKG

event-local

Version:

Event client

24 lines 835 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); async function BrokersInit(broker, db, http) { if (Array.isArray(global.SET_BROKER)) for (let f of global.SET_BROKER) { console.log(f); switch (f.brokerName) { case "broker": f.class[f.field] = broker; console.log(f.class[f.field]); break; case "db": f.class[f.field] = db; break; case "http": f.class[f.field] = http; break; default: throw new Error("Непонятный тип брокера"); } } } exports.BrokersInit = BrokersInit; //# sourceMappingURL=BrokersInit.js.map