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.
- package/dist/peer-transfer.js +4 -1
- package/package.json +1 -1
- package/src/peer-transfer.ts +4 -1
package/dist/peer-transfer.js
CHANGED
|
@@ -327,7 +327,10 @@ class PeerTransfer {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
removeConnection(peerId, connectionId) {
|
|
330
|
-
|
|
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
package/src/peer-transfer.ts
CHANGED
|
@@ -379,7 +379,10 @@ export abstract class PeerTransfer {
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
removeConnection(peerId: string, connectionId?: string) {
|
|
382
|
-
|
|
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
|
|