@viamrobotics/sdk 0.0.27-alpha.3 → 0.0.27-alpha.4
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/main.es.js +2 -2
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -225138,7 +225138,7 @@ const isLocalConnection = (o) => o.includes(".local"), dialDirect = async (o) =>
|
|
|
225138
225138
|
return o.credential && (r = o.credential), await e.connect(o.authEntity, r), console.debug("connected via gRPC"), e;
|
|
225139
225139
|
}, dialWebRTC = async (o) => {
|
|
225140
225140
|
console.debug("dialing via WebRTC...");
|
|
225141
|
-
const e = o.host, r = o.signalingAddress, t = { iceServers: o.iceServers }, n = {
|
|
225141
|
+
const e = o.host, r = o.signalingAddress, t = { iceServers: o.iceServers ? [] : o.iceServers }, n = {
|
|
225142
225142
|
enabled: !0,
|
|
225143
225143
|
host: o.host,
|
|
225144
225144
|
signalingAddress: r,
|
|
@@ -225148,7 +225148,7 @@ const isLocalConnection = (o) => o.includes(".local"), dialDirect = async (o) =>
|
|
|
225148
225148
|
return o.credential && (s = o.credential), await i.connect(e, s), console.debug("connected via WebRTC"), i;
|
|
225149
225149
|
}, isDialWebRTCConf = (o) => {
|
|
225150
225150
|
const e = o;
|
|
225151
|
-
return !(typeof e.signalingAddress != "string" || !
|
|
225151
|
+
return !(typeof e.signalingAddress != "string" || !e.iceServers || e.iceServers instanceof Array);
|
|
225152
225152
|
}, createRobotClient = async (o) => {
|
|
225153
225153
|
let e;
|
|
225154
225154
|
if (isDialWebRTCConf(o))
|