MCPcopy Index your code
hub / github.com/EvoMap/evolver / getCurrentVersion

Function getCurrentVersion

src/forceUpdate.js:818–823  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

816 }
817
818 function getCurrentVersion() {
819 try {
820 var pkg = JSON.parse(fs.readFileSync(path.join(INSTALL_ROOT, 'package.json'), 'utf8'));
821 return pkg.version || '0.0.0';
822 } catch (_) { return '0.0.0'; }
823 }
824
825 // Idempotency / anti-downgrade short-circuit: the hub keeps re-issuing the
826 // same force_update directive until the node reports success. After a

Callers 1

_executeForceUpdateInnerFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected