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.mjs CHANGED
@@ -66101,12 +66101,12 @@ var Log = class {
66101
66101
  //#region src/sip/index.ts
66102
66102
  function buildAudioConstraints(processing = {}) {
66103
66103
  const { echoCancellation, noiseSuppression, autoGainControl } = processing;
66104
- if (echoCancellation === void 0 && noiseSuppression === void 0 && autoGainControl === void 0) return true;
66105
- return {
66106
- echoCancellation: !!echoCancellation,
66107
- noiseSuppression: !!noiseSuppression,
66108
- autoGainControl: !!autoGainControl
66109
- };
66104
+ const constraints = {};
66105
+ if (echoCancellation !== void 0) constraints.echoCancellation = echoCancellation;
66106
+ if (noiseSuppression !== void 0) constraints.noiseSuppression = noiseSuppression;
66107
+ if (autoGainControl !== void 0) constraints.autoGainControl = autoGainControl;
66108
+ if (Object.keys(constraints).length === 0) return true;
66109
+ return constraints;
66110
66110
  }
66111
66111
  var SipClient = class extends EventEmitter {};
66112
66112
  //#endregion
@@ -66682,7 +66682,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
66682
66682
  _defineProperty(SipPhone$1, "sipVersion", version$1);
66683
66683
  //#endregion
66684
66684
  //#region src/version.ts
66685
- const version = "26.4.17";
66685
+ const version = "26.4.20";
66686
66686
  //#endregion
66687
66687
  //#region src/socket/errors.ts
66688
66688
  /**
@@ -69909,7 +69909,7 @@ var Conversation = class {
69909
69909
  * @returns {ChatChannel} - Оновлений об'єкт ChatChannel.
69910
69910
  */
69911
69911
  function wrapChannelMember(m) {
69912
- m.messenger = m.type;
69912
+ if (m) m.messenger = m.type;
69913
69913
  return m;
69914
69914
  }
69915
69915
  //#endregion