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.
package/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.3.129';
207
+ var webSdkVersion = '2.3.130';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -1426,21 +1426,6 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1426
1426
  boundingBox: attempt.boundingBox
1427
1427
  });
1428
1428
  }
1429
- if (attempt.bestBarcodeScore !== undefined && attempt.bestBarcodeScore !== null) {
1430
- setBarcodeCaptureAttempts(function (attempts) {
1431
- return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
1432
- });
1433
- setDocumentFileMetadata('idBarcodeImage', {
1434
- documentType: 'idBarcodeImage',
1435
- sourceDocumentType: documentType,
1436
- documentKey: 'idBarcodeImage',
1437
- bestBarcodeScore: attempt.bestBarcodeScore,
1438
- captureMode: attempt.captureMode,
1439
- autoCapture: attempt.autoCapture,
1440
- captureTime: attempt.captureTime,
1441
- operationTime: attempt.operationTime
1442
- });
1443
- }
1444
1429
  }, [setDocumentFileMetadata]);
1445
1430
  var logIdBackCaptureAttempt = useCallback(function (attempt, documentType) {
1446
1431
  setIdBackCaptureAttempts(function (attempts) {
@@ -1461,6 +1446,21 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1461
1446
  boundingBox: attempt.boundingBox
1462
1447
  });
1463
1448
  }
1449
+ if (attempt.bestBarcodeScore !== undefined && attempt.bestBarcodeScore !== null) {
1450
+ setBarcodeCaptureAttempts(function (attempts) {
1451
+ return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
1452
+ });
1453
+ setDocumentFileMetadata('idBarcodeImage', {
1454
+ documentType: 'idBarcodeImage',
1455
+ sourceDocumentType: documentType,
1456
+ documentKey: 'idBarcodeImage',
1457
+ bestBarcodeScore: attempt.bestBarcodeScore,
1458
+ captureMode: attempt.captureMode,
1459
+ autoCapture: attempt.autoCapture,
1460
+ captureTime: attempt.captureTime,
1461
+ operationTime: attempt.operationTime
1462
+ });
1463
+ }
1464
1464
  }, [setDocumentFileMetadata]);
1465
1465
  var logSelfieCaptureAttempt = useCallback(function (attempt) {
1466
1466
  setSelfieCaptureAttempts(function (attempts) {