mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = class DependencyUpdateCommand extends Command {
|
||||
async run(msg) {
|
||||
const needUpdate = [];
|
||||
for (const [dep, ver] of Object.entries(dependencies)) {
|
||||
const latest = this.fetchVersion(dep);
|
||||
const latest = await this.fetchVersion(dep);
|
||||
const clean = semver.clean(ver);
|
||||
if (latest === clean) continue;
|
||||
needUpdate.push({
|
||||
@@ -39,7 +39,7 @@ module.exports = class DependencyUpdateCommand extends Command {
|
||||
});
|
||||
}
|
||||
for (const [dep, ver] of Object.entries(devDependencies)) {
|
||||
const latest = this.fetchVersion(dep);
|
||||
const latest = await this.fetchVersion(dep);
|
||||
const clean = semver.clean(ver);
|
||||
if (latest === clean) continue;
|
||||
needUpdate.push({
|
||||
|
||||
Reference in New Issue
Block a user