New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bank-voucher-ocr

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bank-voucher-ocr - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

14

dist/bvocr.esm.js

@@ -5,3 +5,3 @@ /**

*
* @version 1.0.0
* @version 1.1.0
* @author waiting

@@ -501,4 +501,4 @@ * @license MIT

retInfo.set('bank' /* bank */, bankName);
retInfo.set('filename', imgFile.name.trim());
retInfo.set('path', imgFile.path.trim());
retInfo.set('filename' /* filename */, imgFile.name.trim());
retInfo.set('path' /* path */, imgFile.path.trim());
return retInfo

@@ -757,4 +757,4 @@ }))

const { retInfo, resizeDir, debug, scale, jpegQuality } = options;
const filename = retInfo.get('filename');
const path = retInfo.get('path');
const filename = retInfo.get('filename' /* filename */);
const path = retInfo.get('path' /* path */);
const sn = retInfo.get('sn' /* sn */);

@@ -781,5 +781,5 @@

retInfo.set('filename', filename2);
retInfo.set('filename' /* filename */, filename2);
return resizeAndSaveImg(path, targetPath, scale, jpegQuality).pipe(map(imgInfo => {
retInfo.set('path', imgInfo.path);
retInfo.set('path' /* path */, imgInfo.path);
return retInfo

@@ -786,0 +786,0 @@ }), tap(() => {

@@ -5,3 +5,3 @@ /**

*
* @version 1.0.0
* @version 1.1.0
* @author waiting

@@ -8,0 +8,0 @@ * @license MIT

@@ -5,3 +5,3 @@ /**

*
* @version 1.0.0
* @version 1.1.0
* @author waiting

@@ -507,4 +507,4 @@ * @license MIT

retInfo.set('bank' /* bank */, bankName);
retInfo.set('filename', imgFile.name.trim());
retInfo.set('path', imgFile.path.trim());
retInfo.set('filename' /* filename */, imgFile.name.trim());
retInfo.set('path' /* path */, imgFile.path.trim());
return retInfo

@@ -763,4 +763,4 @@ }))

const { retInfo, resizeDir, debug, scale, jpegQuality } = options;
const filename = retInfo.get('filename');
const path$$1 = retInfo.get('path');
const filename = retInfo.get('filename' /* filename */);
const path$$1 = retInfo.get('path' /* path */);
const sn = retInfo.get('sn' /* sn */);

@@ -787,5 +787,5 @@

retInfo.set('filename', filename2);
retInfo.set('filename' /* filename */, filename2);
return resizeAndSaveImg(path$$1, targetPath, scale, jpegQuality).pipe(operators.map(imgInfo => {
retInfo.set('path', imgInfo.path);
retInfo.set('path' /* path */, imgInfo.path);
return retInfo

@@ -792,0 +792,0 @@ }), operators.tap(() => {

@@ -90,4 +90,4 @@ import * as moment_ from 'moment'

retInfo.set('bank' /* bank */, bankName)
retInfo.set('filename', imgFile.name.trim())
retInfo.set('path', imgFile.path.trim())
retInfo.set('filename' /* filename */, imgFile.name.trim())
retInfo.set('path' /* path */, imgFile.path.trim())
return retInfo

@@ -346,4 +346,4 @@ }))

const { retInfo, resizeDir, debug, scale, jpegQuality } = options
const filename = retInfo.get('filename')
const path = retInfo.get('path')
const filename = retInfo.get('filename' /* filename */)
const path = retInfo.get('path' /* path */)
const sn = retInfo.get('sn' /* sn */)

@@ -370,5 +370,5 @@

retInfo.set('filename', filename2)
retInfo.set('filename' /* filename */, filename2)
return resizeAndSaveImg(path, targetPath, scale, jpegQuality).pipe(map(imgInfo => {
retInfo.set('path', imgInfo.path)
retInfo.set('path' /* path */, imgInfo.path)
return retInfo

@@ -375,0 +375,0 @@ }), tap(() => {

@@ -48,8 +48,12 @@ /// <reference types="node" />

}
export declare type OcrRetInfoKey = FieldName | 'filename' | 'path';
export declare type OcrRetInfo = Map<OcrRetInfoKey, string>;
export declare const enum OcrRetInfoKey {
filename = "filename",
path = "path"
}
export declare type OcrRetInfo = Map<OcrRetInfoKey | FieldName, string>;
export declare type VoucherConfigMap = Map<BankName, VoucherConfig>;
export interface OcrRetObject {
[key: string]: string;
}
export declare type OcrRetObjectTypeKey = FieldNameTypeKey | keyof typeof OcrRetInfoKey;
export declare type OcrRetObject = {
[key in OcrRetObjectTypeKey]: string;
};
export interface OcrZoneRet {

@@ -56,0 +60,0 @@ fieldName: FieldName;

{
"name": "bank-voucher-ocr",
"author": "waiting",
"version": "1.0.0",
"version": "1.1.0",
"description": "Bank Voucher ocr by tesseract and retrieve fields",

@@ -6,0 +6,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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