Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async configuredPlugins(configModels) {
let configs = new Map();
for (let model of configModels) {
configs.set(model.id, model);
}
let installed = await this.installedPlugins();
let missing = missingPlugins(installed, configs);
if (missing.length > 0) {
log.warn('Plugins are configured but not installed: %j', missing);
}
activateRecursively(installed, configs);
let a = new ConfiguredPlugins(installed, await this.installedFeatures(), configs);
setOwner(a, getOwner(this));
return a;
}