scandoc-ai-components 0.0.90 → 0.0.91
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/index.js +7 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11247,17 +11247,13 @@ class ExtractorVideo {
|
|
|
11247
11247
|
if (images.length < ExtractorVideo.VALIDATION_BATCH_SIZE) return;
|
|
11248
11248
|
const [isValidationOk, response] = await (0,_requests_validation__WEBPACK_IMPORTED_MODULE_3__["default"])(images.map(e => e.validationImg), this.pastBlurValues, {});
|
|
11249
11249
|
if (!isValidationOk) {
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
console.log(transactionId);
|
|
11258
|
-
await (0,_requests_error_logging__WEBPACK_IMPORTED_MODULE_4__["default"])(frontImage, "", transactionId);
|
|
11259
|
-
this.showMessage("Unsupported document. Logged issue.");
|
|
11260
|
-
}
|
|
11250
|
+
this.candidateImages = [];
|
|
11251
|
+
return;
|
|
11252
|
+
}
|
|
11253
|
+
if (response?.InfoCode === "1006" && response?.TransactionID) {
|
|
11254
|
+
const frontImage = this.candidateImages[this.candidateImages.length - 1].fullImg;
|
|
11255
|
+
await (0,_requests_error_logging__WEBPACK_IMPORTED_MODULE_4__["default"])(frontImage, "", response.TransactionID);
|
|
11256
|
+
this.showMessage("Unsupported document. Logged issue.", true);
|
|
11261
11257
|
this.candidateImages = [];
|
|
11262
11258
|
return;
|
|
11263
11259
|
}
|