scandoc-ai-components 0.0.98 → 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 +0 -26
  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,7 +11293,6 @@ 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
11296
  const [isExtractionOk, extractionData] = await (0,_requests_extraction__WEBPACK_IMPORTED_MODULE_2__["default"])(this.extractionImages["FRONT"], this.extractionImages["BACK"], false);
11301
11297
  this.onExtraction(isExtractionOk, extractionData);
11302
11298
  return;
@@ -11961,11 +11957,6 @@ async function callDocumentExtraction(frontImage, backImage, ignoreBackImage) {
11961
11957
  FaceImageResize: cfgValues.FACE_IMAGE_RESIZE
11962
11958
  };
11963
11959
  const currentSettings = (0,_utility_utils__WEBPACK_IMPORTED_MODULE_1__.removeNullFields)(settings);
11964
- console.log("Starting document extraction...");
11965
- console.log("Ignore back image:", ignoreBackImage);
11966
- console.log("Front image (first 100 chars):", frontImage?.substring(0, 100));
11967
- console.log("Back image (first 100 chars):", backImage?.substring(0, 100));
11968
- console.log("Sending settings:", currentSettings);
11969
11960
  const response = await fetch(`${cfgValues.SCAN_APP_URL}extraction/`, {
11970
11961
  method: "POST",
11971
11962
  headers: {
@@ -11989,23 +11980,6 @@ async function callDocumentExtraction(frontImage, backImage, ignoreBackImage) {
11989
11980
  Browser: browser
11990
11981
  })
11991
11982
  });
11992
- const requestBody = {
11993
- AcceptTermsAndConditions: true,
11994
- DataFields: {
11995
- BackImage: ignoreBackImage ? "" : backImage,
11996
- BackImageCropped: false,
11997
- BackImageType: "base64",
11998
- FrontImage: frontImage,
11999
- FrontImageCropped: false,
12000
- FrontImageType: "base64"
12001
- },
12002
- Settings: currentSettings,
12003
- OS: os,
12004
- Device: device,
12005
- Browser: browser
12006
- };
12007
- console.log("Extraction request body:", requestBody);
12008
-
12009
11983
  //
12010
11984
  if (response.status === 200) {
12011
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.98",
4
+ "version": "0.0.99",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [