1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.ModulesContainer = void 0;
|
4 | const uid_1 = require("uid");
|
5 | class ModulesContainer extends Map {
|
6 | constructor() {
|
7 | super(...arguments);
|
8 | this._applicationId = (0, uid_1.uid)(21);
|
9 | }
|
10 | get applicationId() {
|
11 | return this._applicationId;
|
12 | }
|
13 | getById(id) {
|
14 | return Array.from(this.values()).find(moduleRef => moduleRef.id === id);
|
15 | }
|
16 | }
|
17 | exports.ModulesContainer = ModulesContainer;
|