This commit is contained in:
Dragon Fire
2020-12-15 20:46:52 -05:00
parent 0685459edb
commit a8750e6488
+2 -2
View File
@@ -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({