fix(core): update

This commit is contained in:
2020-03-16 17:04:17 +00:00
parent 61dbf9680b
commit 9abe66c830
2 changed files with 11 additions and 6 deletions

View File

@ -12,13 +12,10 @@ export class SmartArchive {
const parsedPath = plugins.path.parse(urlArg);
const uniqueFileName = plugins.smartunique.uni() + parsedPath.ext;
const downloadPath = plugins.path.join(paths.nogitDir, uniqueFileName);
const downloadedArchive = (
await plugins.smartrequest.getBinary(
'https://verdaccio.lossless.one/@pushrocks%2fwebsetup/-/websetup-2.0.14.tgz'
)
).body;
const downloadedArchive = (await plugins.smartrequest.getBinary(urlArg)).body;
await plugins.smartfile.memory.toFs(downloadedArchive, downloadPath);
await this.extractArchiveFromFilePath(downloadPath, targetDir);
await plugins.smartfile.fs.remove(downloadPath);
}
/**