MCPcopy Create free account
hub / github.com/TGX-Android/Publisher / getLocalChanges

Function getLocalChanges

main.js:380–388  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

378 try {
379 const value = await db.get(type + '_' + id, {valueEncoding: 'json'});
380 cur.cache[type][id] = value;
381 return value;
382 } catch (err) {
383 cur.cache[type][id] = null;
384 return null;
385 }
386}
387
388function checksum (path, callback, algorithm) {
389 const stream = fs.createReadStream(path);
390 const checksum = crypto.createHash(algorithm);
391 stream.on('error', function (err) {

Callers 1

processPrivateCommandFunction · 0.85

Calls 1

trimIndentFunction · 0.85

Tested by

no test coverage detected