Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

ipfs-bitswap@0.4.1 breaks build ⚠️ #309

Merged
merged 2 commits into from
Jun 6, 2016
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"glob": "^7.0.3",
"hapi": "^13.4.1",
"ipfs-api": "^4.1.0",
"ipfs-bitswap": "^0.4.0",
"ipfs-bitswap": "^0.4.1",
"ipfs-block": "^0.3.0",
"ipfs-block-service": "^0.4.0",
"ipfs-merkle-dag": "^0.6.0",
Expand Down
1 change: 0 additions & 1 deletion src/cli/commands/bitswap/wantlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module.exports = Command.extend({
if (err) {
throw err
}

res.Keys.forEach((k) => console.log(k))
})
})
Expand Down
6 changes: 1 addition & 5 deletions src/core/ipfs/bitswap.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
'use strict'

const bs58 = require('bs58')

const OFFLINE_ERROR = require('../utils').OFFLINE_ERROR

function formatWantlist (list) {
return Array.from(list).map((el) => {
return bs58.encode(new Buffer(el[0], 'hex'))
})
return Array.from(list).map((e) => e[0])
}

module.exports = function bitswap (self) {
Expand Down
2 changes: 1 addition & 1 deletion test/cli/test-bitswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('bitswap', function () {
nexpect.spawn('node', [process.cwd() + '/src/cli/bin.js', 'bitswap', 'wantlist'], {env})
.run((err, stdout, exitcode) => {
expect(err).to.not.exist
// expect(exitcode).to.equal(0)
expect(exitcode).to.equal(0)
expect(stdout).to.be.eql([
key
])
Expand Down