Skip to content

Commit

Permalink
Upgrade jsonfile
Browse files Browse the repository at this point in the history
Fixes #745
  • Loading branch information
RyanZim committed Mar 10, 2020
1 parent 92388f2 commit 4a006ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/json/jsonfile.js
@@ -1,12 +1,11 @@
'use strict'

const u = require('universalify').fromCallback
const jsonFile = require('jsonfile')

module.exports = {
// jsonfile exports
readJson: u(jsonFile.readFile),
readJson: jsonFile.readFile,
readJsonSync: jsonFile.readFileSync,
writeJson: u(jsonFile.writeFile),
writeJson: jsonFile.writeFile,
writeJsonSync: jsonFile.writeFileSync
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"at-least-node": "^1.0.0",
"graceful-fs": "^4.2.0",
"jsonfile": "^4.0.0",
"jsonfile": "^6.0.1",
"universalify": "^1.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 4a006ca

Please sign in to comment.