MCPcopy Index your code
hub / github.com/massCodeIO/massCode / notifyAboutUpdate

Function notifyAboutUpdate

src/main/updates/index.ts:19–30  ·  view source on GitHub ↗
(latestVersion: string)

Source from the content-addressed store, hash-verified

17// Уведомление без установки: для выключенного автообновления и нового мажора,
18// который требует осознанного перехода (миграция vault).
19function notifyAboutUpdate(latestVersion: string) {
20 const lastNotifiedVersion = store.app.get(
21 'notifications.lastNotifiedUpdateVersion',
22 )
23
24 if (lastNotifiedVersion === latestVersion) {
25 return
26 }
27
28 send('system:update-available')
29 store.app.set('notifications.lastNotifiedUpdateVersion', latestVersion)
30}
31
32async function runUpdateCheck() {
33 try {

Callers 1

checkForUpdatesFunction · 0.85

Calls 3

sendFunction · 0.90
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected