@ekyc_qoobiss/qbs-ect-cmp 3.3.7 → 3.4.0

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.
@@ -727,6 +727,8 @@ class DeviceDetection {
727
727
  return (_a = this.getMobileOS()) !== null && _a !== void 0 ? _a : this.getDesktopOS();
728
728
  }
729
729
  getBrowser() {
730
+ if (/XiaoMi/i.test(this.userAgent) || /MiuiBrowser/i.test(this.userAgent))
731
+ return Browser.Mi;
730
732
  var isChrome = /chrome/i.test(this.userAgent);
731
733
  if (isChrome)
732
734
  return Browser.Chrome;
@@ -734,8 +736,6 @@ class DeviceDetection {
734
736
  return Browser.Firefox;
735
737
  else if (!isChrome && /safari/i.test(navigator.userAgent))
736
738
  return Browser.Safari;
737
- else if (!isChrome && / Mi /i.test(navigator.userAgent))
738
- return Browser.Mi;
739
739
  else
740
740
  return Browser.Unknown;
741
741
  }
@@ -6375,7 +6375,7 @@ function v4(options, buf, offset) {
6375
6375
  }
6376
6376
 
6377
6377
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6378
- const version$1 = "3.3.7";
6378
+ const version$1 = "3.4.0";
6379
6379
  const description = "Person Identification Component";
6380
6380
  const main = "./dist/index.cjs.js";
6381
6381
  const module$1 = "./dist/index.js";
@@ -6642,9 +6642,8 @@ const IdentificationComponent = class {
6642
6642
  return;
6643
6643
  }
6644
6644
  if (state.device.browser == Browser.Mi) {
6645
- //this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
6646
- //return;
6647
- alert('Mi Browser detectat.');
6645
+ this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
6646
+ return;
6648
6647
  }
6649
6648
  try {
6650
6649
  if (state.debug)
@@ -205,9 +205,8 @@ export class IdentificationComponent {
205
205
  return;
206
206
  }
207
207
  if (store.device.browser == Browser.Mi) {
208
- //this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
209
- //return;
210
- alert('Mi Browser detectat.');
208
+ this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
209
+ return;
211
210
  }
212
211
  try {
213
212
  if (store.debug)
@@ -53,6 +53,8 @@ export class DeviceDetection {
53
53
  return (_a = this.getMobileOS()) !== null && _a !== void 0 ? _a : this.getDesktopOS();
54
54
  }
55
55
  getBrowser() {
56
+ if (/XiaoMi/i.test(this.userAgent) || /MiuiBrowser/i.test(this.userAgent))
57
+ return Browser.Mi;
56
58
  var isChrome = /chrome/i.test(this.userAgent);
57
59
  if (isChrome)
58
60
  return Browser.Chrome;
@@ -60,8 +62,6 @@ export class DeviceDetection {
60
62
  return Browser.Firefox;
61
63
  else if (!isChrome && /safari/i.test(navigator.userAgent))
62
64
  return Browser.Safari;
63
- else if (!isChrome && / Mi /i.test(navigator.userAgent))
64
- return Browser.Mi;
65
65
  else
66
66
  return Browser.Unknown;
67
67
  }
@@ -723,6 +723,8 @@ class DeviceDetection {
723
723
  return (_a = this.getMobileOS()) !== null && _a !== void 0 ? _a : this.getDesktopOS();
724
724
  }
725
725
  getBrowser() {
726
+ if (/XiaoMi/i.test(this.userAgent) || /MiuiBrowser/i.test(this.userAgent))
727
+ return Browser.Mi;
726
728
  var isChrome = /chrome/i.test(this.userAgent);
727
729
  if (isChrome)
728
730
  return Browser.Chrome;
@@ -730,8 +732,6 @@ class DeviceDetection {
730
732
  return Browser.Firefox;
731
733
  else if (!isChrome && /safari/i.test(navigator.userAgent))
732
734
  return Browser.Safari;
733
- else if (!isChrome && / Mi /i.test(navigator.userAgent))
734
- return Browser.Mi;
735
735
  else
736
736
  return Browser.Unknown;
737
737
  }
@@ -6371,7 +6371,7 @@ function v4(options, buf, offset) {
6371
6371
  }
6372
6372
 
6373
6373
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6374
- const version$1 = "3.3.7";
6374
+ const version$1 = "3.4.0";
6375
6375
  const description = "Person Identification Component";
6376
6376
  const main = "./dist/index.cjs.js";
6377
6377
  const module = "./dist/index.js";
@@ -6638,9 +6638,8 @@ const IdentificationComponent = class {
6638
6638
  return;
6639
6639
  }
6640
6640
  if (state.device.browser == Browser.Mi) {
6641
- //this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
6642
- //return;
6643
- alert('Mi Browser detectat.');
6641
+ this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
6642
+ return;
6644
6643
  }
6645
6644
  try {
6646
6645
  if (state.debug)