idmission-web-sdk 2.1.71 → 2.1.72

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.
@@ -215,7 +215,7 @@
215
215
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
216
216
  };
217
217
 
218
- var webSdkVersion = '2.1.71';
218
+ var webSdkVersion = '2.1.72';
219
219
 
220
220
  function getPlatform() {
221
221
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -11401,7 +11401,7 @@
11401
11401
  idCardFront: 0.6,
11402
11402
  idCardBack: 0.6,
11403
11403
  passport: 0.4,
11404
- stability: 0.7
11404
+ stability: 0.9
11405
11405
  };
11406
11406
  var documentTypeDisplayNames = {
11407
11407
  idCardFront: 'ID card front',
@@ -11635,7 +11635,7 @@
11635
11635
  documentTooClose = docWidth > 0.85 || docHeight > 0.85;
11636
11636
  if (detectionThresholdMet) {
11637
11637
  var threshold_1 = (_m = thresholds.stability) !== null && _m !== void 0 ? _m : defaultDocumentDetectionThresholds.stability;
11638
- var framesNeeded = Math.min(1000 / lastDetectionTime, 12);
11638
+ var framesNeeded = Math.ceil(Math.min(1000 / lastDetectionTime, 12));
11639
11639
  lastNBoxes = __spreadArray([bestDocument.box], lastNBoxes, true).slice(0, framesNeeded);
11640
11640
  documentIsStable = lastNBoxes.length >= framesNeeded && !createPairs(lastNBoxes).some(function (_a) {
11641
11641
  var a = _a[0],