Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit b3eecfb

Browse files
authored
Merge pull request #49 from ethereumjs/update-dependencies
Update dependencies
2 parents 16cddd1 + 361501d commit b3eecfb

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Temporary Items
3232
logs
3333
*.log
3434
npm-debug.log*
35+
package-lock.json
3536

3637
# Runtime data
3738
pids
@@ -43,6 +44,7 @@ lib-cov
4344

4445
# Coverage directory used by tools like istanbul
4546
coverage
47+
.nyc_output
4648

4749
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
4850
.grunt

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const BN = ethUtil.BN
1919
const rlp = ethUtil.rlp
2020

2121
// geth compatible db keys
22-
const headHeaderKey = 'LastHeader' // current canonical head for light sync
23-
const headBlockKey = 'LastBlock' // current canonical head for full sync
24-
const headerPrefix = new Buffer('h') // headerPrefix + number + hash -> header
25-
const tdSuffix = new Buffer('t') // headerPrefix + number + hash + tdSuffix -> td
26-
const numSuffix = new Buffer('n') // headerPrefix + number + numSuffix -> hash
22+
const headHeaderKey = 'LastHeader' // current canonical head for light sync
23+
const headBlockKey = 'LastBlock' // current canonical head for full sync
24+
const headerPrefix = new Buffer('h') // headerPrefix + number + hash -> header
25+
const tdSuffix = new Buffer('t') // headerPrefix + number + hash + tdSuffix -> td
26+
const numSuffix = new Buffer('n') // headerPrefix + number + numSuffix -> hash
2727
const blockHashPrefix = new Buffer('H') // blockHashPrefix + hash -> number
28-
const bodyPrefix = new Buffer('b') // bodyPrefix + number + hash -> block body
28+
const bodyPrefix = new Buffer('b') // bodyPrefix + number + hash -> block body
2929

3030
// utility functions
3131
const bufBE8 = n => n.toBuffer('be', 8) // convert BN to big endian Buffer

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "A module to store and interact with blocks",
55
"main": "index.js",
66
"scripts": {
7-
"coverage": "istanbul cover ./test/index.js",
8-
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
7+
"coverage": "nyc npm run test && nyc report --reporter=text-lcov > .nyc_output/lcov.info",
8+
"coveralls": "npm run coverage && coveralls <.nyc_output/lcov.info",
99
"lint": "standard",
1010
"test": "tape ./test/index.js"
1111
},
@@ -27,7 +27,7 @@
2727
"async": "^2.1.2",
2828
"ethashjs": "~0.0.7",
2929
"ethereumjs-block": "~1.7.0",
30-
"ethereumjs-util": "~5.1.0",
30+
"ethereumjs-util": "~5.2.0",
3131
"flow-stoplight": "^1.0.0",
3232
"levelup": "^1.3.0",
3333
"memdown": "^1.1.0",
@@ -37,8 +37,8 @@
3737
},
3838
"devDependencies": {
3939
"coveralls": "^3.0.0",
40-
"istanbul": "^0.4.2",
41-
"standard": "^10.0.0-beta.0",
40+
"nyc": "^11.8.0",
41+
"standard": "^11.0.1",
4242
"tape": "^4.2.1"
4343
}
4444
}

0 commit comments

Comments
 (0)