@leofcoin/peernet 0.14.20 → 0.14.21
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.
|
@@ -511,8 +511,7 @@ class Peer {
|
|
|
511
511
|
if (message.to !== this.id) return
|
|
512
512
|
// if (data.videocall) return this._startStream(true, false); // start video and audio stream
|
|
513
513
|
// if (data.call) return this._startStream(true, true); // start audio stream
|
|
514
|
-
|
|
515
|
-
if (signalinState === 'stable' && this.#connection.remoteDescription !== null && this.#connection.localDescription !== null) return
|
|
514
|
+
if (this.#connection?.signalinState === 'stable' && this.#connection?.remoteDescription !== null && this.#connection?.localDescription !== null) return
|
|
516
515
|
|
|
517
516
|
if (message.candidate) {
|
|
518
517
|
debug(`incoming candidate ${this.#channelName}`)
|
|
@@ -510,8 +510,7 @@ class Peer {
|
|
|
510
510
|
if (message.to !== this.id) return
|
|
511
511
|
// if (data.videocall) return this._startStream(true, false); // start video and audio stream
|
|
512
512
|
// if (data.call) return this._startStream(true, true); // start audio stream
|
|
513
|
-
|
|
514
|
-
if (signalinState === 'stable' && this.#connection.remoteDescription !== null && this.#connection.localDescription !== null) return
|
|
513
|
+
if (this.#connection?.signalinState === 'stable' && this.#connection?.remoteDescription !== null && this.#connection?.localDescription !== null) return
|
|
515
514
|
|
|
516
515
|
if (message.candidate) {
|
|
517
516
|
debug(`incoming candidate ${this.#channelName}`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/peernet",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/peernet.js",
|
|
6
6
|
"main": "dist/commonjs/peernet.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@leofcoin/codec-format-interface": "^1.4.0",
|
|
30
30
|
"@leofcoin/generate-account": "^1.0.4",
|
|
31
31
|
"@leofcoin/multi-wallet": "^2.1.2",
|
|
32
|
-
"@leofcoin/peernet-swarm": "^0.3.
|
|
32
|
+
"@leofcoin/peernet-swarm": "^0.3.10",
|
|
33
33
|
"@leofcoin/storage": "^3.0.0",
|
|
34
34
|
"@vandeurenglenn/base32": "^1.1.0",
|
|
35
35
|
"@vandeurenglenn/base58": "^1.1.0",
|