webitel-sdk 26.4.17 → 26.4.20
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/index.cjs +8 -8
- package/index.cjs.map +1 -1
- package/index.mjs +8 -8
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/sip/index.d.ts.map +1 -1
- package/version.d.ts +1 -1
package/index.cjs
CHANGED
|
@@ -66126,12 +66126,12 @@ var Log = class {
|
|
|
66126
66126
|
//#region src/sip/index.ts
|
|
66127
66127
|
function buildAudioConstraints(processing = {}) {
|
|
66128
66128
|
const { echoCancellation, noiseSuppression, autoGainControl } = processing;
|
|
66129
|
-
|
|
66130
|
-
|
|
66131
|
-
|
|
66132
|
-
|
|
66133
|
-
|
|
66134
|
-
|
|
66129
|
+
const constraints = {};
|
|
66130
|
+
if (echoCancellation !== void 0) constraints.echoCancellation = echoCancellation;
|
|
66131
|
+
if (noiseSuppression !== void 0) constraints.noiseSuppression = noiseSuppression;
|
|
66132
|
+
if (autoGainControl !== void 0) constraints.autoGainControl = autoGainControl;
|
|
66133
|
+
if (Object.keys(constraints).length === 0) return true;
|
|
66134
|
+
return constraints;
|
|
66135
66135
|
}
|
|
66136
66136
|
var SipClient = class extends ee_ts.EventEmitter {};
|
|
66137
66137
|
//#endregion
|
|
@@ -66707,7 +66707,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
|
|
|
66707
66707
|
_defineProperty(SipPhone$1, "sipVersion", version$1);
|
|
66708
66708
|
//#endregion
|
|
66709
66709
|
//#region src/version.ts
|
|
66710
|
-
const version = "26.4.
|
|
66710
|
+
const version = "26.4.20";
|
|
66711
66711
|
//#endregion
|
|
66712
66712
|
//#region src/socket/errors.ts
|
|
66713
66713
|
/**
|
|
@@ -69934,7 +69934,7 @@ var Conversation = class {
|
|
|
69934
69934
|
* @returns {ChatChannel} - Оновлений об'єкт ChatChannel.
|
|
69935
69935
|
*/
|
|
69936
69936
|
function wrapChannelMember(m) {
|
|
69937
|
-
m.messenger = m.type;
|
|
69937
|
+
if (m) m.messenger = m.type;
|
|
69938
69938
|
return m;
|
|
69939
69939
|
}
|
|
69940
69940
|
//#endregion
|