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

Function stampUpdate

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1001–1006  ·  view source on GitHub ↗
(stamp, hlc, hash)

Source from the content-addressed store, hash-verified

999 ((hlc1 ?? EMPTY_STRING) > (hlc2 ?? EMPTY_STRING) ? hlc1 : hlc2) ?? EMPTY_STRING
1000);
1001var stampUpdate = (stamp, hlc, hash) => {
1002 if (hlc > stamp[1]) {
1003 stamp[1] = hlc;
1004 }
1005 stamp[2] = hash >>> 0;
1006};
1007var stampNewObj = (hlc = EMPTY_STRING) => stampNew(objNew(), hlc);
1008var stampNewMap = (hlc = EMPTY_STRING) => [mapNew(), hlc, 0];
1009var stampMapToObjWithHash = ([map2, hlc, hash], mapper) => [

Callers 2

mergeContentOrChangesFunction · 0.70
mergeCellsOrValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…