Skip to content

Commit

Permalink
Updated specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
igoramadas committed Mar 22, 2019
1 parent 32aff82 commit 475e09c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.history
.DS_Store
.history/
.vscode/
coverage/
node_modules/
npm-debug.log
5 changes: 5 additions & 0 deletions lib/History.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog for JAUL

1.0.0
=====
* Initial release.
13 changes: 5 additions & 8 deletions lib/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,19 @@ class IOUtils {
if (fs.existsSync(path.resolve(target))) {
return;
}
var callback = function (p) {
var callback = function(p) {
p = path.resolve(p);
try {
fs.mkdirSync(p);
}
catch (ex) {
} catch (ex) {
if (ex.code === "ENOENT") {
callback(path.dirname(p));
callback(p);
}
else {
} else {
let stat;
try {
stat = fs.statSync(p);
}
catch (ex1) {
} catch (ex1) {
ex1.friendlyMessage = `Can't create directory: ${p}`;
throw ex1;
}
Expand All @@ -96,7 +93,7 @@ class IOUtils {
* @returns A promise with a setTimeout for the specified milliseconds.
*/
static sleep(ms) {
return new Promise(function (resolve) {
return new Promise(function(resolve) {
return setTimeout(resolve, ms);
});
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
},
"devDependencies": {
"@types/node": "^11.11.4",
"async_hooks": "^1.0.0",
"chai": "^4.2.0",
"coveralls": "^3.0.3",
"express": "^4.16.4",
Expand Down

0 comments on commit 475e09c

Please sign in to comment.