Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 67x 67x 802x 802x 802x 802x 802x 802x 399x 399x 399x 399x 6x 6x 399x 802x 67x | 'use strict';
module.exports = ({ journalLoaderFactory: { createJournalLoader }, ledgerParser: { parse }, core: { publicErrors: { errorCodes, withCode }, }, }) => {
/**
* Loads an include tree and returns flattened entries plus a SHA-256 source
* manifest suitable for a future database freshness table.
*/
const load = createJournalLoader(parse);
function loadJournal(source) {
try {
return load(source);
}
catch (error) {
throw withCode(error, errorCodes.PROJECT_CONFIGURATION);
}
}
return { loadJournal };
};
|