Socket
Socket
Sign inDemoInstall

react-native-scanbot-sdk

Package Overview
Dependencies
Maintainers
1
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-scanbot-sdk - npm Package Compare versions

Comparing version 4.15.1-beta.2 to 4.15.1-beta.3

2

package.json
{
"name": "react-native-scanbot-sdk",
"title": "Scanbot Document and Barcode Scanner SDK for React Native",
"version": "4.15.1-beta.2",
"version": "4.15.1-beta.3",
"description": "Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS",

@@ -6,0 +6,0 @@ "main": "src/index.js",

@@ -1,52 +0,56 @@

import { Status } from "./enum";
import { Page } from "./model";
import { BarcodeDocumentFormat, BarcodeFormat, MSIPlesseyChecksumAlgorithm } from "./configuration";
import {Status} from './enum';
import {Page} from './model';
import {
BarcodeDocumentFormat,
BarcodeFormat,
MSIPlesseyChecksumAlgorithm,
} from './configuration';
interface InternalBarcodeDetectionCommonParameters {
/**
* Accepted barcode formats
*/
barcodeFormats?: BarcodeFormat[];
/**
* An optional array of barcode document formats that act as a detection filter.
* By default all supported document formats will be detected.
*/
acceptedDocumentFormats?: BarcodeDocumentFormat[];
/**
* Optional minimum required text length of the detected barcode.
* The default is 0 (setting is turned off).
* NOTE: This feature works on ITF barcodes only.
*/
minimumTextLength?: number;
/**
* Optional maximum required text length of the detected barcode.
* The default is 0 (setting is turned off).
* NOTE: This feature works on ITF barcodes only.
*/
maximumTextLength?: number;
/**
* Optional minimum required quiet zone on the barcode.
* Measured in modules (the size of minimal bar on the barcode).
* The default is 10.
* NOTE: This feature works on ITF barcodes only.
*/
minimum1DBarcodesQuietZone?: number;
/**
* With this option enabled, the scanner removes checks digits for UPC, EAN and MSI Plessey codes.
* Has no effect if both single and double digit MSI Plessey checksums are enabled.
* The default is `false`
*/
stripCheckDigits?: boolean;
/**
* When set to `true`, the scanner assumes that the barcode can be a GS1 barcode.
* Turn it off, if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
* The default value is `true`.
* NOTE: Currently works for CODE128 barcodes only!
*/
gs1DecodingEnabled?: boolean;
/**
* The checksum algorithm for MSI Plessey barcodes.
* The default value is Mod10.
*/
msiPlesseyChecksumAlgorithm?: MSIPlesseyChecksumAlgorithm;
/**
* Accepted barcode formats
*/
barcodeFormats?: BarcodeFormat[];
/**
* An optional array of barcode document formats that act as a detection filter.
* By default all supported document formats will be detected.
*/
acceptedDocumentFormats?: BarcodeDocumentFormat[];
/**
* Optional minimum required text length of the detected barcode.
* The default is 0 (setting is turned off).
* NOTE: This feature works on ITF barcodes only.
*/
minimumTextLength?: number;
/**
* Optional maximum required text length of the detected barcode.
* The default is 0 (setting is turned off).
* NOTE: This feature works on ITF barcodes only.
*/
maximumTextLength?: number;
/**
* Optional minimum required quiet zone on the barcode.
* Measured in modules (the size of minimal bar on the barcode).
* The default is 10.
* NOTE: This feature works on ITF barcodes only.
*/
minimum1DBarcodesQuietZone?: number;
/**
* With this option enabled, the scanner removes checks digits for UPC, EAN and MSI Plessey codes.
* Has no effect if both single and double digit MSI Plessey checksums are enabled.
* The default is `false`
*/
stripCheckDigits?: boolean;
/**
* When set to `true`, the scanner assumes that the barcode can be a GS1 barcode.
* Turn it off, if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
* The default value is `true`.
* NOTE: Currently works for CODE128 barcodes only!
*/
gs1DecodingEnabled?: boolean;
/**
* The checksum algorithm for MSI Plessey barcodes.
* The default value is Mod10.
*/
msiPlesseyChecksumAlgorithm?: MSIPlesseyChecksumAlgorithm;
}

@@ -115,2 +119,2 @@

pages?: Page[];
}
}

