MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getMergeableRowDiff

Function getMergeableRowDiff

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:2820–2831  ·  view source on GitHub ↗
(otherTableRowHashes)

Source from the content-addressed store, hash-verified

2818 return rowHashes;
2819 };
2820 const getMergeableRowDiff = (otherTableRowHashes) => {
2821 const newRows = stampNewObj(contentStampMap[0][1]);
2822 const differingRowHashes = {};
2823 objForEach(
2824 otherTableRowHashes,
2825 (otherRowHashes, tableId) => mapForEach(
2826 mapGet(contentStampMap[0][0], tableId)?.[0],
2827 (rowId, [rowStampMap, rowHlc, hash]) => objHas(otherRowHashes, rowId) ? hash !== otherRowHashes[rowId] ? objEnsure(differingRowHashes, tableId, objNew)[rowId] = hash : 0 : objEnsure(newRows[0], tableId, stampNewObj)[0][rowId] = stampMapToObjWithoutHash([rowStampMap, rowHlc])
2828 )
2829 );
2830 return [newRows, differingRowHashes];
2831 };
2832 const getMergeableCellHashes = (otherTableRowHashes) => {
2833 const cellHashes = {};
2834 objForEach(

Callers

nothing calls this directly

Calls 7

stampNewObjFunction · 0.70
objForEachFunction · 0.70
mapForEachFunction · 0.70
mapGetFunction · 0.70
objHasFunction · 0.70
objEnsureFunction · 0.70
stampMapToObjWithoutHashFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…