mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Fix
This commit is contained in:
@@ -28,17 +28,17 @@ module.exports = class DependencyUpdateCommand extends Command {
|
||||
async run(msg) {
|
||||
const needUpdate = [];
|
||||
for (const [dep, ver] of Object.entries(dependencies)) {
|
||||
const update = this.parseUpdate(dep, ver);
|
||||
const update = await this.parseUpdate(dep, ver);
|
||||
if (!update) continue;
|
||||
needUpdate.push(update);
|
||||
}
|
||||
for (const [dep, ver] of Object.entries(devDependencies)) {
|
||||
const update = this.parseUpdate(dep, ver);
|
||||
const update = await this.parseUpdate(dep, ver);
|
||||
if (!update) continue;
|
||||
needUpdate.push(update);
|
||||
}
|
||||
for (const [dep, ver] of Object.entries(optionalDependencies)) {
|
||||
const update = this.parseUpdate(dep, ver);
|
||||
const update = await this.parseUpdate(dep, ver);
|
||||
if (!update) continue;
|
||||
needUpdate.push(update);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user