"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.catLane = catLane;
function _bitError() {
  const data = require("@teambit/bit-error");
  _bitError = function () {
    return data;
  };
  return data;
}
function _scope() {
  const data = require("@teambit/legacy/dist/scope");
  _scope = function () {
    return data;
  };
  return data;
}
async function catLane(name) {
  const scope = await (0, _scope().loadScope)();
  const laneId = await scope.lanes.parseLaneIdFromString(name);
  const lane = await scope.loadLane(laneId);
  if (!lane) throw new (_bitError().BitError)(`lane ${name} was not found!`);
  const obj = lane.toObject();
  obj.hash = lane.hash().toString();
  return obj;
}

//# sourceMappingURL=cat-lane.js.map