@ekyc_qoobiss/qbs-ect-cmp 1.10.12 → 1.10.13
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_17.cjs.entry.js +5 -5
- package/dist/collection/components/identification-component/identification-component.js +2 -2
- package/dist/collection/helpers/ApiCall.js +2 -2
- package/dist/collection/helpers/Stream.js +1 -1
- package/dist/esm/agreement-check_17.entry.js +5 -5
- package/dist/qbs-ect-cmp/{p-f555ed2b.entry.js → p-b96efc10.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/identification-component/identification-component.d.ts +1 -1
- package/dist/types/helpers/ApiCall.d.ts +1 -1
- package/package.json +1 -1
|
@@ -450,10 +450,10 @@ class ApiCall {
|
|
|
450
450
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
451
451
|
return resp.sent;
|
|
452
452
|
}
|
|
453
|
-
AddLog(error) {
|
|
453
|
+
async AddLog(error) {
|
|
454
454
|
try {
|
|
455
455
|
let data = { requestId: state.requestId, action: state.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
456
|
-
this.post(this.urls.AddLog, JSON.stringify(data));
|
|
456
|
+
await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
457
457
|
}
|
|
458
458
|
catch (_a) { }
|
|
459
459
|
}
|
|
@@ -4877,7 +4877,7 @@ class Stream {
|
|
|
4877
4877
|
this.mediaRecorder.ondataavailable = event => {
|
|
4878
4878
|
this.recordedChunks.push(event.data);
|
|
4879
4879
|
};
|
|
4880
|
-
this.mediaRecorder.onstop =
|
|
4880
|
+
this.mediaRecorder.onstop = (_e) => {
|
|
4881
4881
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
4882
4882
|
this.recordedChunks = [];
|
|
4883
4883
|
};
|
|
@@ -5909,7 +5909,7 @@ const IdentificationComponent = class {
|
|
|
5909
5909
|
this.apiErrorEmitter(e);
|
|
5910
5910
|
}
|
|
5911
5911
|
}
|
|
5912
|
-
apiErrorEmitter(data) {
|
|
5912
|
+
async apiErrorEmitter(data) {
|
|
5913
5913
|
if (data.message) {
|
|
5914
5914
|
this.errorMessage = data.message;
|
|
5915
5915
|
}
|
|
@@ -5922,7 +5922,7 @@ const IdentificationComponent = class {
|
|
|
5922
5922
|
else {
|
|
5923
5923
|
this.errorMessage = data;
|
|
5924
5924
|
}
|
|
5925
|
-
this.apiCall.AddLog(data);
|
|
5925
|
+
await this.apiCall.AddLog(data);
|
|
5926
5926
|
Events.flowError(data);
|
|
5927
5927
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5928
5928
|
}
|
|
@@ -56,7 +56,7 @@ export class IdentificationComponent {
|
|
|
56
56
|
this.apiErrorEmitter(e);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
apiErrorEmitter(data) {
|
|
59
|
+
async apiErrorEmitter(data) {
|
|
60
60
|
if (data.message) {
|
|
61
61
|
this.errorMessage = data.message;
|
|
62
62
|
}
|
|
@@ -69,7 +69,7 @@ export class IdentificationComponent {
|
|
|
69
69
|
else {
|
|
70
70
|
this.errorMessage = data;
|
|
71
71
|
}
|
|
72
|
-
this.apiCall.AddLog(data);
|
|
72
|
+
await this.apiCall.AddLog(data);
|
|
73
73
|
Events.flowError(data);
|
|
74
74
|
store.flowStatus = FlowStatus.ERROREND;
|
|
75
75
|
}
|
|
@@ -94,10 +94,10 @@ export class ApiCall {
|
|
|
94
94
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
95
95
|
return resp.sent;
|
|
96
96
|
}
|
|
97
|
-
AddLog(error) {
|
|
97
|
+
async AddLog(error) {
|
|
98
98
|
try {
|
|
99
99
|
let data = { requestId: store.requestId, action: store.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
100
|
-
this.post(this.urls.AddLog, JSON.stringify(data));
|
|
100
|
+
await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
101
101
|
}
|
|
102
102
|
catch (_a) { }
|
|
103
103
|
}
|
|
@@ -130,7 +130,7 @@ export class Stream {
|
|
|
130
130
|
this.mediaRecorder.ondataavailable = event => {
|
|
131
131
|
this.recordedChunks.push(event.data);
|
|
132
132
|
};
|
|
133
|
-
this.mediaRecorder.onstop =
|
|
133
|
+
this.mediaRecorder.onstop = (_e) => {
|
|
134
134
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
135
135
|
this.recordedChunks = [];
|
|
136
136
|
};
|
|
@@ -446,10 +446,10 @@ class ApiCall {
|
|
|
446
446
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
447
447
|
return resp.sent;
|
|
448
448
|
}
|
|
449
|
-
AddLog(error) {
|
|
449
|
+
async AddLog(error) {
|
|
450
450
|
try {
|
|
451
451
|
let data = { requestId: state.requestId, action: state.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
452
|
-
this.post(this.urls.AddLog, JSON.stringify(data));
|
|
452
|
+
await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
453
453
|
}
|
|
454
454
|
catch (_a) { }
|
|
455
455
|
}
|
|
@@ -4873,7 +4873,7 @@ class Stream {
|
|
|
4873
4873
|
this.mediaRecorder.ondataavailable = event => {
|
|
4874
4874
|
this.recordedChunks.push(event.data);
|
|
4875
4875
|
};
|
|
4876
|
-
this.mediaRecorder.onstop =
|
|
4876
|
+
this.mediaRecorder.onstop = (_e) => {
|
|
4877
4877
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
4878
4878
|
this.recordedChunks = [];
|
|
4879
4879
|
};
|
|
@@ -5905,7 +5905,7 @@ const IdentificationComponent = class {
|
|
|
5905
5905
|
this.apiErrorEmitter(e);
|
|
5906
5906
|
}
|
|
5907
5907
|
}
|
|
5908
|
-
apiErrorEmitter(data) {
|
|
5908
|
+
async apiErrorEmitter(data) {
|
|
5909
5909
|
if (data.message) {
|
|
5910
5910
|
this.errorMessage = data.message;
|
|
5911
5911
|
}
|
|
@@ -5918,7 +5918,7 @@ const IdentificationComponent = class {
|
|
|
5918
5918
|
else {
|
|
5919
5919
|
this.errorMessage = data;
|
|
5920
5920
|
}
|
|
5921
|
-
this.apiCall.AddLog(data);
|
|
5921
|
+
await this.apiCall.AddLog(data);
|
|
5922
5922
|
Events.flowError(data);
|
|
5923
5923
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5924
5924
|
}
|