webitel-sdk 26.4.19 → 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 +7 -7
- package/index.cjs.map +1 -1
- package/index.mjs +7 -7
- 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.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
|
-
|
|
66105
|
-
|
|
66106
|
-
|
|
66107
|
-
|
|
66108
|
-
|
|
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.
|
|
66685
|
+
const version = "26.4.20";
|
|
66686
66686
|
//#endregion
|
|
66687
66687
|
//#region src/socket/errors.ts
|
|
66688
66688
|
/**
|