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.
@@ -1,6 +1,6 @@
1
- import { o as D, X 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, u as X, m as R, p as G, q as V } from "./main_14ce11df_2.0.4.js";
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 q = /* @__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))(q || {});
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 = $(T);
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 w, f, O, A, u, o = E.LOW_QUALITY;
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") && (w = !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);
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 || w || O || u || A || _) {
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 = R();
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 = R();
130
+ const p = w();
131
131
  return { returnCode: o, bodyParts: p, message: t };
132
132
  }
133
- return S(c()), l(!1), G(), { returnCode: E.CAPTURED, bodyParts: R() };
133
+ return S(c()), l(!1), $(), { returnCode: E.CAPTURED, bodyParts: w() };
134
134
  }
135
- function $(n) {
136
- V();
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
- q as CaptureErrorStatusEnum,
144
+ V as CaptureErrorStatusEnum,
145
145
  K as captureSingleFinger
146
146
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aY as f } from "./main_14ce11df_2.0.4.js";
1
+ import { aY as f } from "./main_bce0667c_2.0.5.js";
2
2
  export {
3
3
  f as default
4
4
  };