Skip to content

Commit

Permalink
fix: update [email protected] (#341)
Browse files Browse the repository at this point in the history
* fix: update [email protected]

* chore: mkdirp now returns a promise
  • Loading branch information
juanpicado authored Mar 11, 2020
1 parent ebfec81 commit 96db337
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/local-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"async": "3.2.0",
"level": "5.0.1",
"lodash": "4.17.15",
"mkdirp": "0.5.1"
"mkdirp": "1.0.3"
},
"devDependencies": {
"@types/minimatch": "^3.0.3",
Expand Down
11 changes: 6 additions & 5 deletions plugins/local-storage/src/local-fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,13 @@ export default class LocalFS implements ILocalFSPackageManager {

createTempFile(err => {
if (err && err.code === noSuchFile) {
mkdirp(path.dirname(dest), function(err) {
if (err) {
mkdirp(path.dirname(dest))
.then(() => {
createTempFile(cb);
})
.catch(err => {
return cb(err);
}
createTempFile(cb);
});
});
} else {
cb(err);
}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8500,6 +8500,11 @@ mkdirp@*, [email protected], mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1:
dependencies:
minimist "0.0.8"

[email protected]:
version "1.0.3"
resolved "https://registry.verdaccio.org/mkdirp/-/mkdirp-1.0.3.tgz#4cf2e30ad45959dddea53ad97d518b6c8205e1ea"
integrity sha512-6uCP4Qc0sWsgMLy1EOqqS/3rjDHOEnsStVr/4vtAIK2Y5i2kA7lFFejYrpIyiN9w0pYf4ckeCYT9f1r1P9KX5g==

mocha@^7.1.0:
version "7.1.0"
resolved "https://registry.verdaccio.org/mocha/-/mocha-7.1.0.tgz#c784f579ad0904d29229ad6cb1e2514e4db7d249"
Expand Down

0 comments on commit 96db337

Please sign in to comment.