@ekyc_qoobiss/qbs-ect-cmp 3.3.6 → 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.
- package/dist/cjs/agreement-check_18.cjs.entry.js +8 -8
- package/dist/collection/components/identification-component/identification-component.js +5 -5
- package/dist/collection/helpers/DeviceDetection.js +2 -2
- package/dist/esm/agreement-check_18.entry.js +8 -8
- package/dist/qbs-ect-cmp/{p-39a47904.entry.js → p-dc767505.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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";
|
|
@@ -6641,17 +6641,17 @@ const IdentificationComponent = class {
|
|
|
6641
6641
|
state.initialised = true;
|
|
6642
6642
|
return;
|
|
6643
6643
|
}
|
|
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.');
|
|
6648
|
+
}
|
|
6644
6649
|
try {
|
|
6645
6650
|
if (state.debug)
|
|
6646
6651
|
this.baseComponent.apiCall.AddLog({ phase: 'debug mode' }, this.logInit);
|
|
6647
6652
|
}
|
|
6648
6653
|
catch (_a) { }
|
|
6649
6654
|
try {
|
|
6650
|
-
if (state.device.browser == Browser.Mi) {
|
|
6651
|
-
//this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
|
|
6652
|
-
//return;
|
|
6653
|
-
alert('Mi Browser detectat.');
|
|
6654
|
-
}
|
|
6655
6655
|
if (!state.device.isMobile && state.redirectId == '') {
|
|
6656
6656
|
state.redirectId = v4();
|
|
6657
6657
|
this.redirect_id = state.redirectId;
|
|
@@ -204,17 +204,17 @@ export class IdentificationComponent {
|
|
|
204
204
|
store.initialised = true;
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
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.');
|
|
211
|
+
}
|
|
207
212
|
try {
|
|
208
213
|
if (store.debug)
|
|
209
214
|
this.baseComponent.apiCall.AddLog({ phase: 'debug mode' }, this.logInit);
|
|
210
215
|
}
|
|
211
216
|
catch (_a) { }
|
|
212
217
|
try {
|
|
213
|
-
if (store.device.browser == Browser.Mi) {
|
|
214
|
-
//this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
|
|
215
|
-
//return;
|
|
216
|
-
alert('Mi Browser detectat.');
|
|
217
|
-
}
|
|
218
218
|
if (!store.device.isMobile && store.redirectId == '') {
|
|
219
219
|
store.redirectId = uuid.v4();
|
|
220
220
|
this.redirect_id = store.redirectId;
|
|
@@ -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.
|
|
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";
|
|
@@ -6637,17 +6637,17 @@ const IdentificationComponent = class {
|
|
|
6637
6637
|
state.initialised = true;
|
|
6638
6638
|
return;
|
|
6639
6639
|
}
|
|
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.');
|
|
6644
|
+
}
|
|
6640
6645
|
try {
|
|
6641
6646
|
if (state.debug)
|
|
6642
6647
|
this.baseComponent.apiCall.AddLog({ phase: 'debug mode' }, this.logInit);
|
|
6643
6648
|
}
|
|
6644
6649
|
catch (_a) { }
|
|
6645
6650
|
try {
|
|
6646
|
-
if (state.device.browser == Browser.Mi) {
|
|
6647
|
-
//this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
|
|
6648
|
-
//return;
|
|
6649
|
-
alert('Mi Browser detectat.');
|
|
6650
|
-
}
|
|
6651
6651
|
if (!state.device.isMobile && state.redirectId == '') {
|
|
6652
6652
|
state.redirectId = v4();
|
|
6653
6653
|
this.redirect_id = state.redirectId;
|