egos-transfer 0.2.15 → 0.2.16

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.
@@ -327,7 +327,10 @@ class PeerTransfer {
327
327
  });
328
328
  }
329
329
  removeConnection(peerId, connectionId) {
330
- console.trace('removeConnection', peerId, connectionId);
330
+ var _a;
331
+ if (((_a = this.peerConfig) === null || _a === void 0 ? void 0 : _a.debug) >= 2) {
332
+ console.log('removeConnection', peerId, connectionId);
333
+ }
331
334
  this.connectionManager.remove(peerId, connectionId);
332
335
  }
333
336
  isValidConnection(conn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egos-transfer",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "1234",
5
5
  "homepage": "https://github.com/superbogy/peer-transfer#readme",
6
6
  "bugs": {
@@ -379,7 +379,10 @@ export abstract class PeerTransfer {
379
379
  }
380
380
 
381
381
  removeConnection(peerId: string, connectionId?: string) {
382
- console.trace('removeConnection', peerId, connectionId);
382
+ if (this.peerConfig?.debug >= 2) {
383
+ console.log('removeConnection', peerId, connectionId);
384
+ }
385
+
383
386
  this.connectionManager.remove(peerId, connectionId);
384
387
  }
385
388