scandoc-ai-components 0.0.26 → 0.0.27

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 +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11262,6 +11262,14 @@ class ExtractorVideo {
11262
11262
  this.onExtraction(isExtractionOk, extractionData);
11263
11263
  return;
11264
11264
  }
11265
+ } else {
11266
+ this.candidateImages = [];
11267
+ this.stopVideo();
11268
+ this.onExtractedResults({
11269
+ success: false,
11270
+ code: "VALIDATION_FAILED",
11271
+ info: "Validation of document image failed."
11272
+ });
11265
11273
  }
11266
11274
  this.candidateImages = [];
11267
11275
  }
@@ -11273,6 +11281,7 @@ class ExtractorVideo {
11273
11281
  onExtraction(isExtractionOk, extractionData) {
11274
11282
  this.candidateImages = [];
11275
11283
  this.extractionImages = {};
11284
+ this.stopVideo();
11276
11285
  if (isExtractionOk) {
11277
11286
  this.showMessage("Success - data extracted", "success");
11278
11287
  const shouldStop = this.onExtractedResults({
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.26",
4
+ "version": "0.0.27",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [