Skip to content

Commit

Permalink
update dependencies, use ^ (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendrucker authored Mar 1, 2021
1 parent 291a2c3 commit 4fcc8d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ function exorcist(input, url, root, base, errorOnMissing) {
return input.end(separated.json, 'utf8', done);
}

mkdirp(path.dirname(input), function (err) {
if (err) return done(err);
fs.writeFile(input, separated.json, 'utf8', done);
});
mkdirp(path.dirname(input))
.then(() => fs.writeFile(input, separated.json, 'utf8', done))
.catch(done);

function done(err) {
if (err) return stream.emit('error', err);
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
},
"homepage": "https://github.com/thlorenz/exorcist",
"dependencies": {
"is-stream": "~1.1.0",
"minimist": "0.0.5",
"mkdirp": "~0.5.1",
"mold-source-map": "~0.4.0"
"is-stream": "^2.0.0",
"minimist": "^1.2.5",
"mkdirp": "^1.0.4",
"mold-source-map": "^0.4.0"
},
"devDependencies": {
"browserify": "^17.0.0",
Expand Down

0 comments on commit 4fcc8d3

Please sign in to comment.