scandoc-ai-components 0.0.89 → 0.0.90
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 +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11247,10 +11247,14 @@ 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
|
+
console.log(response);
|
|
11250
11251
|
const isDocUnsupported = response?.InfoCode === "1006";
|
|
11251
11252
|
const transactionId = response?.TransactionID;
|
|
11252
11253
|
if (isDocUnsupported && transactionId && this.candidateImages.length > 0) {
|
|
11254
|
+
console.log('entered');
|
|
11253
11255
|
const frontImage = this.candidateImages[this.candidateImages.length - 1].fullImg;
|
|
11256
|
+
console.log(frontImage);
|
|
11257
|
+
console.log(transactionId);
|
|
11254
11258
|
await (0,_requests_error_logging__WEBPACK_IMPORTED_MODULE_4__["default"])(frontImage, "", transactionId);
|
|
11255
11259
|
this.showMessage("Unsupported document. Logged issue.");
|
|
11256
11260
|
}
|