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

Commit bdc239f

Browse files
committed
feat(deps, lint): update deps, remove unnecessary lint patch, remove
unnsupported feature
1 parent 5c1fc3b commit bdc239f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "multistream-select",
33
"version": "0.10.0",
44
"description": "JavaScript implementation of the multistream spec",
5-
"main": "src/index.js",
5+
"main": "lib/index.js",
66
"jsnext:main": "src/index.js",
77
"scripts": {
88
"lint": "aegir-lint",
@@ -43,19 +43,18 @@
4343
"dependencies": {
4444
"babel-runtime": "^6.11.6",
4545
"debug": "^2.2.0",
46-
"interface-connection": "^0.1.8",
46+
"interface-connection": "^0.2.1",
4747
"lodash.isfunction": "^3.0.8",
4848
"lodash.range": "^3.1.7",
4949
"pull-handshake": "^1.1.3",
50-
"pull-length-prefixed": "^1.0.0",
50+
"pull-length-prefixed": "^1.1.0",
5151
"pull-stream": "^3.4.3",
5252
"varint": "^4.0.1"
5353
},
5454
"devDependencies": {
55-
"aegir": "^6.0.0",
55+
"aegir": "^8.0.0",
5656
"chai": "^3.5.0",
5757
"pre-commit": "^1.1.3",
58-
"pull-length-prefixed": "^1.1.0",
5958
"pull-pair": "^1.1.0",
6059
"run-parallel": "^1.1.6",
6160
"run-series": "^1.1.4"

src/agreement.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ exports.handlerSelector = (rawConn, handlersMap) => {
5656
}
5757
log('received: %s', data.toString())
5858
const protocol = data.toString().slice(0, -1)
59-
const [key] = Object.keys(handlersMap).filter((id) => id === protocol)
59+
const result = Object.keys(handlersMap).filter((id) => id === protocol)
60+
const key = result && result[0]
6061

6162
if (key) {
6263
log('ack: %s', protocol)

src/dialer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function collectLs (conn) {
9090

9191
return pull.take((msg) => {
9292
if (first) {
93-
const size = varint.decode(msg) // eslint-disable-line
93+
varint.decode(msg)
9494
counter = varint.decode(msg, varint.decode.bytes)
9595
return true
9696
}

0 commit comments

Comments
 (0)