blind-peer 2.7.14 → 2.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin.js +7 -0
  2. package/package.json +1 -1
package/bin.js CHANGED
@@ -127,6 +127,13 @@ const cmd = command('blind-peer',
127
127
  const key = idEnc.normalize(peerInfo.publicKey)
128
128
  logger.debug(`Opened connection to ${key}`)
129
129
  conn.on('close', () => logger.debug(`Closed connection to ${key}`))
130
+ conn.on('error', (err) => {
131
+ if (err.code === 'ECONNRESET') {
132
+ logger.debug(`Connection error with ${key}: ${err.stack}`)
133
+ return
134
+ }
135
+ logger.info(`Connection error with ${key}: ${err.stack}`)
136
+ })
130
137
  })
131
138
  }
132
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blind-peer",
3
- "version": "2.7.14",
3
+ "version": "2.7.15",
4
4
  "description": "Blind peers help keep hypercores available",
5
5
  "main": "index.js",
6
6
  "bin": {