amis-rpc-design/node_modules/logkitty/build/utils.js
2023-10-07 19:42:30 +08:00

14 lines
442 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getMinPriority = getMinPriority;
function getMinPriority(Priority, priorities, defaultPriority) {
const parsedPriorities = Object.keys(priorities).filter(key => priorities[key]).map(key => {
return Priority.fromName(key);
});
return parsedPriorities.length ? Math.min(...parsedPriorities) : defaultPriority;
}
//# sourceMappingURL=utils.js.map