@ekyc_qoobiss/qbs-ect-cmp 3.6.76 → 3.6.77

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.
@@ -5240,7 +5240,7 @@ function v4(options, buf, offset) {
5240
5240
  }
5241
5241
 
5242
5242
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5243
- const version$1 = "3.6.76";
5243
+ const version$1 = "3.6.77";
5244
5244
  const description = "Person Identification Component";
5245
5245
  const main = "./dist/index.cjs.js";
5246
5246
  const module$1 = "./dist/index.js";
@@ -8804,23 +8804,12 @@ const ProcessId = class {
8804
8804
  if (TranslationUtils.state.debug)
8805
8805
  console.log('process-id | verificationFinished');
8806
8806
  this.verificationReceived = Date.now();
8807
- let initialStatus = TranslationUtils.state.flowStatus;
8808
- let statusChanged = false;
8809
- while (Date.now() - this.verificationReceived < 30000 && !statusChanged) {
8807
+ while (Date.now() - this.verificationReceived < 30000) {
8810
8808
  await delay(2000);
8811
8809
  if (this.showInvalid || this.showTimeout)
8812
8810
  return;
8813
- statusChanged = initialStatus != TranslationUtils.state.flowStatus;
8814
- }
8815
- if (!statusChanged) {
8816
- let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
8817
- if (currentStatus != TranslationUtils.state.flowStatus) {
8818
- TranslationUtils.state.flowStatus = currentStatus;
8819
- }
8820
- else {
8821
- this.triggerUploadFailedFlow();
8822
- }
8823
8811
  }
8812
+ this.triggerUploadFailedFlow();
8824
8813
  if (TranslationUtils.state.debug)
8825
8814
  console.log('process-id | verificationFinished | waitingFinished ');
8826
8815
  }
@@ -9199,23 +9188,12 @@ const UserLiveness = class {
9199
9188
  if (TranslationUtils.state.debug)
9200
9189
  console.log('user-liveness | verificationFinished');
9201
9190
  this.verificationReceived = Date.now();
9202
- let initialStatus = TranslationUtils.state.flowStatus;
9203
- let statusChanged = false;
9204
- while (Date.now() - this.verificationReceived < 30000 && !statusChanged) {
9191
+ while (Date.now() - this.verificationReceived < 30000) {
9205
9192
  await delay(2000);
9206
9193
  if (this.showError || this.showTimeout)
9207
9194
  return;
9208
- statusChanged = initialStatus != TranslationUtils.state.flowStatus;
9209
- }
9210
- if (!statusChanged) {
9211
- let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
9212
- if (currentStatus != TranslationUtils.state.flowStatus) {
9213
- TranslationUtils.state.flowStatus = currentStatus;
9214
- }
9215
- else {
9216
- this.triggerUploadFailedFlow();
9217
- }
9218
9195
  }
9196
+ this.triggerUploadFailedFlow();
9219
9197
  if (TranslationUtils.state.debug)
9220
9198
  console.log('user-liveness | verificationFinished | waitingFinished ');
9221
9199
  }
@@ -126,23 +126,12 @@ export class ProcessId {
126
126
  if (store.debug)
127
127
  console.log('process-id | verificationFinished');
128
128
  this.verificationReceived = Date.now();
129
- let initialStatus = store.flowStatus;
130
- let statusChanged = false;
131
- while (Date.now() - this.verificationReceived < 30000 && !statusChanged) {
129
+ while (Date.now() - this.verificationReceived < 30000) {
132
130
  await delay(2000);
133
131
  if (this.showInvalid || this.showTimeout)
134
132
  return;
135
- statusChanged = initialStatus != store.flowStatus;
136
- }
137
- if (!statusChanged) {
138
- let currentStatus = await ApiCall.instance.GetFlowState();
139
- if (currentStatus != store.flowStatus) {
140
- store.flowStatus = currentStatus;
141
- }
142
- else {
143
- this.triggerUploadFailedFlow();
144
- }
145
133
  }
134
+ this.triggerUploadFailedFlow();
146
135
  if (store.debug)
147
136
  console.log('process-id | verificationFinished | waitingFinished ');
148
137
  }
@@ -109,23 +109,12 @@ export class UserLiveness {
109
109
  if (store.debug)
110
110
  console.log('user-liveness | verificationFinished');
111
111
  this.verificationReceived = Date.now();
112
- let initialStatus = store.flowStatus;
113
- let statusChanged = false;
114
- while (Date.now() - this.verificationReceived < 30000 && !statusChanged) {
112
+ while (Date.now() - this.verificationReceived < 30000) {
115
113
  await delay(2000);
116
114
  if (this.showError || this.showTimeout)
117
115
  return;
118
- statusChanged = initialStatus != store.flowStatus;
119
- }
120
- if (!statusChanged) {
121
- let currentStatus = await ApiCall.instance.GetFlowState();
122
- if (currentStatus != store.flowStatus) {
123
- store.flowStatus = currentStatus;
124
- }
125
- else {
126
- this.triggerUploadFailedFlow();
127
- }
128
116
  }
117
+ this.triggerUploadFailedFlow();
129
118
  if (store.debug)
130
119
  console.log('user-liveness | verificationFinished | waitingFinished ');
131
120
  }
@@ -5236,7 +5236,7 @@ function v4(options, buf, offset) {
5236
5236
  }
5237
5237
 
5238
5238
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5239
- const version$1 = "3.6.76";
5239
+ const version$1 = "3.6.77";
5240
5240
  const description = "Person Identification Component";
5241
5241
  const main = "./dist/index.cjs.js";
5242
5242
  const module = "./dist/index.js";
@@ -8800,23 +8800,12 @@ const ProcessId = class {
8800
8800
  if (state.debug)
8801
8801
  console.log('process-id | verificationFinished');
8802
8802
  this.verificationReceived = Date.now();
8803
- let initialStatus = state.flowStatus;
8804
- let statusChanged = false;
8805
- while (Date.now() - this.verificationReceived < 30000 && !statusChanged) {
8803
+ while (Date.now() - this.verificationReceived < 30000) {
8806
8804
  await delay(2000);
8807
8805
  if (this.showInvalid || this.showTimeout)
8808
8806
  return;
8809
- statusChanged = initialStatus != state.flowStatus;
8810
- }
8811
- if (!statusChanged) {
8812
- let currentStatus = await ApiCall.instance.GetFlowState();
8813
- if (currentStatus != state.flowStatus) {
8814
- state.flowStatus = currentStatus;
8815
- }
8816
- else {
8817
- this.triggerUploadFailedFlow();
8818
- }
8819
8807
  }
8808
+ this.triggerUploadFailedFlow();
8820
8809
  if (state.debug)
8821
8810
  console.log('process-id | verificationFinished | waitingFinished ');
8822
8811
  }
@@ -9195,23 +9184,12 @@ const UserLiveness = class {
9195
9184
  if (state.debug)
9196
9185
  console.log('user-liveness | verificationFinished');
9197
9186
  this.verificationReceived = Date.now();
9198
- let initialStatus = state.flowStatus;
9199
- let statusChanged = false;
9200
- while (Date.now() - this.verificationReceived < 30000 && !statusChanged) {
9187
+ while (Date.now() - this.verificationReceived < 30000) {
9201
9188
  await delay(2000);
9202
9189
  if (this.showError || this.showTimeout)
9203
9190
  return;
9204
- statusChanged = initialStatus != state.flowStatus;
9205
- }
9206
- if (!statusChanged) {
9207
- let currentStatus = await ApiCall.instance.GetFlowState();
9208
- if (currentStatus != state.flowStatus) {
9209
- state.flowStatus = currentStatus;
9210
- }
9211
- else {
9212
- this.triggerUploadFailedFlow();
9213
- }
9214
9191
  }
9192
+ this.triggerUploadFailedFlow();
9215
9193
  if (state.debug)
9216
9194
  console.log('user-liveness | verificationFinished | waitingFinished ');
9217
9195
  }