decord/source/__polyfill/12xxx/module_12914.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

20 lines
523 B
JavaScript

// Module ID: 12914
// Function ID: 12915
// Dependencies: []
// Exports: severityLevelFromString
// Module 12914
export const severityLevelFromString = function severityLevelFromString(arg0) {
let str = "warning";
if ("warn" !== arg0) {
const items = ["fatal", "error", "warning", "log", "info", "debug"];
let str2 = "log";
if (items.includes(arg0)) {
str2 = arg0;
}
str = str2;
}
return str;
};
export const validSeverityLevels = ["fatal", "error", "warning", "log", "info", "debug"];