Rocky_Mountain_Vending/.pnpm-store/v10/files/15/582fc7c76f32b65282a3b1c71741665d0db35f900b82a4c286984adb5d88fc58c78b4dcdd623c999639bf41cbfe92f3d3bcab7e5d2b23586b91164e93c4c73
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

14 lines
531 B
Text

/**
* Converts a string-based level into a `SeverityLevel`, normalizing it along the way.
*
* @param level String representation of desired `SeverityLevel`.
* @returns The `SeverityLevel` corresponding to the given string, or 'log' if the string isn't a valid level.
*/
function severityLevelFromString(level) {
return (
level === 'warn' ? 'warning' : ['fatal', 'error', 'warning', 'log', 'info', 'debug'].includes(level) ? level : 'log'
) ;
}
export { severityLevelFromString };
//# sourceMappingURL=severity.js.map