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

Push to node v4.0.0 and fix codestyle issues #56

Merged
merged 2 commits into from
Sep 14, 2015
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
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: node_js
node_js:
- "0.12"
- "0.10"
- "4.0"
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"brfs"
]
},
"engines": {
"node": "^4.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ipfs/node-ipfs-api"
Expand All @@ -26,14 +29,19 @@
"ipfsd-ctl": "^0.3.3",
"mocha": "^2.2.5",
"pre-commit": "^1.0.6",
"standard": "^3.3.2",
"standard": "^5.2.2",
"uglify-js": "^2.4.24"
},
"scripts": {
"test": "./node_modules/.bin/mocha",
"lint": "./node_modules/.bin/standard --format",
"lint": "./node_modules/.bin/standard",
"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"
},
"standard": {
"ignore": [
"dist/*"
]
},
"pre-commit": [
"lint"
],
Expand Down
2 changes: 1 addition & 1 deletion src/request-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function requestAPI (path, args, opts, files, buffer, cb) {
try {
var obj = JSON.parse(chunk.toString())
objects.push(obj)
} catch(e) {
} catch (e) {
chunkedObjects = false
data += chunk
}
Expand Down
1 change: 0 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,4 @@ describe('ipfs node api', function () {
}
})
})

})