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

Function setContent

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1883–1888  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

1881 const getValuesSchemaJson = () => jsonStringWithMap(valuesSchemaMap);
1882 const getSchemaJson = () => jsonStringWithMap([tablesSchemaMap, valuesSchemaMap]);
1883 const setContent = (content) => fluentTransaction(() => {
1884 const content2 = isFunction(content) ? content() : content;
1885 if (validateContent(content2)) {
1886 setValidContent(content2);
1887 }
1888 });
1889 const setTables = (tables) => fluentTransaction(
1890 () => validateTables(tables) ? setValidTables(tables) : 0
1891 );

Callers

nothing calls this directly

Calls 4

fluentTransactionFunction · 0.70
isFunctionFunction · 0.70
setValidContentFunction · 0.70
contentFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…