Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update node.js dependencies to the latest versions to pull in newer keccak module #31

Merged
merged 1 commit into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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