(
otherTableRowHashes: RowHashes,
)
| 536 | }; |
| 537 | |
| 538 | const getMergeableRowDiff = ( |
| 539 | otherTableRowHashes: RowHashes, |
| 540 | ): [newRows: TablesStamp, differingRowHashes: RowHashes] => { |
| 541 | const newRows: TablesStamp = stampNewObj(contentStampMap[0][1]); |
| 542 | const differingRowHashes: RowHashes = {}; |
| 543 | objForEach(otherTableRowHashes, (otherRowHashes, tableId) => |
| 544 | mapForEach( |
| 545 | mapGet(contentStampMap[0][0], tableId)?.[0], |
| 546 | (rowId, [rowStampMap, rowHlc, hash]) => |
| 547 | objHas(otherRowHashes, rowId) |
| 548 | ? hash !== otherRowHashes[rowId] |
| 549 | ? (objEnsure(differingRowHashes, tableId, objNew)[rowId] = hash) |
| 550 | : 0 |
| 551 | : (objEnsure(newRows[0], tableId, stampNewObj)[0][rowId] = |
| 552 | stampMapToObjWithoutHash([rowStampMap, rowHlc])), |
| 553 | ), |
| 554 | ); |
| 555 | return [newRows, differingRowHashes]; |
| 556 | }; |
| 557 | |
| 558 | const getMergeableCellHashes = ( |
| 559 | otherTableRowHashes: RowHashes, |
nothing calls this directly
no test coverage detected
searching dependent graphs…