bry-biometric-collector 2.0.4 → 2.0.5
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/README.md +2 -2
- package/dist/{FaceCollector_2518984f_2.0.4.js → FaceCollector_f475af9f_2.0.5.js} +159 -159
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{face_api_ebd7fa48_2.0.4.js → face_api_0e3ce8c8_2.0.5.js} +12823 -12646
- package/dist/{fingersApi_ae9e2572_2.0.4.js → fingersApi_df7ac79b_2.0.5.js} +12 -12
- package/dist/index.js +1 -1
- package/dist/{main_14ce11df_2.0.4.js → main_bce0667c_2.0.5.js} +6994 -6788
- package/package.json +2 -2
- /package/dist/{en-us_5ebe727c_2.0.4.js → en-us_5ebe727c_2.0.5.js} +0 -0
- /package/dist/{index-no-detector_c7c1d3a2_2.0.4.js → index-no-detector_c7c1d3a2_2.0.5.js} +0 -0
- /package/dist/{pt-br_cb19a314_2.0.4.js → pt-br_cb19a314_2.0.5.js} +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { u as D, $ as C, n as y, g, i as b, a as M, s as l, b as h, c as U, F, d as x, e as c, v, f as P, A as B, h as S, j as E, k as W, l as k, m as X, o as w, p as $, q as G } from "./main_bce0667c_2.0.5.js";
|
2
2
|
const d = D(C);
|
3
|
-
var
|
3
|
+
var V = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(V || {});
|
4
4
|
class s extends Error {
|
5
5
|
constructor(a, T) {
|
6
6
|
super(a), this.status = T;
|
@@ -73,7 +73,7 @@ async function K(n, a) {
|
|
73
73
|
"USER_CANCELLED"
|
74
74
|
/* USER_CANCELLED */
|
75
75
|
);
|
76
|
-
const i =
|
76
|
+
const i = q(T);
|
77
77
|
i.image = N?.content.image?.data, i.base64WSQ = N?.content.fingerprint.data, i.nfiqRating = (N?.content.score || 0) + 98, i.status = F.AVAILABLE;
|
78
78
|
const L = x(c());
|
79
79
|
let r, _ = !1;
|
@@ -100,14 +100,14 @@ async function K(n, a) {
|
|
100
100
|
/* EVALUATE_BIOMETRICS_NETWORK_ISSUE */
|
101
101
|
));
|
102
102
|
}
|
103
|
-
let
|
103
|
+
let R, f, O, A, u, o = E.LOW_QUALITY;
|
104
104
|
if (r) {
|
105
105
|
const e = r.bodyParts.find(
|
106
106
|
(t) => t.bodyPart === i.bodyPart
|
107
107
|
);
|
108
|
-
i.nfiqRating = e.quality, (e.quality > W() || e.status === "LOW_QUALITY") && (
|
108
|
+
i.nfiqRating = e.quality, (e.quality > W() || e.status === "LOW_QUALITY") && (R = !0, o = E.LOW_QUALITY), r.bodyParts.find((t) => t.status === "DUPLICATE") && (f = !0, o = E.DUPLICATE), r.bodyParts.find((t) => t.status === "FORBIDDEN") && (O = !0, o = E.FORBIDDEN), r.bodyParts.find((t) => t.status === "AGR") && (A = !0, o = E.AGR_DETECTED), r.bodyParts.find((t) => t.status === "AGR_NOT_MATCH") && (u = !0, o = E.AGR_NO_MATCH);
|
109
109
|
}
|
110
|
-
if (f ||
|
110
|
+
if (f || R || O || u || A || _) {
|
111
111
|
i.nfiqRating = -1, i.base64WSQ = "", i.image = "", i.status = F.AVAILABLE;
|
112
112
|
let e = "badFingerQualitySwal";
|
113
113
|
f ? e = "unknownDuplicateFingerSwal" : O ? e = "forbiddenFingerSwal" : A ? e = "agrFinger" : u && (e = "agrFingerNotMatched");
|
@@ -119,7 +119,7 @@ async function K(n, a) {
|
|
119
119
|
finger2: d(`${e}.${r.matchingFingers?.[1]}`)
|
120
120
|
}
|
121
121
|
});
|
122
|
-
const m =
|
122
|
+
const m = w();
|
123
123
|
return {
|
124
124
|
returnCode: o,
|
125
125
|
bodyParts: m,
|
@@ -127,13 +127,13 @@ async function K(n, a) {
|
|
127
127
|
message: t
|
128
128
|
};
|
129
129
|
}
|
130
|
-
const p =
|
130
|
+
const p = w();
|
131
131
|
return { returnCode: o, bodyParts: p, message: t };
|
132
132
|
}
|
133
|
-
return S(c()), l(!1),
|
133
|
+
return S(c()), l(!1), $(), { returnCode: E.CAPTURED, bodyParts: w() };
|
134
134
|
}
|
135
|
-
function
|
136
|
-
|
135
|
+
function q(n) {
|
136
|
+
G();
|
137
137
|
for (const a of c())
|
138
138
|
if (a.index === n)
|
139
139
|
return a.selected = !0, a;
|
@@ -141,6 +141,6 @@ function $(n) {
|
|
141
141
|
}
|
142
142
|
export {
|
143
143
|
s as CaptureApiError,
|
144
|
-
|
144
|
+
V as CaptureErrorStatusEnum,
|
145
145
|
K as captureSingleFinger
|
146
146
|
};
|
package/dist/index.js
CHANGED