idmission-web-sdk 2.3.129 → 2.3.130

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.3.129';
214
+ var webSdkVersion = '2.3.130';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -2407,21 +2407,6 @@
2407
2407
  boundingBox: attempt.boundingBox
2408
2408
  });
2409
2409
  }
2410
- if (attempt.bestBarcodeScore !== undefined && attempt.bestBarcodeScore !== null) {
2411
- setBarcodeCaptureAttempts(function (attempts) {
2412
- return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
2413
- });
2414
- setDocumentFileMetadata('idBarcodeImage', {
2415
- documentType: 'idBarcodeImage',
2416
- sourceDocumentType: documentType,
2417
- documentKey: 'idBarcodeImage',
2418
- bestBarcodeScore: attempt.bestBarcodeScore,
2419
- captureMode: attempt.captureMode,
2420
- autoCapture: attempt.autoCapture,
2421
- captureTime: attempt.captureTime,
2422
- operationTime: attempt.operationTime
2423
- });
2424
- }
2425
2410
  }, [setDocumentFileMetadata]);
2426
2411
  var logIdBackCaptureAttempt = React.useCallback(function (attempt, documentType) {
2427
2412
  setIdBackCaptureAttempts(function (attempts) {
@@ -2442,6 +2427,21 @@
2442
2427
  boundingBox: attempt.boundingBox
2443
2428
  });
2444
2429
  }
2430
+ if (attempt.bestBarcodeScore !== undefined && attempt.bestBarcodeScore !== null) {
2431
+ setBarcodeCaptureAttempts(function (attempts) {
2432
+ return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
2433
+ });
2434
+ setDocumentFileMetadata('idBarcodeImage', {
2435
+ documentType: 'idBarcodeImage',
2436
+ sourceDocumentType: documentType,
2437
+ documentKey: 'idBarcodeImage',
2438
+ bestBarcodeScore: attempt.bestBarcodeScore,
2439
+ captureMode: attempt.captureMode,
2440
+ autoCapture: attempt.autoCapture,
2441
+ captureTime: attempt.captureTime,
2442
+ operationTime: attempt.operationTime
2443
+ });
2444
+ }
2445
2445
  }, [setDocumentFileMetadata]);
2446
2446
  var logSelfieCaptureAttempt = React.useCallback(function (attempt) {
2447
2447
  setSelfieCaptureAttempts(function (attempts) {