Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Apr 6, 2020
1 parent ff6408c commit 98d9e03
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 127 deletions.
179 changes: 64 additions & 115 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "src/index.js",
"dependencies": {
"chalk": "^3.0.0",
"cli-progress": "^3.6.0",
"cli-progress": "^3.6.1",
"execa": "^4.0.0",
"extract-zip": "^1.7.0",
"extract-zip": "^2.0.0",
"glob": "^7.1.6",
"inquirer": "^7.1.0",
"node-fetch": "^2.6.0",
Expand All @@ -20,7 +20,7 @@
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-plugin-import": "^2.20.1"
"eslint-plugin-import": "^2.20.2"
},
"bin": {
"esvu": "./src/bin.js"
Expand Down
3 changes: 3 additions & 0 deletions src/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ async function loadStatus(promptIfEmpty) {
try {
const source = await fs.promises.readFile(STATUS_PATH, 'utf8');
status = JSON.parse(source);
if (!status.installed) {
status.installed = {};
}
} catch {
let selectedEngines = [];

Expand Down
10 changes: 1 addition & 9 deletions src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,7 @@ function guessPlatform() {
}

function unzip(from, to) {
return new Promise((resolve, reject) => {
extractZip(from, { dir: to }, (e) => {
if (e) {
reject(e);
} else {
resolve();
}
});
});
return extractZip(from, { dir: to });
}

async function untar(from, to) {
Expand Down

0 comments on commit 98d9e03

Please sign in to comment.