scandoc-ai-components 0.0.89 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11247,13 +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
- const isDocUnsupported = response?.InfoCode === "1006";
11251
- const transactionId = response?.TransactionID;
11252
- if (isDocUnsupported && transactionId && this.candidateImages.length > 0) {
11253
- const frontImage = this.candidateImages[this.candidateImages.length - 1].fullImg;
11254
- await (0,_requests_error_logging__WEBPACK_IMPORTED_MODULE_4__["default"])(frontImage, "", transactionId);
11255
- this.showMessage("Unsupported document. Logged issue.");
11256
- }
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);
11257
11257
  this.candidateImages = [];
11258
11258
  return;
11259
11259
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scandoc-ai-components",
3
3
  "author": "ScanDoc-AI",
4
- "version": "0.0.89",
4
+ "version": "0.0.91",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [