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>
16 lines
628 B
Text
16 lines
628 B
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
/**
|
|
* 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'
|
|
) ;
|
|
}
|
|
|
|
exports.severityLevelFromString = severityLevelFromString;
|
|
//# sourceMappingURL=severity.js.map
|