@@ -1,43 +0,3 @@

export type BarcodeDocumentFormat =
| 'AAMVA'
| 'BOARDING_PASS'
| 'DE_MEDICAL_PLAN'
| 'MEDICAL_CERTIFICATE'
| 'ID_CARD_PDF_417'
| 'SEPA'
| 'SWISS_QR'
| 'VCARD';
export type BarcodeFormat =
| 'AZTEC'
| 'CODABAR'
| 'CODE_25'
| 'CODE_39'
| 'CODE_93'
| 'CODE_128'
| 'DATA_MATRIX'
| 'EAN_8'
| 'EAN_13'
| 'ITF'
| 'PDF_417'
| 'QR_CODE'
| 'RSS_14'
| 'RSS_EXPANDED'
| 'UPC_A'
| 'UPC_E'
| 'UNKNOWN'
| 'MSI_PLESSEY';
export type IDCardDocumentType = 'DeIdBack' | 'DeIdFront' | 'DePassport';
export type CameraPreviewMode = 'FILL_IN' | 'FIT_IN';
export type CameraImageFormat = 'JPG' | 'PNG';
export type CameraModule = 'FRONT' | 'BACK';
export type InterfaceOrientation = 'ALL' | 'PORTRAIT' | 'LANDSCAPE';
export type TextFilterStrategy = 'DOCUMENT' | 'LC_DOT_MATRIX_DISPLAY';
export type DetectionStatus =

@@ -104,4 +64,2 @@ | 'OK'

export type DocumentDetectorMode = 'EDGE_BASED' | 'ML_BASED';
export type HealthInsuranceCardValidationType =

@@ -108,0 +66,0 @@ | 'NONE'

@@ -23,3 +23,3 @@ import {

LicensePlateScannerConfiguration,
MedicalCertificateRecognizerConfiguration
MedicalCertificateRecognizerConfiguration,
};

@@ -34,3 +34,3 @@

ExtractImagesFromPdfResult,
} from './arguments'
} from './arguments';

@@ -82,3 +82,3 @@ export {

TIFFCompression,
}
};

@@ -98,3 +98,3 @@ import {

GenericDocumentRecognizerResult,
GenericDocumentField
GenericDocumentField,
} from './result';

@@ -115,9 +115,8 @@

GenericDocumentRecognizerResult,
GenericDocumentField
GenericDocumentField,
};
import { Page, Point, Size, InitializationOptions, LicenseInfo } from './model';
import {Page, Point, Size, InitializationOptions, LicenseInfo} from './model';
export {Page, Point, Size, InitializationOptions, LicenseInfo};
export { Page, Point, Size, InitializationOptions, LicenseInfo };
export interface ScanbotSDKUI {

@@ -193,3 +192,3 @@ startDocumentScanner(

initializeSDK(options: InitializationOptions): Promise<{ result: string }>;
initializeSDK(options: InitializationOptions): Promise<{result: string}>;
getLicenseInfo(): Promise<LicenseInfo>;

@@ -245,3 +244,3 @@

detectDocumentOnPage(page: Page): Promise<Page>;
estimateBlur(args: { imageFileUri: string }): Promise<{ blur: number }>;
estimateBlur(args: {imageFileUri: string}): Promise<{blur: number}>;

@@ -258,7 +257,7 @@ applyImageFilterOnPage(page: Page, filter: ImageFilter): Promise<Page>;

removePage(page: Page): Promise<void>;
refreshImageUris(args: { pages: Page[] }): Promise<{ pages: Page[] }>;
refreshImageUris(args: {pages: Page[]}): Promise<{pages: Page[]}>;
cleanup(): Promise<void>;
getImageData(imageFileUri: string): Promise<{ base64ImageData: string }>;
getImageData(imageFileUri: string): Promise<{base64ImageData: string}>;

@@ -279,2 +278,1 @@ extractPagesFromPdf(

export * from './components/barcode-camera-view/scanbot-barcode-camera-view-types';
import type {DetectionStatus, ImageFilter} from '.';
import {DocumentDetectorMode} from './configuration';
import type {
CameraImageFormat,
LicenseStatus,
DocumentDetectorMode,
FileEncryptionMode,

@@ -7,0 +7,0 @@ } from './enum';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc