@ekyc_qoobiss/qbs-ect-cmp 3.3.8 → 3.4.1
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 +28 -30
- package/dist/collection/components/identification-component/identification-component.js +2 -3
- package/dist/collection/helpers/ApiCall.js +25 -26
- package/dist/esm/agreement-check_18.entry.js +28 -30
- package/dist/qbs-ect-cmp/{p-dc767505.entry.js → p-9aa0f29b.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/ApiCall.d.ts +0 -1
- package/package.json +1 -1
|
@@ -440,30 +440,29 @@ class ApiCall {
|
|
|
440
440
|
});
|
|
441
441
|
this.urls = new ApiUrls();
|
|
442
442
|
}
|
|
443
|
-
async http2(method, url, data) {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}
|
|
443
|
+
// private async http2<T>(method: string, url: string, data: string): Promise<T> {
|
|
444
|
+
// return new Promise((resolve, reject) => {
|
|
445
|
+
// var xhr = new XMLHttpRequest();
|
|
446
|
+
// xhr.open(method, url);
|
|
447
|
+
// xhr.onload = function () {
|
|
448
|
+
// if (xhr.status >= 200 && xhr.status < 300) {
|
|
449
|
+
// resolve(xhr.response);
|
|
450
|
+
// } else {
|
|
451
|
+
// reject({
|
|
452
|
+
// status: xhr.status,
|
|
453
|
+
// statusText: xhr.statusText,
|
|
454
|
+
// });
|
|
455
|
+
// }
|
|
456
|
+
// };
|
|
457
|
+
// xhr.onerror = function () {
|
|
458
|
+
// reject({
|
|
459
|
+
// status: xhr.status,
|
|
460
|
+
// statusText: xhr.statusText,
|
|
461
|
+
// });
|
|
462
|
+
// };
|
|
463
|
+
// xhr.send(data);
|
|
464
|
+
// });
|
|
465
|
+
// }
|
|
467
466
|
async http(request) {
|
|
468
467
|
const response = await fetch(request);
|
|
469
468
|
if (!response.ok) {
|
|
@@ -499,7 +498,7 @@ class ApiCall {
|
|
|
499
498
|
}
|
|
500
499
|
catch (ex2) {
|
|
501
500
|
this.AddLog('Error in post ', ex2);
|
|
502
|
-
return await this.
|
|
501
|
+
return await this.http(request);
|
|
503
502
|
}
|
|
504
503
|
}
|
|
505
504
|
}
|
|
@@ -524,7 +523,7 @@ class ApiCall {
|
|
|
524
523
|
}
|
|
525
524
|
catch (ex2) {
|
|
526
525
|
this.AddLog('Error in get ', ex2);
|
|
527
|
-
return await this.
|
|
526
|
+
return await this.http(request);
|
|
528
527
|
}
|
|
529
528
|
}
|
|
530
529
|
}
|
|
@@ -6375,7 +6374,7 @@ function v4(options, buf, offset) {
|
|
|
6375
6374
|
}
|
|
6376
6375
|
|
|
6377
6376
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6378
|
-
const version$1 = "3.
|
|
6377
|
+
const version$1 = "3.4.1";
|
|
6379
6378
|
const description = "Person Identification Component";
|
|
6380
6379
|
const main = "./dist/index.cjs.js";
|
|
6381
6380
|
const module$1 = "./dist/index.js";
|
|
@@ -6642,9 +6641,8 @@ const IdentificationComponent = class {
|
|
|
6642
6641
|
return;
|
|
6643
6642
|
}
|
|
6644
6643
|
if (state.device.browser == Browser.Mi) {
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
alert('Mi Browser detectat.');
|
|
6644
|
+
this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
|
|
6645
|
+
return;
|
|
6648
6646
|
}
|
|
6649
6647
|
try {
|
|
6650
6648
|
if (state.debug)
|
|
@@ -205,9 +205,8 @@ export class IdentificationComponent {
|
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
207
|
if (store.device.browser == Browser.Mi) {
|
|
208
|
-
|
|
209
|
-
|
|
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)
|
|
@@ -14,30 +14,29 @@ export class ApiCall {
|
|
|
14
14
|
});
|
|
15
15
|
this.urls = new ApiUrls();
|
|
16
16
|
}
|
|
17
|
-
async http2(method, url, data) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
17
|
+
// private async http2<T>(method: string, url: string, data: string): Promise<T> {
|
|
18
|
+
// return new Promise((resolve, reject) => {
|
|
19
|
+
// var xhr = new XMLHttpRequest();
|
|
20
|
+
// xhr.open(method, url);
|
|
21
|
+
// xhr.onload = function () {
|
|
22
|
+
// if (xhr.status >= 200 && xhr.status < 300) {
|
|
23
|
+
// resolve(xhr.response);
|
|
24
|
+
// } else {
|
|
25
|
+
// reject({
|
|
26
|
+
// status: xhr.status,
|
|
27
|
+
// statusText: xhr.statusText,
|
|
28
|
+
// });
|
|
29
|
+
// }
|
|
30
|
+
// };
|
|
31
|
+
// xhr.onerror = function () {
|
|
32
|
+
// reject({
|
|
33
|
+
// status: xhr.status,
|
|
34
|
+
// statusText: xhr.statusText,
|
|
35
|
+
// });
|
|
36
|
+
// };
|
|
37
|
+
// xhr.send(data);
|
|
38
|
+
// });
|
|
39
|
+
// }
|
|
41
40
|
async http(request) {
|
|
42
41
|
const response = await fetch(request);
|
|
43
42
|
if (!response.ok) {
|
|
@@ -73,7 +72,7 @@ export class ApiCall {
|
|
|
73
72
|
}
|
|
74
73
|
catch (ex2) {
|
|
75
74
|
this.AddLog('Error in post ', ex2);
|
|
76
|
-
return await this.
|
|
75
|
+
return await this.http(request);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
}
|
|
@@ -98,7 +97,7 @@ export class ApiCall {
|
|
|
98
97
|
}
|
|
99
98
|
catch (ex2) {
|
|
100
99
|
this.AddLog('Error in get ', ex2);
|
|
101
|
-
return await this.
|
|
100
|
+
return await this.http(request);
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
}
|
|
@@ -436,30 +436,29 @@ class ApiCall {
|
|
|
436
436
|
});
|
|
437
437
|
this.urls = new ApiUrls();
|
|
438
438
|
}
|
|
439
|
-
async http2(method, url, data) {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}
|
|
439
|
+
// private async http2<T>(method: string, url: string, data: string): Promise<T> {
|
|
440
|
+
// return new Promise((resolve, reject) => {
|
|
441
|
+
// var xhr = new XMLHttpRequest();
|
|
442
|
+
// xhr.open(method, url);
|
|
443
|
+
// xhr.onload = function () {
|
|
444
|
+
// if (xhr.status >= 200 && xhr.status < 300) {
|
|
445
|
+
// resolve(xhr.response);
|
|
446
|
+
// } else {
|
|
447
|
+
// reject({
|
|
448
|
+
// status: xhr.status,
|
|
449
|
+
// statusText: xhr.statusText,
|
|
450
|
+
// });
|
|
451
|
+
// }
|
|
452
|
+
// };
|
|
453
|
+
// xhr.onerror = function () {
|
|
454
|
+
// reject({
|
|
455
|
+
// status: xhr.status,
|
|
456
|
+
// statusText: xhr.statusText,
|
|
457
|
+
// });
|
|
458
|
+
// };
|
|
459
|
+
// xhr.send(data);
|
|
460
|
+
// });
|
|
461
|
+
// }
|
|
463
462
|
async http(request) {
|
|
464
463
|
const response = await fetch(request);
|
|
465
464
|
if (!response.ok) {
|
|
@@ -495,7 +494,7 @@ class ApiCall {
|
|
|
495
494
|
}
|
|
496
495
|
catch (ex2) {
|
|
497
496
|
this.AddLog('Error in post ', ex2);
|
|
498
|
-
return await this.
|
|
497
|
+
return await this.http(request);
|
|
499
498
|
}
|
|
500
499
|
}
|
|
501
500
|
}
|
|
@@ -520,7 +519,7 @@ class ApiCall {
|
|
|
520
519
|
}
|
|
521
520
|
catch (ex2) {
|
|
522
521
|
this.AddLog('Error in get ', ex2);
|
|
523
|
-
return await this.
|
|
522
|
+
return await this.http(request);
|
|
524
523
|
}
|
|
525
524
|
}
|
|
526
525
|
}
|
|
@@ -6371,7 +6370,7 @@ function v4(options, buf, offset) {
|
|
|
6371
6370
|
}
|
|
6372
6371
|
|
|
6373
6372
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6374
|
-
const version$1 = "3.
|
|
6373
|
+
const version$1 = "3.4.1";
|
|
6375
6374
|
const description = "Person Identification Component";
|
|
6376
6375
|
const main = "./dist/index.cjs.js";
|
|
6377
6376
|
const module = "./dist/index.js";
|
|
@@ -6638,9 +6637,8 @@ const IdentificationComponent = class {
|
|
|
6638
6637
|
return;
|
|
6639
6638
|
}
|
|
6640
6639
|
if (state.device.browser == Browser.Mi) {
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
alert('Mi Browser detectat.');
|
|
6640
|
+
this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
|
|
6641
|
+
return;
|
|
6644
6642
|
}
|
|
6645
6643
|
try {
|
|
6646
6644
|
if (state.debug)
|