ssb-conn-hub
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -187,3 +187,3 @@ "use strict"; | ||
this._peers.delete(address); | ||
debug('failed to connect to %s', address); | ||
debug('failed to connect to %s because: %s', address, err.message); | ||
this._notifyEvent({ | ||
@@ -232,3 +232,3 @@ type: 'connecting-failed', | ||
if (err) { | ||
debug('failed to disconnect from %s', address); | ||
debug('failed to disconnect from %s because: %s', address, err.message); | ||
this._notifyEvent({ | ||
@@ -235,0 +235,0 @@ type: 'disconnecting-failed', |
{ | ||
"name": "ssb-conn-hub", | ||
"description": "Module that manages active connections to SSB peers", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"homepage": "https://github.com/staltz/ssb-conn-hub", | ||
@@ -25,11 +25,13 @@ "main": "lib/index.js", | ||
"@types/node": "12.x", | ||
"secret-stack": "6.3.2", | ||
"secret-stack": "6.4.0", | ||
"ssb-caps": "~1.1.0", | ||
"ssb-keys": "~8.1.0", | ||
"tap-bail": "^1.0.0", | ||
"tap-spec": "^5.0.0", | ||
"tape": "^5.2.2", | ||
"typescript": "4.2.x" | ||
"typescript": "~4.2.4" | ||
}, | ||
"scripts": { | ||
"typescript": "tsc", | ||
"tape": "set -e; for t in test/*.js; do node $t; done", | ||
"tape": "tape test/*.js | tap-bail | tap-spec", | ||
"test": "npm run typescript && npm run tape" | ||
@@ -36,0 +38,0 @@ }, |
@@ -236,3 +236,3 @@ import {ConnectionData as Data, ListenEvent, Address} from './types'; | ||
this._peers.delete(address); | ||
debug('failed to connect to %s', address); | ||
debug('failed to connect to %s because: %s', address, err.message); | ||
this._notifyEvent({ | ||
@@ -286,3 +286,3 @@ type: 'connecting-failed', | ||
if (err) { | ||
debug('failed to disconnect from %s', address); | ||
debug('failed to disconnect from %s because: %s', address, err.message); | ||
this._notifyEvent({ | ||
@@ -289,0 +289,0 @@ type: 'disconnecting-failed', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111908
8