MCPcopy Index your code
hub / github.com/ether/etherpad / getLatestVersion

Function getLatestVersion

src/node/utils/UpdateCheck.ts:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41export const getLatestVersion = () => {
42 if (!settings.privacy.updateCheck) return undefined;
43 needsUpdate().catch();
44 return infos?.latestVersion;
45};
46
47const needsUpdate = async (cb?: Function) => {
48 try {

Callers 1

adminsettings.tsFile · 0.90

Calls 1

needsUpdateFunction · 0.85

Tested by

no test coverage detected