(home, version)
| 587 | } |
| 588 | |
| 589 | function markUpdateDeferred(home, version) { |
| 590 | const normalizedVersion = normalizeVersion(version || readUpdateState(home).latest_version || ''); |
| 591 | const patched = mergeUpdateState(home, { |
| 592 | last_prompted_at: new Date().toISOString(), |
| 593 | last_deferred_at: new Date().toISOString(), |
| 594 | last_prompted_version: normalizedVersion || null, |
| 595 | latest_version: normalizedVersion || null, |
| 596 | }); |
| 597 | return buildUpdateStatus(home, patched); |
| 598 | } |
| 599 | |
| 600 | function markUpdateSkipped(home, version) { |
| 601 | const normalized = normalizeVersion(version); |
no test coverage detected