Files
SnowLuma/.pnpm-store/v11/files/b1/185a8a040e14c86e20be311cf6e99db289bdc908d72b6739e8d64b8b52c174ba8e149a1acbb4864334dfa8b1b08a42ceffa19e76d5722acf070f487061c3ff
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

19 lines
376 B
Plaintext

"use strict";
const Level = require("./Level.js");
function normalizeLevel(level) {
if (typeof level === "string") {
level = Level[level.toUpperCase()];
if (level === void 0) {
return;
}
return level;
}
if (typeof level === "number") {
if (Level[level] === void 0) {
return;
}
return level;
}
}
module.exports = normalizeLevel;