Comparing version 0.0.5 to 0.0.6
@@ -33,9 +33,10 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let status; | ||
try { | ||
yield _checkIfDirExists(cwd, dirName); | ||
return true; | ||
status = yield _checkIfDirExists(cwd, dirName); | ||
} | ||
catch (err) { | ||
return false; | ||
status = false; | ||
} | ||
return status; | ||
}); | ||
@@ -42,0 +43,0 @@ } |
{ | ||
"name": "mdlinkc", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "mdlinkc", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Valera Rozuvan", |
@@ -27,8 +27,11 @@ import * as fs from 'fs' | ||
async function checkIfDirExists(cwd, dirName) { | ||
let status | ||
try { | ||
await _checkIfDirExists(cwd, dirName) | ||
return true | ||
status = await _checkIfDirExists(cwd, dirName) | ||
} catch (err) { | ||
return false | ||
status = false | ||
} | ||
return status | ||
} | ||
@@ -35,0 +38,0 @@ |
Sorry, the diff of this file is not supported yet
7012
134