MCPcopy
hub / github.com/pinokiocomputer/pinokio / buildUpdateBannerPayload

Function buildUpdateBannerPayload

full.js:107–116  ·  view source on GitHub ↗
(state, info, extra = {})

Source from the content-addressed store, hash-verified

105 return `${percent}%`
106}
107const buildUpdateBannerPayload = (state, info, extra = {}) => {
108 const resolved = info || {}
109 return {
110 state,
111 version: resolved.version || '',
112 notesPreview: buildReleaseNotesPreview(resolved.releaseNotes),
113 releaseUrl: UPDATE_RELEASES_URL,
114 ...extra
115 }
116}
117const clearUpdateTestTimers = () => {
118 if (updateTestInterval) {
119 clearInterval(updateTestInterval)

Callers 3

tickFunction · 0.85
full.jsFile · 0.85

Calls 1

buildReleaseNotesPreviewFunction · 0.85

Tested by

no test coverage detected