chore(pointers): make readPointerInfo importable

This commit is contained in:
Anton Strogonoff 2021-12-01 21:23:44 +01:00
parent aa6573b770
commit 669d58852d

View file

@ -22,7 +22,7 @@ function isValidPointerInfo(val: Record<string, any>): val is PointerInfo {
}
function readPointerInfo(content: Buffer): PointerInfo {
export function readPointerInfo(content: Buffer): PointerInfo {
const info = content.toString().trim().split('\n').reduce((accum, line) => {
const [k, v] = line.split(' ', 2);
if (k === 'oid') {