webitel-sdk 26.4.40 → 26.4.42

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 CHANGED
@@ -66734,7 +66734,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
66734
66734
  _defineProperty(SipPhone$1, "sipVersion", version$1);
66735
66735
  //#endregion
66736
66736
  //#region src/version.ts
66737
- const version = "26.4.40";
66737
+ const version = "26.4.42";
66738
66738
  //#endregion
66739
66739
  //#region src/socket/errors.ts
66740
66740
  /**
@@ -69072,7 +69072,10 @@ var Call = class {
69072
69072
  }
69073
69073
  maskNameEqualToHiddenNumber(name) {
69074
69074
  var _this$memberCommunica;
69075
- if (this.hideNumber && name && name === ((_this$memberCommunica = this.memberCommunication) === null || _this$memberCommunica === void 0 ? void 0 : _this$memberCommunica.destination)) return this.displayNumber;
69075
+ if (!this.hideNumber || !name || !/^[\d\s()+\-.]+$/.test(name)) return name;
69076
+ const nameDigits = name.replace(/\D/g, "");
69077
+ const destinationDigits = (((_this$memberCommunica = this.memberCommunication) === null || _this$memberCommunica === void 0 ? void 0 : _this$memberCommunica.destination) || "").replace(/\D/g, "");
69078
+ if (nameDigits && nameDigits === destinationDigits) return this.displayNumber;
69076
69079
  return name;
69077
69080
  }
69078
69081
  /**