Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
feat(deps, lint): update deps, remove unnecessary lint patch, remove
Browse files Browse the repository at this point in the history
unnsupported feature
  • Loading branch information
daviddias committed Sep 6, 2016
1 parent 5c1fc3b commit bdc239f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "multistream-select",
"version": "0.10.0",
"description": "JavaScript implementation of the multistream spec",
"main": "src/index.js",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"lint": "aegir-lint",
Expand Down Expand Up @@ -43,19 +43,18 @@
"dependencies": {
"babel-runtime": "^6.11.6",
"debug": "^2.2.0",
"interface-connection": "^0.1.8",
"interface-connection": "^0.2.1",
"lodash.isfunction": "^3.0.8",
"lodash.range": "^3.1.7",
"pull-handshake": "^1.1.3",
"pull-length-prefixed": "^1.0.0",
"pull-length-prefixed": "^1.1.0",
"pull-stream": "^3.4.3",
"varint": "^4.0.1"
},
"devDependencies": {
"aegir": "^6.0.0",
"aegir": "^8.0.0",
"chai": "^3.5.0",
"pre-commit": "^1.1.3",
"pull-length-prefixed": "^1.1.0",
"pull-pair": "^1.1.0",
"run-parallel": "^1.1.6",
"run-series": "^1.1.4"
Expand Down
3 changes: 2 additions & 1 deletion src/agreement.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ exports.handlerSelector = (rawConn, handlersMap) => {
}
log('received: %s', data.toString())
const protocol = data.toString().slice(0, -1)
const [key] = Object.keys(handlersMap).filter((id) => id === protocol)
const result = Object.keys(handlersMap).filter((id) => id === protocol)
const key = result && result[0]

if (key) {
log('ack: %s', protocol)
Expand Down
2 changes: 1 addition & 1 deletion src/dialer.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function collectLs (conn) {

return pull.take((msg) => {
if (first) {
const size = varint.decode(msg) // eslint-disable-line
varint.decode(msg)
counter = varint.decode(msg, varint.decode.bytes)
return true
}
Expand Down

0 comments on commit bdc239f

Please sign in to comment.