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

Function getMergeableContentImpl

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:2714–2731  ·  view source on GitHub ↗
(encoded = false)

Source from the content-addressed store, hash-verified

2712 }
2713 };
2714 const getMergeableContentImpl = (encoded = false) => [
2715 stampMapToObjWithHash(
2716 contentStampMap[0],
2717 (tableStampMap) => stampMapToObjWithHash(
2718 tableStampMap,
2719 (rowStampMap) => stampMapToObjWithHash(rowStampMap, ([cell, hlc, hash]) => [
2720 decodeIfJson(cell, EMPTY_STRING, encoded),
2721 hlc,
2722 hash
2723 ])
2724 )
2725 ),
2726 stampMapToObjWithHash(contentStampMap[1], ([value, hlc, hash]) => [
2727 decodeIfJson(value, EMPTY_STRING, encoded),
2728 hlc,
2729 hash
2730 ])
2731 ];
2732 const getTransactionMergeableChangesImpl = (withHashes, encoded = false) => {
2733 const [
2734 [tableStampMaps, tablesHlc, tablesHash],

Callers 2

getMergeableContentFunction · 0.70

Calls 2

stampMapToObjWithHashFunction · 0.70
decodeIfJsonFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…