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

feat: update all dependencies #329

Merged
merged 1 commit into from
Aug 4, 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
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"dependencies": {
"async": "^2.0.0-rc.5",
"babel-runtime": "^6.6.1",
"async": "^2.0.1",
"babel-runtime": "^6.11.6",
"bl": "^1.1.2",
"bs58": "^3.0.0",
"detect-node": "^2.0.3",
"flatmap": "0.0.3",
"glob": "^7.0.3",
"glob": "^7.0.5",
"ipfs-merkle-dag": "^0.6.0",
"is-ipfs": "^0.2.0",
"isstream": "^0.1.2",
"multiaddr": "^2.0.0",
"multiaddr": "^2.0.2",
"multipart-stream": "^2.0.1",
"ndjson": "^1.4.3",
"promisify-es6": "^1.0.1",
"qs": "^6.1.0",
"wreck": "^7.0.2"
"qs": "^6.2.1",
"wreck": "^9.0.0"
},
"engines": {
"node": ">=4.2.2"
Expand All @@ -30,14 +30,14 @@
"url": "https://github.com/ipfs/js-ipfs-api"
},
"devDependencies": {
"aegir": "^3.2.0",
"aegir": "^5.0.1",
"chai": "^3.5.0",
"gulp": "^3.9.1",
"interface-ipfs-core": "^0.4.3",
"interface-ipfs-core": "^0.5.0",
"ipfsd-ctl": "^0.14.0",
"pre-commit": "^1.1.2",
"pre-commit": "^1.1.3",
"stream-equal": "^0.1.8",
"stream-http": "^2.2.0",
"stream-http": "^2.3.1",
"streamifier": "^0.1.1"
},
"scripts": {
Expand Down Expand Up @@ -94,4 +94,4 @@
"url": "https://github.com/ipfs/js-ipfs-api/issues"
},
"homepage": "https://github.com/ipfs/js-ipfs-api"
}
}
3 changes: 2 additions & 1 deletion test/api/block.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('.block', () => {
})

it('block.get', (done) => {
return apiClients.a.block.get(blorbKey)
apiClients.a.block.get(blorbKey)
.then((res) => {
let buf = ''
res
Expand All @@ -71,6 +71,7 @@ describe('.block', () => {
done()
})
})
.catch(done)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mocha3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes those changes are to make mocha happy :)

})

it('block.stat', () => {
Expand Down
6 changes: 4 additions & 2 deletions test/api/files.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('.files (pseudo mfs)', () => {
})

it('files.write', (done) => {
return apiClients.a.files
apiClients.a.files
.write('/test-folder/test-file-2.txt', new Buffer('hello world'), {create: true})
.then(() => {
return apiClients.a.files.read('/test-folder/test-file-2.txt')
Expand All @@ -194,10 +194,11 @@ describe('.files (pseudo mfs)', () => {
done()
})
})
.catch(done)
})

it('files.write without options', (done) => {
return apiClients.a.files
apiClients.a.files
.write('/test-folder/test-file-2.txt', new Buffer('hello world'))
.then(() => {
return apiClients.a.files.read('/test-folder/test-file-2.txt')
Expand All @@ -216,6 +217,7 @@ describe('.files (pseudo mfs)', () => {
done()
})
})
.catch(done)
})

it('files.stat', () => {
Expand Down
5 changes: 2 additions & 3 deletions test/api/log.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ describe('.log', () => {
})

describe('promise', () => {
it('.log.tail', (done) => {
it('.log.tail', () => {
if (isPhantom) {
return done()
return
}

return apiClients.a.log.tail()
.then((res) => {
res.once('data', (obj) => {
expect(obj).to.be.an('object')
done()
})
})
})
Expand Down