MCPcopy
hub / github.com/tinyplex/tinybase / getMergeableValueDiff

Function getMergeableValueDiff

src/mergeable-store/index.ts:620–630  ·  view source on GitHub ↗
(
    otherValueHashes: ValueHashes,
  )

Source from the content-addressed store, hash-verified

618 mapToObj(contentStampMap[1][0], getStampHash);
619
620 const getMergeableValueDiff = (
621 otherValueHashes: ValueHashes,
622 ): ValuesStamp => {
623 const [, [valueStampMaps, valuesHlc]] = contentStampMap;
624 const values = mapToObj(
625 valueStampMaps,
626 stampClone,
627 ([, , hash], valueId) => hash == otherValueHashes?.[valueId],
628 );
629 return stampNew(values, valuesHlc);
630 };
631
632 const setMergeableContent = (
633 mergeableContent: MergeableContent,

Callers

nothing calls this directly

Calls 2

mapToObjFunction · 0.90
stampNewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…