UNPKG

504 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ModulesContainer = void 0;
4const uid_1 = require("uid");
5class 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}
17exports.ModulesContainer = ModulesContainer;