MCPcopy Create free account
hub / github.com/EvoMap/evolver / withComputedAssetId

Function withComputedAssetId

test/cliContracts.test.js:97–101  ·  view source on GitHub ↗
(asset)

Source from the content-addressed store, hash-verified

95}
96
97function withComputedAssetId(asset) {
98 const copy = Object.assign({}, asset);
99 copy.asset_id = computeAssetId(copy);
100 return copy;
101}
102
103function fakeStore(records) {
104 const writes = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected