refactor(download): refactor download module
test / test (push) Failing after 5m35s

This commit is contained in:
2026-10-27 01:04:16 +03:00
parent 188fcc8e4c
commit cf3a707a47
7 changed files with 105 additions and 79 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import os from "os";
import path from "path";
import { Downloader } from "../common/download";
import download from "../common/download";
import { Logger } from "../common/log";
export class Sdk {
@@ -55,7 +55,7 @@ export class Sdk {
return Promise.resolve();
} else {
this.log.i("download: *%s*", this.link);
return Downloader.download(this.link, this.path, strip);
return download(this.link, this.path, { strip });
}
}
}