'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = list;

var _scope;

function _load_scope() {
  return _scope = require('../../../scope');
}

var _componentsList;

function _load_componentsList() {
  return _componentsList = _interopRequireDefault(require('../../../consumer/component/components-list'));
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function list(path, namespacesUsingWildcards) {
  return (0, (_scope || _load_scope()).loadScope)(path).then(function (scope) {
    return (_componentsList || _load_componentsList()).default.listLocalScope(scope, namespacesUsingWildcards);
  });
}