How to use the @cardstack/di.setOwner function in @cardstack/di

To help you get started, we’ve selected a few @cardstack/di examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cardstack / cardstack / packages / hub / plugin-loader.js View on Github external
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;
    }

@cardstack/di

dependency injection support for cardstack hub

MIT
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis

Similar packages