code: function getDependencies (injector, dependencies) {
    return dependencies.map((name) => {
      let dependency = injector.getComponent(name);
  
      if (!dependency) {
        /* Anything starting 'npm:' is automatically included */
        if (/^npm:/.test(name)) {
          const npmModule = name.substr(4);
  
          injector.registerComponent({
            // eslint-disable-next-line import/no-dynamic-require, global-require
            factory: () => require(npmModule),
            name,
          });
  
          dependency = injector.getComponent(name);
        } else {
          throw new Error(`Missing dependency: ${name}`);
        }
      }
  
      /* If instance hasn't already been processed, process it */
      if (!dependency.instance) {
        dependency.instance = injector.process(dependency.factory, dependency.deps);
      }
  
      return dependency.instance;
    });
  }
docs: Get Dependencies
  
  Iterates over the dependencies and resolve them
  as usable items.
  
  @param {Injector} injector
  @param {string[]} dependencies
  @returns {object[]}