Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microblink/blinkcard-capacitor

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microblink/blinkcard-capacitor - npm Package Compare versions

Comparing version 2.9.0 to 2.9.1

2

dist/esm/scanner/index.d.ts

@@ -14,5 +14,7 @@ import { RecognizerCollection } from '../recognizer';

scanWithCamera(overlaySettings: OverlaySettings, recognizerCollection: RecognizerCollection, license: License): Promise<any>;
scanWithDirectApi(license: License, recognizerCollection: RecognizerCollection, frontImage: string, backImage?: string): Promise<any>;
}
export interface BlinkCardPluginInterface {
scanWithCamera(overlaySettings: OverlaySettings, recognizerCollection: RecognizerCollection, license: License): Promise<any>;
scanWithDirectApi(license: License, recognizerCollection: RecognizerCollection, frontImage: string, backImage?: string): Promise<any>;
}

@@ -42,3 +42,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
scanWithDirectApi(license, recognizerCollection, frontImage, backImage) {
return __awaiter(this, void 0, void 0, function* () {
let functions = [];
for (let recognizer of recognizerCollection.recognizerArray) {
let recognizerFunction = recognizer.createResultFromNative;
functions.push(recognizerFunction);
delete recognizer.createResultFromNative;
}
const response = yield BlinkCardCapacitorPlugin.scanWithDirectApi({ 'license': license, 'recognizerCollection': recognizerCollection, 'frontImage': frontImage, 'backImage': backImage });
const results = response.resultList;
const isCancelled = response.cancelled;
let resultsFromNative = [];
if (!isCancelled && results) {
for (let i = 0; i < results.length; ++i) {
recognizerCollection.recognizerArray[i].createResultFromNative = functions[i];
let result = recognizerCollection.recognizerArray[i].createResultFromNative(results[i]);
if (result.resultState != 0 /* empty */) {
resultsFromNative.push(result);
}
}
}
return resultsFromNative;
});
}
}
//# sourceMappingURL=index.js.map

@@ -44,2 +44,26 @@ var capacitorPlugin = (function (exports, core) {

}
scanWithDirectApi(license, recognizerCollection, frontImage, backImage) {
return __awaiter(this, void 0, void 0, function* () {
let functions = [];
for (let recognizer of recognizerCollection.recognizerArray) {
let recognizerFunction = recognizer.createResultFromNative;
functions.push(recognizerFunction);
delete recognizer.createResultFromNative;
}
const response = yield BlinkCardCapacitorPlugin.scanWithDirectApi({ 'license': license, 'recognizerCollection': recognizerCollection, 'frontImage': frontImage, 'backImage': backImage });
const results = response.resultList;
const isCancelled = response.cancelled;
let resultsFromNative = [];
if (!isCancelled && results) {
for (let i = 0; i < results.length; ++i) {
recognizerCollection.recognizerArray[i].createResultFromNative = functions[i];
let result = recognizerCollection.recognizerArray[i].createResultFromNative(results[i]);
if (result.resultState != 0 /* empty */) {
resultsFromNative.push(result);
}
}
}
return resultsFromNative;
});
}
}

@@ -46,0 +70,0 @@

2

package.json
{
"name": "@microblink/blinkcard-capacitor",
"version": "2.9.0",
"version": "2.9.1",
"description": "AI-driven credit card scanning for cross-platform apps built with Capacitor.",

@@ -5,0 +5,0 @@ "main": "dist/plugin.js",

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 not supported yet

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 not supported yet

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 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