'use strict';

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

var _scope;

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

var _component;

function _load_component() {
  return _component = _interopRequireDefault(require('../../../scope/models/component'));
}

var _object;

function _load_object() {
  return _object = _interopRequireDefault(require('../../../scope/objects/object'));
}

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

function catScope(path, full) {
  return (0, (_scope || _load_scope()).loadScope)(path).then(function (scope) {
    return full ? scope.objects.list() : scope.objects.listComponents();
  });
}