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

Function stampClone

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:992–992  ·  view source on GitHub ↗
([value, hlc])

Source from the content-addressed store, hash-verified

990var isEncodedJson = (value) => isString(value) && value[0] == JSON_PREFIX;
991var decodeIfJson = (raw, _id, encoded) => !encoded && isEncodedJson(raw) ? jsonParse(slice(raw, 1)) : raw;
992var stampClone = ([value, hlc]) => stampNew(value, hlc);
993var stampNew = (value, hlc) => hlc ? [value, hlc] : [value];
994var stampNewWithHash = (value, hlc, hash) => [value, hlc, hash];
995var getStampHash = (stamp) => stamp[2];

Callers

nothing calls this directly

Calls 1

stampNewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…