ssb-conn
Advanced tools
Comparing version 6.0.3 to 6.0.4
@@ -33,6 +33,6 @@ "use strict"; | ||
const data = (typeof b === 'object' ? b : {}); | ||
this._hub.connect(address, data).then(result => cb === null || cb === void 0 ? void 0 : cb(null, result), err => cb === null || cb === void 0 ? void 0 : cb(err)); | ||
this._hub.connect(address, data).then((result) => cb === null || cb === void 0 ? void 0 : cb(null, result), (err) => cb === null || cb === void 0 ? void 0 : cb(err)); | ||
}; | ||
this.disconnect = (address, cb) => { | ||
this._hub.disconnect(address).then(result => cb === null || cb === void 0 ? void 0 : cb(null, result), err => cb === null || cb === void 0 ? void 0 : cb(err)); | ||
this._hub.disconnect(address).then((result) => cb === null || cb === void 0 ? void 0 : cb(null, result), (err) => cb === null || cb === void 0 ? void 0 : cb(err)); | ||
}; | ||
@@ -91,5 +91,5 @@ this.peers = () => this._hub.liveEntries(); | ||
that.stopScheduler(); | ||
that._db.close(); | ||
that._hub.close(); | ||
that._staging.close(); | ||
that._db.close(); | ||
return fn.apply(this, args); | ||
@@ -96,0 +96,0 @@ }); |
{ | ||
"name": "ssb-conn", | ||
"description": "SSB plugin for establishing and managing peer connections", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"homepage": "https://github.com/staltz/ssb-conn", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
80170