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

Commit 2fc7d0a

Browse files
authored
chore: test against go-ipfs 0.4.13 (#638)
* chore: test against go-ipfs 0.4.13 * it was pump * happy linter
1 parent 62d733e commit 2fc7d0a

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"multihashes": "~0.4.12",
4141
"ndjson": "^1.5.0",
4242
"once": "^1.4.0",
43-
"peer-id": "~0.10.2",
44-
"peer-info": "~0.11.1",
43+
"peer-id": "~0.10.3",
44+
"peer-info": "~0.11.3",
4545
"promisify-es6": "^1.0.3",
4646
"pump": "^1.0.3",
4747
"pull-defer": "^0.2.2",
@@ -62,14 +62,14 @@
6262
"url": "https://github.com/ipfs/js-ipfs-api"
6363
},
6464
"devDependencies": {
65-
"aegir": "^12.1.3",
65+
"aegir": "^12.2.0",
6666
"chai": "^4.1.2",
6767
"dirty-chai": "^2.0.1",
6868
"eslint-plugin-react": "^7.5.1",
6969
"gulp": "^3.9.1",
70-
"interface-ipfs-core": "~0.36.6",
70+
"interface-ipfs-core": "~0.36.11",
7171
"hapi": "^16.6.2",
72-
"ipfsd-ctl": "~0.25.1",
72+
"ipfsd-ctl": "~0.26.0",
7373
"pre-commit": "^1.2.2",
7474
"socket.io": "^2.0.4",
7575
"socket.io-client": "^2.0.4",

src/utils/send-files-stream.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ module.exports = (send, path) => {
3232
let ended = false
3333
let writing = false
3434

35-
if (!options) {
36-
options = {}
37-
}
35+
options = options || {}
3836

3937
const multipart = new Multipart()
4038

@@ -45,8 +43,8 @@ module.exports = (send, path) => {
4543
retStream._write = (file, enc, _next) => {
4644
const next = once(_next)
4745
try {
48-
const files = prepareFile(file, Object.assign({}, options, options.qs)).map(
49-
(file) => Object.assign({headers: headers(file)}, file))
46+
const files = prepareFile(file, Object.assign({}, options, options.qs))
47+
.map((file) => Object.assign({headers: headers(file)}, file))
5048

5149
writing = true
5250
eachSeries(
@@ -117,9 +115,7 @@ module.exports = (send, path) => {
117115
}
118116

119117
if (!response) {
120-
// no response object, which means
121-
// everything is ok, so we end the
122-
// return stream
118+
// no response, which means everything is ok, so we end the retStream
123119
return retStream.push(null) // early
124120
}
125121

0 commit comments

Comments
 (0)