Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jan 31, 2017
1 parent 0b159d1 commit d962835
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ build
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

lib
dist
27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "ipfs-geoip",
"version": "2.1.0",
"description": "Library for ipfs geoip lookups",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"main": "src/index.js",
"scripts": {
"lint": "aegir-lint",
"build": "aegir-build",
Expand All @@ -18,25 +17,25 @@
"dependencies": {
"inet_ipv4": "^1.0.0",
"memoizee": "^0.4.1",
"multihashes": "^0.2.2"
"multihashes": "^0.3.2"
},
"repository": {
"type": "git",
"url": "https://github.com/ipfs/ipfs-geoip"
},
"devDependencies": {
"aegir": "^8.1.2",
"bl": "^1.1.2",
"bluebird": "^3.4.6",
"aegir": "^9.4.0",
"bl": "^1.2.0",
"bluebird": "^3.4.7",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"csv": "^1.1.0",
"gauge": "^2.6.0",
"iconv-lite": "^0.4.13",
"ipfs-api": "^9.0.0",
"ipfsd-ctl": "^0.16.0",
"lodash": "^4.16.4",
"pre-commit": "^1.1.3"
"csv": "^1.1.1",
"gauge": "^2.7.2",
"iconv-lite": "^0.4.15",
"ipfs-api": "^12.1.4",
"ipfsd-ctl": "^0.18.1",
"lodash": "^4.17.4",
"pre-commit": "^1.2.2"
},
"keywords": [
"ipfs",
Expand All @@ -63,4 +62,4 @@
"Kristoffer Ström <kristoffer@rymdkoloni.se>",
"Richard Littauer <richard.littauer@gmail.com>"
]
}
}
4 changes: 2 additions & 2 deletions src/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ function _lookup (ipfs, hash, lookfor, cb) {

const next = res.links[child - 1]

if (!next || !next.hash) {
if (!next || !next.multihash) {
return cb(new Error('Failed to lookup node'))
}

return memoizedLookup(ipfs, next.hash, lookfor, cb)
return memoizedLookup(ipfs, next.multihash, lookfor, cb)
} else if (obj.type === 'Leaf') {
while (obj.data[child] && obj.data[child].min <= lookfor) {
child++
Expand Down

0 comments on commit d962835

Please sign in to comment.