@ekyc_qoobiss/qbs-ect-cmp 3.3.2 → 3.3.4
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 +12 -4
- package/dist/collection/helpers/ApiCall.js +11 -3
- package/dist/esm/agreement-check_18.entry.js +12 -4
- package/dist/qbs-ect-cmp/{p-5c7d0547.entry.js → p-4599a917.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -476,7 +476,7 @@ class ApiCall {
|
|
|
476
476
|
throw new Error('No json found in response ' + ex);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
async post(url, data) {
|
|
479
|
+
async post(url, data, withRetry = true) {
|
|
480
480
|
var request = new Request(state.apiBaseUrl + url, {
|
|
481
481
|
method: 'POST',
|
|
482
482
|
body: data,
|
|
@@ -489,16 +489,20 @@ class ApiCall {
|
|
|
489
489
|
return await this.http(request);
|
|
490
490
|
}
|
|
491
491
|
catch (ex) {
|
|
492
|
+
if (!withRetry) {
|
|
493
|
+
throw ex;
|
|
494
|
+
}
|
|
492
495
|
this.AddLog('Error in post ', ex);
|
|
493
496
|
try {
|
|
494
497
|
return await this.http(request);
|
|
495
498
|
}
|
|
496
499
|
catch (ex2) {
|
|
500
|
+
this.AddLog('Error in post ', ex2);
|
|
497
501
|
return await this.http2('POST', state.apiBaseUrl + url, data);
|
|
498
502
|
}
|
|
499
503
|
}
|
|
500
504
|
}
|
|
501
|
-
async get(url) {
|
|
505
|
+
async get(url, withRetry = true) {
|
|
502
506
|
var request = new Request(state.apiBaseUrl + url, {
|
|
503
507
|
method: 'GET',
|
|
504
508
|
headers: {
|
|
@@ -510,11 +514,15 @@ class ApiCall {
|
|
|
510
514
|
return await this.http(request);
|
|
511
515
|
}
|
|
512
516
|
catch (ex) {
|
|
517
|
+
if (!withRetry) {
|
|
518
|
+
throw ex;
|
|
519
|
+
}
|
|
513
520
|
this.AddLog('Error in get ', ex);
|
|
514
521
|
try {
|
|
515
522
|
return await this.http(request);
|
|
516
523
|
}
|
|
517
524
|
catch (ex2) {
|
|
525
|
+
this.AddLog('Error in get ', ex2);
|
|
518
526
|
return await this.http2('GET', state.apiBaseUrl + url, '');
|
|
519
527
|
}
|
|
520
528
|
}
|
|
@@ -592,7 +600,7 @@ class ApiCall {
|
|
|
592
600
|
action: FlowStatus[state.flowStatus],
|
|
593
601
|
message: JSON.stringify({ error, context }),
|
|
594
602
|
};
|
|
595
|
-
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
603
|
+
let result = await this.post(this.urls.AddLog, JSON.stringify(data), false);
|
|
596
604
|
return result.saved;
|
|
597
605
|
}
|
|
598
606
|
catch (_a) { }
|
|
@@ -6366,7 +6374,7 @@ function v4(options, buf, offset) {
|
|
|
6366
6374
|
}
|
|
6367
6375
|
|
|
6368
6376
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6369
|
-
const version$1 = "3.3.
|
|
6377
|
+
const version$1 = "3.3.4";
|
|
6370
6378
|
const description = "Person Identification Component";
|
|
6371
6379
|
const main = "./dist/index.cjs.js";
|
|
6372
6380
|
const module$1 = "./dist/index.js";
|
|
@@ -50,7 +50,7 @@ export class ApiCall {
|
|
|
50
50
|
throw new Error('No json found in response ' + ex);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
async post(url, data) {
|
|
53
|
+
async post(url, data, withRetry = true) {
|
|
54
54
|
var request = new Request(store.apiBaseUrl + url, {
|
|
55
55
|
method: 'POST',
|
|
56
56
|
body: data,
|
|
@@ -63,16 +63,20 @@ export class ApiCall {
|
|
|
63
63
|
return await this.http(request);
|
|
64
64
|
}
|
|
65
65
|
catch (ex) {
|
|
66
|
+
if (!withRetry) {
|
|
67
|
+
throw ex;
|
|
68
|
+
}
|
|
66
69
|
this.AddLog('Error in post ', ex);
|
|
67
70
|
try {
|
|
68
71
|
return await this.http(request);
|
|
69
72
|
}
|
|
70
73
|
catch (ex2) {
|
|
74
|
+
this.AddLog('Error in post ', ex2);
|
|
71
75
|
return await this.http2('POST', store.apiBaseUrl + url, data);
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
|
-
async get(url) {
|
|
79
|
+
async get(url, withRetry = true) {
|
|
76
80
|
var request = new Request(store.apiBaseUrl + url, {
|
|
77
81
|
method: 'GET',
|
|
78
82
|
headers: {
|
|
@@ -84,11 +88,15 @@ export class ApiCall {
|
|
|
84
88
|
return await this.http(request);
|
|
85
89
|
}
|
|
86
90
|
catch (ex) {
|
|
91
|
+
if (!withRetry) {
|
|
92
|
+
throw ex;
|
|
93
|
+
}
|
|
87
94
|
this.AddLog('Error in get ', ex);
|
|
88
95
|
try {
|
|
89
96
|
return await this.http(request);
|
|
90
97
|
}
|
|
91
98
|
catch (ex2) {
|
|
99
|
+
this.AddLog('Error in get ', ex2);
|
|
92
100
|
return await this.http2('GET', store.apiBaseUrl + url, '');
|
|
93
101
|
}
|
|
94
102
|
}
|
|
@@ -166,7 +174,7 @@ export class ApiCall {
|
|
|
166
174
|
action: FlowStatus[store.flowStatus],
|
|
167
175
|
message: JSON.stringify({ error, context }),
|
|
168
176
|
};
|
|
169
|
-
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
177
|
+
let result = await this.post(this.urls.AddLog, JSON.stringify(data), false);
|
|
170
178
|
return result.saved;
|
|
171
179
|
}
|
|
172
180
|
catch (_a) { }
|
|
@@ -472,7 +472,7 @@ class ApiCall {
|
|
|
472
472
|
throw new Error('No json found in response ' + ex);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
async post(url, data) {
|
|
475
|
+
async post(url, data, withRetry = true) {
|
|
476
476
|
var request = new Request(state.apiBaseUrl + url, {
|
|
477
477
|
method: 'POST',
|
|
478
478
|
body: data,
|
|
@@ -485,16 +485,20 @@ class ApiCall {
|
|
|
485
485
|
return await this.http(request);
|
|
486
486
|
}
|
|
487
487
|
catch (ex) {
|
|
488
|
+
if (!withRetry) {
|
|
489
|
+
throw ex;
|
|
490
|
+
}
|
|
488
491
|
this.AddLog('Error in post ', ex);
|
|
489
492
|
try {
|
|
490
493
|
return await this.http(request);
|
|
491
494
|
}
|
|
492
495
|
catch (ex2) {
|
|
496
|
+
this.AddLog('Error in post ', ex2);
|
|
493
497
|
return await this.http2('POST', state.apiBaseUrl + url, data);
|
|
494
498
|
}
|
|
495
499
|
}
|
|
496
500
|
}
|
|
497
|
-
async get(url) {
|
|
501
|
+
async get(url, withRetry = true) {
|
|
498
502
|
var request = new Request(state.apiBaseUrl + url, {
|
|
499
503
|
method: 'GET',
|
|
500
504
|
headers: {
|
|
@@ -506,11 +510,15 @@ class ApiCall {
|
|
|
506
510
|
return await this.http(request);
|
|
507
511
|
}
|
|
508
512
|
catch (ex) {
|
|
513
|
+
if (!withRetry) {
|
|
514
|
+
throw ex;
|
|
515
|
+
}
|
|
509
516
|
this.AddLog('Error in get ', ex);
|
|
510
517
|
try {
|
|
511
518
|
return await this.http(request);
|
|
512
519
|
}
|
|
513
520
|
catch (ex2) {
|
|
521
|
+
this.AddLog('Error in get ', ex2);
|
|
514
522
|
return await this.http2('GET', state.apiBaseUrl + url, '');
|
|
515
523
|
}
|
|
516
524
|
}
|
|
@@ -588,7 +596,7 @@ class ApiCall {
|
|
|
588
596
|
action: FlowStatus[state.flowStatus],
|
|
589
597
|
message: JSON.stringify({ error, context }),
|
|
590
598
|
};
|
|
591
|
-
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
599
|
+
let result = await this.post(this.urls.AddLog, JSON.stringify(data), false);
|
|
592
600
|
return result.saved;
|
|
593
601
|
}
|
|
594
602
|
catch (_a) { }
|
|
@@ -6362,7 +6370,7 @@ function v4(options, buf, offset) {
|
|
|
6362
6370
|
}
|
|
6363
6371
|
|
|
6364
6372
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6365
|
-
const version$1 = "3.3.
|
|
6373
|
+
const version$1 = "3.3.4";
|
|
6366
6374
|
const description = "Person Identification Component";
|
|
6367
6375
|
const main = "./dist/index.cjs.js";
|
|
6368
6376
|
const module = "./dist/index.js";
|