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

Commit e01e9fc

Browse files
committed
Merge pull request #56 from ipfs/nodev4
Push to node v4.0.0 and fix codestyle issues
2 parents 4fb09b9 + 011be35 commit e01e9fc

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
language: node_js
22
node_js:
3-
- "0.12"
4-
- "0.10"
3+
- "4.0"

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"brfs"
1818
]
1919
},
20+
"engines": {
21+
"node": "^4.0.0"
22+
},
2023
"repository": {
2124
"type": "git",
2225
"url": "https://github.com/ipfs/node-ipfs-api"
@@ -26,14 +29,19 @@
2629
"ipfsd-ctl": "^0.3.3",
2730
"mocha": "^2.2.5",
2831
"pre-commit": "^1.0.6",
29-
"standard": "^3.3.2",
32+
"standard": "^5.2.2",
3033
"uglify-js": "^2.4.24"
3134
},
3235
"scripts": {
3336
"test": "./node_modules/.bin/mocha",
34-
"lint": "./node_modules/.bin/standard --format",
37+
"lint": "./node_modules/.bin/standard",
3538
"build": "./node_modules/.bin/browserify -t brfs -s ipfsAPI -e ./src/index.js | tee dist/ipfsapi.js | ./node_modules/.bin/uglifyjs -m > dist/ipfsapi.min.js"
3639
},
40+
"standard": {
41+
"ignore": [
42+
"dist/*"
43+
]
44+
},
3745
"pre-commit": [
3846
"lint"
3947
],

src/request-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function requestAPI (path, args, opts, files, buffer, cb) {
6262
try {
6363
var obj = JSON.parse(chunk.toString())
6464
objects.push(obj)
65-
} catch(e) {
65+
} catch (e) {
6666
chunkedObjects = false
6767
data += chunk
6868
}

test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,5 +300,4 @@ describe('ipfs node api', function () {
300300
}
301301
})
302302
})
303-
304303
})

0 commit comments

Comments
 (0)