Rocky_Mountain_Vending/.pnpm-store/v10/files/52/e01fd9a5fd346db053c831ee040075ce8fae754772f9d6723262894e6ad7cac9d0d0758f2a488077b66602656f341e2054d2a86dea66714bcfe125bf0f709f
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

48 lines
No EOL
1.6 KiB
Text

export function getStaleness({ installed, staleness, expected }) {
let text = '';
let title = '';
let indicatorClass = '';
const versionLabel = `Next.js ${installed}`;
switch(staleness){
case 'newer-than-npm':
case 'fresh':
text = versionLabel;
title = `Latest available version is detected (${installed}).`;
indicatorClass = 'fresh';
break;
case 'stale-patch':
case 'stale-minor':
text = `${versionLabel} (stale)`;
title = `There is a newer version (${expected}) available, upgrade recommended! `;
indicatorClass = 'stale';
break;
case 'stale-major':
{
text = `${versionLabel} (outdated)`;
title = `An outdated version detected (latest is ${expected}), upgrade is highly recommended!`;
indicatorClass = 'outdated';
break;
}
case 'stale-prerelease':
{
text = `${versionLabel} (stale)`;
title = `There is a newer canary version (${expected}) available, please upgrade! `;
indicatorClass = 'stale';
break;
}
case 'unknown':
text = `${versionLabel} (unknown)`;
title = 'No Next.js version data was found.';
indicatorClass = 'unknown';
break;
default:
break;
}
return {
text,
indicatorClass,
title
};
}
//# sourceMappingURL=version-staleness.js.map