MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getMergeableContentImpl

Function getMergeableContentImpl

src/mergeable-store/index.ts:406–421  ·  view source on GitHub ↗
(encoded = false)

Source from the content-addressed store, hash-verified

404 };
405
406 const getMergeableContentImpl = (encoded = false): MergeableContent => [
407 stampMapToObjWithHash(contentStampMap[0], (tableStampMap) =>
408 stampMapToObjWithHash(tableStampMap, (rowStampMap) =>
409 stampMapToObjWithHash(rowStampMap, ([cell, hlc, hash]) => [
410 decodeIfJson(cell, EMPTY_STRING, encoded),
411 hlc,
412 hash,
413 ]),
414 ),
415 ),
416 stampMapToObjWithHash(contentStampMap[1], ([value, hlc, hash]) => [
417 decodeIfJson(value, EMPTY_STRING, encoded),
418 hlc,
419 hash,
420 ]),
421 ];
422
423 const getTransactionMergeableChangesImpl = (
424 withHashes: boolean,

Callers 2

getMergeableContentFunction · 0.70

Calls 2

stampMapToObjWithHashFunction · 0.90
decodeIfJsonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…