From 9aced8f01f08e0a55710ccecbc6396673e6be518 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Mon, 30 Nov 2020 20:02:30 +0100 Subject: [PATCH] fix + docs --- packages/api/src/utility/downloadPackage.js | 2 +- packages/types/.yarnrc | 2 ++ packages/types/README.md | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 packages/types/.yarnrc diff --git a/packages/api/src/utility/downloadPackage.js b/packages/api/src/utility/downloadPackage.js index 581e62f0..d15add20 100644 --- a/packages/api/src/utility/downloadPackage.js +++ b/packages/api/src/utility/downloadPackage.js @@ -40,7 +40,7 @@ async function downloadPackage(packageName, directory) { const tarball = infoResp.data.versions[latest].dist.tarball; const tmpFile = path.join(uploadsdir(), uuidv1() + '.tgz'); - downloadFile(tarball, tmpFile); + await downloadFile(tarball, tmpFile); const tmpDir = path.join(uploadsdir(), uuidv1()); fs.mkdirSync(tmpDir); await extractTarball(tmpFile, tmpDir); diff --git a/packages/types/.yarnrc b/packages/types/.yarnrc new file mode 100644 index 00000000..41fd2f08 --- /dev/null +++ b/packages/types/.yarnrc @@ -0,0 +1,2 @@ +version-tag-prefix packages-types-v +version-git-message "packages-types v%s" \ No newline at end of file diff --git a/packages/types/README.md b/packages/types/README.md index a8dd80ff..0e8a46c2 100644 --- a/packages/types/README.md +++ b/packages/types/README.md @@ -7,6 +7,7 @@ Typescript definitions for DbGate app - dumper.d.ts - SQL dumper - dump SQL commands independed on DB engine - engines.d.ts - definition of SQL engine driver - query.d.ts - query results definition + - extensions.d.ts - plugin related definitions ## Installation