fix: #12009, check if suggested/current versions are valid

isekai-main
Barış Soner Uşaklı 1 year ago
parent f9323de6e7
commit 7ca37bd6c3

@ -106,7 +106,7 @@ async function checkPlugins() {
current = plugins[suggestObj.package]; current = plugins[suggestObj.package];
suggested = suggestObj.version; suggested = suggestObj.version;
if (suggestObj.code === 'match-found' && semver.gt(suggested, current)) { if (suggestObj.code === 'match-found' && semver.valid(current) && semver.valid(suggested) && semver.gt(suggested, current)) {
return { return {
name: suggestObj.package, name: suggestObj.package,
current: current, current: current,

Loading…
Cancel
Save