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

Function needsUpdate

src/node/utils/UpdateCheck.ts:47–57  ·  view source on GitHub ↗
(cb?: Function)

Source from the content-addressed store, hash-verified

45};
46
47const needsUpdate = async (cb?: Function) => {
48 try {
49 const info = await loadEtherpadInformations()
50 if (semver.gt(info!.latestVersion, getEpVersion())) {
51 if (cb) return cb(true);
52 }
53 } catch (err) {
54 console.error(`Can not perform Etherpad update check: ${err}`);
55 if (cb) return cb(false);
56 }
57};
58
59export const check = () => {
60 if (!settings.privacy.updateCheck) {

Callers 2

getLatestVersionFunction · 0.85
checkFunction · 0.85

Calls 2

getEpVersionFunction · 0.90
loadEtherpadInformationsFunction · 0.85

Tested by

no test coverage detected