capacitor-microblink 0.2.0 → 0.3.0
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.
- package/Package.swift +3 -3
- package/README.md +21 -55
- package/android/build.gradle +10 -2
- package/android/src/main/java/com/otto/microblink/BlinkCardInitBridge.kt +29 -0
- package/android/src/main/java/com/otto/microblink/MicroblinkPlugin.java +147 -299
- package/dist/docs.json +54 -201
- package/dist/esm/definitions.d.ts +12 -31
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +2 -2
- package/dist/esm/web.js +3 -3
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +3 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +3 -3
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/MicroblinkPlugin/MicroblinkPlugin.swift +144 -260
- package/package.json +2 -2
package/dist/docs.json
CHANGED
|
@@ -6,218 +6,47 @@
|
|
|
6
6
|
"tags": [],
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
|
-
"name": "
|
|
10
|
-
"signature": "(options:
|
|
9
|
+
"name": "scanCard",
|
|
10
|
+
"signature": "(options: ScanCardOptions) => Promise<ScanCardResult>",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "options",
|
|
14
14
|
"docs": "",
|
|
15
|
-
"type": "
|
|
15
|
+
"type": "ScanCardOptions"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
-
"returns": "Promise<
|
|
18
|
+
"returns": "Promise<ScanCardResult>",
|
|
19
19
|
"tags": [],
|
|
20
|
-
"docs": "Starts
|
|
20
|
+
"docs": "Starts BlinkCard card scanning flow.",
|
|
21
21
|
"complexTypes": [
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"ScanCardResult",
|
|
23
|
+
"ScanCardOptions"
|
|
24
24
|
],
|
|
25
|
-
"slug": "
|
|
25
|
+
"slug": "scancard"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"name": "
|
|
29
|
-
"signature": "(options:
|
|
28
|
+
"name": "initializeBlinkCard",
|
|
29
|
+
"signature": "(options: InitializeBlinkCardOptions) => Promise<InitializeBlinkCardResult>",
|
|
30
30
|
"parameters": [
|
|
31
31
|
{
|
|
32
32
|
"name": "options",
|
|
33
33
|
"docs": "",
|
|
34
|
-
"type": "
|
|
34
|
+
"type": "InitializeBlinkCardOptions"
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
|
-
"returns": "Promise<
|
|
37
|
+
"returns": "Promise<InitializeBlinkCardResult>",
|
|
38
38
|
"tags": [],
|
|
39
|
-
"docs": "
|
|
39
|
+
"docs": "Initializes BlinkCard SDK/license before scanning.",
|
|
40
40
|
"complexTypes": [
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"InitializeBlinkCardResult",
|
|
42
|
+
"InitializeBlinkCardOptions"
|
|
43
43
|
],
|
|
44
|
-
"slug": "
|
|
44
|
+
"slug": "initializeblinkcard"
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"properties": []
|
|
48
48
|
},
|
|
49
49
|
"interfaces": [
|
|
50
|
-
{
|
|
51
|
-
"name": "StartVerificationResult",
|
|
52
|
-
"slug": "startverificationresult",
|
|
53
|
-
"docs": "",
|
|
54
|
-
"tags": [],
|
|
55
|
-
"methods": [],
|
|
56
|
-
"properties": [
|
|
57
|
-
{
|
|
58
|
-
"name": "canceled",
|
|
59
|
-
"tags": [],
|
|
60
|
-
"docs": "",
|
|
61
|
-
"complexTypes": [],
|
|
62
|
-
"type": "boolean"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "transactionId",
|
|
66
|
-
"tags": [],
|
|
67
|
-
"docs": "",
|
|
68
|
-
"complexTypes": [],
|
|
69
|
-
"type": "string | null"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"name": "status",
|
|
73
|
-
"tags": [],
|
|
74
|
-
"docs": "",
|
|
75
|
-
"complexTypes": [],
|
|
76
|
-
"type": "'accept' | 'review' | 'reject' | undefined"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "cancelReason",
|
|
80
|
-
"tags": [],
|
|
81
|
-
"docs": "",
|
|
82
|
-
"complexTypes": [],
|
|
83
|
-
"type": "'userCanceled' | 'consentDenied' | undefined"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "cardScanResult",
|
|
87
|
-
"tags": [],
|
|
88
|
-
"docs": "",
|
|
89
|
-
"complexTypes": [
|
|
90
|
-
"CardScanResult"
|
|
91
|
-
],
|
|
92
|
-
"type": "CardScanResult"
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "CardScanResult",
|
|
98
|
-
"slug": "cardscanresult",
|
|
99
|
-
"docs": "",
|
|
100
|
-
"tags": [],
|
|
101
|
-
"methods": [],
|
|
102
|
-
"properties": [
|
|
103
|
-
{
|
|
104
|
-
"name": "cardNumber",
|
|
105
|
-
"tags": [],
|
|
106
|
-
"docs": "",
|
|
107
|
-
"complexTypes": [],
|
|
108
|
-
"type": "string"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "expiryDate",
|
|
112
|
-
"tags": [],
|
|
113
|
-
"docs": "",
|
|
114
|
-
"complexTypes": [],
|
|
115
|
-
"type": "string"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "owner",
|
|
119
|
-
"tags": [],
|
|
120
|
-
"docs": "",
|
|
121
|
-
"complexTypes": [],
|
|
122
|
-
"type": "string"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "cvv",
|
|
126
|
-
"tags": [],
|
|
127
|
-
"docs": "",
|
|
128
|
-
"complexTypes": [],
|
|
129
|
-
"type": "string"
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "StartVerificationOptions",
|
|
135
|
-
"slug": "startverificationoptions",
|
|
136
|
-
"docs": "",
|
|
137
|
-
"tags": [],
|
|
138
|
-
"methods": [],
|
|
139
|
-
"properties": [
|
|
140
|
-
{
|
|
141
|
-
"name": "workflowId",
|
|
142
|
-
"tags": [],
|
|
143
|
-
"docs": "",
|
|
144
|
-
"complexTypes": [],
|
|
145
|
-
"type": "string"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "url",
|
|
149
|
-
"tags": [],
|
|
150
|
-
"docs": "",
|
|
151
|
-
"complexTypes": [],
|
|
152
|
-
"type": "string"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "userId",
|
|
156
|
-
"tags": [],
|
|
157
|
-
"docs": "",
|
|
158
|
-
"complexTypes": [],
|
|
159
|
-
"type": "string"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "isProcessingStoringAllowed",
|
|
163
|
-
"tags": [],
|
|
164
|
-
"docs": "",
|
|
165
|
-
"complexTypes": [],
|
|
166
|
-
"type": "boolean"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "isTrainingAllowed",
|
|
170
|
-
"tags": [],
|
|
171
|
-
"docs": "",
|
|
172
|
-
"complexTypes": [],
|
|
173
|
-
"type": "boolean"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"name": "note",
|
|
177
|
-
"tags": [],
|
|
178
|
-
"docs": "",
|
|
179
|
-
"complexTypes": [],
|
|
180
|
-
"type": "string | undefined"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"name": "givenOn",
|
|
184
|
-
"tags": [],
|
|
185
|
-
"docs": "",
|
|
186
|
-
"complexTypes": [],
|
|
187
|
-
"type": "number | undefined"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "additionalRequestHeaders",
|
|
191
|
-
"tags": [],
|
|
192
|
-
"docs": "",
|
|
193
|
-
"complexTypes": [
|
|
194
|
-
"Record"
|
|
195
|
-
],
|
|
196
|
-
"type": "Record<string, string>"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"name": "startTransactionPath",
|
|
200
|
-
"tags": [],
|
|
201
|
-
"docs": "",
|
|
202
|
-
"complexTypes": [],
|
|
203
|
-
"type": "string | undefined"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"name": "cancelWorkflowPath",
|
|
207
|
-
"tags": [],
|
|
208
|
-
"docs": "",
|
|
209
|
-
"complexTypes": [],
|
|
210
|
-
"type": "string | undefined"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "workflowInfoPath",
|
|
214
|
-
"tags": [],
|
|
215
|
-
"docs": "",
|
|
216
|
-
"complexTypes": [],
|
|
217
|
-
"type": "string | undefined"
|
|
218
|
-
}
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
50
|
{
|
|
222
51
|
"name": "ScanCardResult",
|
|
223
52
|
"slug": "scancardresult",
|
|
@@ -341,7 +170,7 @@
|
|
|
341
170
|
"tags": [],
|
|
342
171
|
"docs": "",
|
|
343
172
|
"complexTypes": [],
|
|
344
|
-
"type": "string"
|
|
173
|
+
"type": "string | undefined"
|
|
345
174
|
},
|
|
346
175
|
{
|
|
347
176
|
"name": "licensee",
|
|
@@ -393,24 +222,48 @@
|
|
|
393
222
|
"type": "boolean | undefined"
|
|
394
223
|
}
|
|
395
224
|
]
|
|
396
|
-
}
|
|
397
|
-
],
|
|
398
|
-
"enums": [],
|
|
399
|
-
"typeAliases": [
|
|
225
|
+
},
|
|
400
226
|
{
|
|
401
|
-
"name": "
|
|
402
|
-
"slug": "
|
|
403
|
-
"docs": "
|
|
404
|
-
"
|
|
227
|
+
"name": "InitializeBlinkCardResult",
|
|
228
|
+
"slug": "initializeblinkcardresult",
|
|
229
|
+
"docs": "",
|
|
230
|
+
"tags": [],
|
|
231
|
+
"methods": [],
|
|
232
|
+
"properties": [
|
|
405
233
|
{
|
|
406
|
-
"
|
|
407
|
-
"
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
234
|
+
"name": "initialized",
|
|
235
|
+
"tags": [],
|
|
236
|
+
"docs": "",
|
|
237
|
+
"complexTypes": [],
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "InitializeBlinkCardOptions",
|
|
244
|
+
"slug": "initializeblinkcardoptions",
|
|
245
|
+
"docs": "",
|
|
246
|
+
"tags": [],
|
|
247
|
+
"methods": [],
|
|
248
|
+
"properties": [
|
|
249
|
+
{
|
|
250
|
+
"name": "licenseKey",
|
|
251
|
+
"tags": [],
|
|
252
|
+
"docs": "",
|
|
253
|
+
"complexTypes": [],
|
|
254
|
+
"type": "string"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "licensee",
|
|
258
|
+
"tags": [],
|
|
259
|
+
"docs": "",
|
|
260
|
+
"complexTypes": [],
|
|
261
|
+
"type": "string | undefined"
|
|
411
262
|
}
|
|
412
263
|
]
|
|
413
264
|
}
|
|
414
265
|
],
|
|
266
|
+
"enums": [],
|
|
267
|
+
"typeAliases": [],
|
|
415
268
|
"pluginConfigs": []
|
|
416
269
|
}
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
export interface StartVerificationOptions {
|
|
2
|
-
workflowId: string;
|
|
3
|
-
url: string;
|
|
4
|
-
userId: string;
|
|
5
|
-
isProcessingStoringAllowed: boolean;
|
|
6
|
-
isTrainingAllowed: boolean;
|
|
7
|
-
note?: string;
|
|
8
|
-
givenOn?: number;
|
|
9
|
-
additionalRequestHeaders?: Record<string, string>;
|
|
10
|
-
startTransactionPath?: string;
|
|
11
|
-
cancelWorkflowPath?: string;
|
|
12
|
-
workflowInfoPath?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface CardScanResult {
|
|
15
|
-
cardNumber: string;
|
|
16
|
-
expiryDate: string;
|
|
17
|
-
owner: string;
|
|
18
|
-
cvv: string;
|
|
19
|
-
}
|
|
20
|
-
export interface StartVerificationResult {
|
|
21
|
-
canceled: boolean;
|
|
22
|
-
transactionId: string | null;
|
|
23
|
-
status?: 'accept' | 'review' | 'reject';
|
|
24
|
-
cancelReason?: 'userCanceled' | 'consentDenied';
|
|
25
|
-
cardScanResult?: CardScanResult;
|
|
26
|
-
}
|
|
27
1
|
export interface BlinkCardDate {
|
|
28
2
|
day: number;
|
|
29
3
|
month: number;
|
|
30
4
|
year: number;
|
|
31
5
|
}
|
|
32
6
|
export interface ScanCardOptions {
|
|
33
|
-
licenseKey
|
|
7
|
+
licenseKey?: string;
|
|
34
8
|
licensee?: string;
|
|
35
9
|
extractOwner?: boolean;
|
|
36
10
|
extractExpiryDate?: boolean;
|
|
@@ -39,6 +13,13 @@ export interface ScanCardOptions {
|
|
|
39
13
|
allowInvalidCardNumber?: boolean;
|
|
40
14
|
enableEditScreen?: boolean;
|
|
41
15
|
}
|
|
16
|
+
export interface InitializeBlinkCardOptions {
|
|
17
|
+
licenseKey: string;
|
|
18
|
+
licensee?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface InitializeBlinkCardResult {
|
|
21
|
+
initialized: boolean;
|
|
22
|
+
}
|
|
42
23
|
export interface ScanCardResult {
|
|
43
24
|
canceled: boolean;
|
|
44
25
|
resultState?: 'empty' | 'uncertain' | 'valid' | 'stageValid';
|
|
@@ -52,12 +33,12 @@ export interface ScanCardResult {
|
|
|
52
33
|
expiryDate?: BlinkCardDate | null;
|
|
53
34
|
}
|
|
54
35
|
export interface MicroblinkPlugin {
|
|
55
|
-
/**
|
|
56
|
-
* Starts Microblink identity verification flow.
|
|
57
|
-
*/
|
|
58
|
-
startVerification(options: StartVerificationOptions): Promise<StartVerificationResult>;
|
|
59
36
|
/**
|
|
60
37
|
* Starts BlinkCard card scanning flow.
|
|
61
38
|
*/
|
|
62
39
|
scanCard(options: ScanCardOptions): Promise<ScanCardResult>;
|
|
40
|
+
/**
|
|
41
|
+
* Initializes BlinkCard SDK/license before scanning.
|
|
42
|
+
*/
|
|
43
|
+
initializeBlinkCard(options: InitializeBlinkCardOptions): Promise<InitializeBlinkCardResult>;
|
|
63
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface BlinkCardDate {\n day: number;\n month: number;\n year: number;\n}\n\nexport interface ScanCardOptions {\n licenseKey?: string;\n licensee?: string;\n extractOwner?: boolean;\n extractExpiryDate?: boolean;\n extractCvv?: boolean;\n extractIban?: boolean;\n allowInvalidCardNumber?: boolean;\n enableEditScreen?: boolean;\n}\n\nexport interface InitializeBlinkCardOptions {\n licenseKey: string;\n licensee?: string;\n}\n\nexport interface InitializeBlinkCardResult {\n initialized: boolean;\n}\n\nexport interface ScanCardResult {\n canceled: boolean;\n resultState?: 'empty' | 'uncertain' | 'valid' | 'stageValid';\n processingStatus?:\n | 'success'\n | 'detectionFailed'\n | 'imagePreprocessingFailed'\n | 'stabilityTestFailed'\n | 'scanningWrongSide'\n | 'fieldIdentificationFailed'\n | 'imageReturnFailed'\n | 'unsupportedCard';\n cardNumber?: string;\n cardNumberValid?: boolean;\n cardNumberPrefix?: string;\n owner?: string;\n cvv?: string;\n iban?: string;\n expiryDate?: BlinkCardDate | null;\n}\n\nexport interface MicroblinkPlugin {\n /**\n * Starts BlinkCard card scanning flow.\n */\n scanCard(options: ScanCardOptions): Promise<ScanCardResult>;\n\n /**\n * Initializes BlinkCard SDK/license before scanning.\n */\n initializeBlinkCard(\n options: InitializeBlinkCardOptions,\n ): Promise<InitializeBlinkCardResult>;\n}\n"]}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { InitializeBlinkCardOptions, InitializeBlinkCardResult, MicroblinkPlugin, ScanCardOptions, ScanCardResult } from './definitions';
|
|
3
3
|
export declare class MicroblinkWeb extends WebPlugin implements MicroblinkPlugin {
|
|
4
|
-
startVerification(_options: StartVerificationOptions): Promise<StartVerificationResult>;
|
|
5
4
|
scanCard(_options: ScanCardOptions): Promise<ScanCardResult>;
|
|
5
|
+
initializeBlinkCard(_options: InitializeBlinkCardOptions): Promise<InitializeBlinkCardResult>;
|
|
6
6
|
}
|
package/dist/esm/web.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
2
|
export class MicroblinkWeb extends WebPlugin {
|
|
3
|
-
async startVerification(_options) {
|
|
4
|
-
throw this.unimplemented('Microblink is only available on Android and iOS.');
|
|
5
|
-
}
|
|
6
3
|
async scanCard(_options) {
|
|
7
4
|
throw this.unimplemented('BlinkCard is only available on Android and iOS.');
|
|
8
5
|
}
|
|
6
|
+
async initializeBlinkCard(_options) {
|
|
7
|
+
throw this.unimplemented('BlinkCard is only available on Android and iOS.');
|
|
8
|
+
}
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=web.js.map
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,KAAK,CAAC,QAAQ,CAAC,QAAyB;QACtC,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,QAAoC;QAEpC,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC,CAAC;IAC9E,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n InitializeBlinkCardOptions,\n InitializeBlinkCardResult,\n MicroblinkPlugin,\n ScanCardOptions,\n ScanCardResult,\n} from './definitions';\n\nexport class MicroblinkWeb extends WebPlugin implements MicroblinkPlugin {\n async scanCard(_options: ScanCardOptions): Promise<ScanCardResult> {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n\n async initializeBlinkCard(\n _options: InitializeBlinkCardOptions,\n ): Promise<InitializeBlinkCardResult> {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -7,12 +7,12 @@ const Microblink = core.registerPlugin('Microblink', {
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
class MicroblinkWeb extends core.WebPlugin {
|
|
10
|
-
async startVerification(_options) {
|
|
11
|
-
throw this.unimplemented('Microblink is only available on Android and iOS.');
|
|
12
|
-
}
|
|
13
10
|
async scanCard(_options) {
|
|
14
11
|
throw this.unimplemented('BlinkCard is only available on Android and iOS.');
|
|
15
12
|
}
|
|
13
|
+
async initializeBlinkCard(_options) {
|
|
14
|
+
throw this.unimplemented('BlinkCard is only available on Android and iOS.');
|
|
15
|
+
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
var web = /*#__PURE__*/Object.freeze({
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async scanCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n async initializeBlinkCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;AAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,aAAa,SAASC,cAAS,CAAC;AAC7C,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ,IAAI,MAAM,mBAAmB,CAAC,QAAQ,EAAE;AACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -6,12 +6,12 @@ var capacitorMicroblink = (function (exports, core) {
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
class MicroblinkWeb extends core.WebPlugin {
|
|
9
|
-
async startVerification(_options) {
|
|
10
|
-
throw this.unimplemented('Microblink is only available on Android and iOS.');
|
|
11
|
-
}
|
|
12
9
|
async scanCard(_options) {
|
|
13
10
|
throw this.unimplemented('BlinkCard is only available on Android and iOS.');
|
|
14
11
|
}
|
|
12
|
+
async initializeBlinkCard(_options) {
|
|
13
|
+
throw this.unimplemented('BlinkCard is only available on Android and iOS.');
|
|
14
|
+
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
var web = /*#__PURE__*/Object.freeze({
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async scanCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n async initializeBlinkCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;IAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,aAAa,SAASC,cAAS,CAAC;IAC7C,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ,IAAI,MAAM,mBAAmB,CAAC,QAAQ,EAAE;IACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ;;;;;;;;;;;;;;;"}
|