Skip to content

Commit

Permalink
Update mkdirp dependency to 1.0.4 (Closes: #65)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed May 26, 2021
1 parent ba60b10 commit b70a495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,13 @@ var createDirs = function(dirs, to, options, callback) {
err.errno = 27;
options.errors.push(err);
} else {
mkdirp(to, stat.mode, stack.add(function(err) {
var ef = stack.add(function(err) {
/*istanbul ignore next*/
if (err) {
options.errors.push(err);
}
}));
});
mkdirp(to, stat.mode).then(ef).catch(ef);
}
}));
}
Expand All @@ -139,7 +140,7 @@ var createDirs = function(dirs, to, options, callback) {

var copyFile = function(from, to, options, callback) {
var dir = path.dirname(to);
mkdirp(dir, function() {
mkdirp(dir).then( function() {
fs.stat(to, function(statError) {
var err;
if(!statError && options.overwrite !== true) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"graceful-fs": "^4.1.5",
"minimist": "^1.2.0",
"mkdirp": "~0.5.1",
"mkdirp": "^1.0.4",
"rimraf": "^2.5.4"
},
"main": "./lib/index.js",
Expand Down

0 comments on commit b70a495

Please sign in to comment.