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

Function getMergeableTableDiff

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:2794–2805  ·  view source on GitHub ↗
(otherTableHashes)

Source from the content-addressed store, hash-verified

2792 ];
2793 const getMergeableTableHashes = () => mapToObj(contentStampMap[0][0], getStampHash);
2794 const getMergeableTableDiff = (otherTableHashes) => {
2795 const newTables = stampNewObj(contentStampMap[0][1]);
2796 const differingTableHashes = {};
2797 mapForEach(
2798 contentStampMap[0][0],
2799 (tableId, [tableStampMap, tableHlc, hash]) => objHas(otherTableHashes, tableId) ? hash != otherTableHashes[tableId] ? differingTableHashes[tableId] = hash : 0 : newTables[0][tableId] = stampMapToObjWithoutHash(
2800 [tableStampMap, tableHlc],
2801 (rowStampMap) => stampMapToObjWithoutHash(rowStampMap)
2802 )
2803 );
2804 return [newTables, differingTableHashes];
2805 };
2806 const getMergeableRowHashes = (otherTableHashes) => {
2807 const rowHashes = {};
2808 objForEach(

Callers

nothing calls this directly

Calls 4

stampNewObjFunction · 0.70
mapForEachFunction · 0.70
objHasFunction · 0.70
stampMapToObjWithoutHashFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…