scandoc-ai-components 0.0.97 → 0.0.99

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 +2 -27
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11262,9 +11262,6 @@ class ExtractorVideo {
11262
11262
  const imageSide = response["Side"];
11263
11263
  const message = response["Info"];
11264
11264
  const isNewSide = this.extractionImages[imageSide] === undefined;
11265
- console.log("Received side from validation:", imageSide);
11266
- console.log("Image index:", imageId);
11267
- console.log("Available sides in extractionImages:", Object.keys(this.extractionImages));
11268
11265
  if (!this.waitingForSecondSide || isNewSide) {
11269
11266
  this.showMessage(message);
11270
11267
  }
@@ -11296,10 +11293,7 @@ class ExtractorVideo {
11296
11293
  this.waitingForSecondSide = false;
11297
11294
  this.hasShownTurnMessage = false;
11298
11295
  this.showMessage("Validation successful", true);
11299
- console.log(this.extractionImages);
11300
- const [isExtractionOk, extractionData] = await (0,_requests_extraction__WEBPACK_IMPORTED_MODULE_2__["default"])(this.extractionImages["FRONT"], this.extractionImages["BACK"], {
11301
- IgnoreBackImage: false
11302
- });
11296
+ const [isExtractionOk, extractionData] = await (0,_requests_extraction__WEBPACK_IMPORTED_MODULE_2__["default"])(this.extractionImages["FRONT"], this.extractionImages["BACK"], false);
11303
11297
  this.onExtraction(isExtractionOk, extractionData);
11304
11298
  return;
11305
11299
  }
@@ -11309,9 +11303,7 @@ class ExtractorVideo {
11309
11303
  this.showMessage("Validation successful");
11310
11304
  this.showMessage("Extracting data");
11311
11305
  const image = images[imageId].fullImg;
11312
- const [isExtractionOk, extractionData] = await (0,_requests_extraction__WEBPACK_IMPORTED_MODULE_2__["default"])(image, undefined, {
11313
- IgnoreBackImage: true
11314
- });
11306
+ const [isExtractionOk, extractionData] = await (0,_requests_extraction__WEBPACK_IMPORTED_MODULE_2__["default"])(image, undefined, true);
11315
11307
  this.onExtraction(isExtractionOk, extractionData);
11316
11308
  return;
11317
11309
  }
@@ -11988,23 +11980,6 @@ async function callDocumentExtraction(frontImage, backImage, ignoreBackImage) {
11988
11980
  Browser: browser
11989
11981
  })
11990
11982
  });
11991
- const requestBody = {
11992
- AcceptTermsAndConditions: true,
11993
- DataFields: {
11994
- BackImage: ignoreBackImage ? "" : backImage,
11995
- BackImageCropped: false,
11996
- BackImageType: "base64",
11997
- FrontImage: frontImage,
11998
- FrontImageCropped: false,
11999
- FrontImageType: "base64"
12000
- },
12001
- Settings: currentSettings,
12002
- OS: os,
12003
- Device: device,
12004
- Browser: browser
12005
- };
12006
- console.log("Extraction request body:", requestBody);
12007
-
12008
11983
  //
12009
11984
  if (response.status === 200) {
12010
11985
  const data = await response.json();
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.97",
4
+ "version": "0.0.99",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [