Skip to content

Commit

Permalink
Update node.js dependencies to the latest versions
Browse files Browse the repository at this point in the history
- This fixes the problem with keccak module failing to build its native bindings and falling back to pure JS implementation
  • Loading branch information
cameel committed Jul 7, 2020
1 parent 16d460b commit de9d879
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"semver": "^5.3.0"
},
"devDependencies": {
"ethereumjs-util": "^5.0.1",
"standard": "^8.4.0",
"swarmhash": "^0.1.0"
"ethereumjs-util": "^7.0.2",
"standard": "^14.3.4",
"swarmhash": "^0.1.1"
},
"scripts": {
"lint": "standard update",
Expand Down
4 changes: 2 additions & 2 deletions update
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ dirs.forEach(function (dir) {
.map(function (pars) {
const fileContent = readFile(pars.path)
pars.longVersion = buildVersion(pars)
pars.keccak256 = '0x' + ethUtil.sha3(fileContent).toString('hex')
pars.urls = [ 'bzzr://' + swarmhash(fileContent).toString('hex') ]
pars.keccak256 = '0x' + ethUtil.keccak(fileContent).toString('hex')
pars.urls = ['bzzr://' + swarmhash(fileContent).toString('hex')]
return pars
})
.sort(function (a, b) {
Expand Down

0 comments on commit de9d879

Please sign in to comment.