webitel-sdk 23.9.2 → 23.9.3
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/bundles/index.esm.js +5 -2
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +7 -6
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/socket/call.js +5 -2
- package/esm2015/socket/call.js.map +1 -1
- package/esm5/socket/call.js +7 -6
- package/esm5/socket/call.js.map +1 -1
- package/package.json +1 -1
- package/types/socket/call.d.ts.map +1 -1
package/bundles/index.umd.js
CHANGED
|
@@ -48348,19 +48348,20 @@
|
|
|
48348
48348
|
if (this.autoAnswered) {
|
|
48349
48349
|
return;
|
|
48350
48350
|
}
|
|
48351
|
-
this.
|
|
48351
|
+
if (this._autoAnswerTimerId) {
|
|
48352
|
+
clearTimeout(this._autoAnswerTimerId);
|
|
48353
|
+
}
|
|
48352
48354
|
this._autoAnswerTimerId = setTimeout(function () { return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
48353
|
-
|
|
48354
|
-
|
|
48355
|
-
switch (_b.label) {
|
|
48355
|
+
return tslib.__generator(this, function (_a) {
|
|
48356
|
+
switch (_a.label) {
|
|
48356
48357
|
case 0:
|
|
48357
48358
|
if (this.autoAnswered) {
|
|
48358
48359
|
return [2 /*return*/];
|
|
48359
48360
|
}
|
|
48360
|
-
|
|
48361
|
+
this.autoAnswered = true;
|
|
48361
48362
|
return [4 /*yield*/, this.answer(req)];
|
|
48362
48363
|
case 1:
|
|
48363
|
-
_a.
|
|
48364
|
+
_a.sent();
|
|
48364
48365
|
return [2 /*return*/];
|
|
48365
48366
|
}
|
|
48366
48367
|
});
|