@ekyc_qoobiss/qbs-ect-cmp 3.3.7 → 3.3.8

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.3.8";
6379
6379
  const description = "Person Identification Component";
6380
6380
  const main = "./dist/index.cjs.js";
6381
6381
  const module$1 = "./dist/index.js";
@@ -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.3.8";
6375
6375
  const description = "Person Identification Component";
6376
6376
  const main = "./dist/index.cjs.js";
6377
6377
  const module = "./dist/index.js";