@microblink/biometrics 1000.0.1 → 1000.0.3

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 CHANGED
@@ -253,6 +253,8 @@ Every guided and headless capture returns `FaceCaptureResult`:
253
253
  - `captureFrame` is the optional engine-produced JPEG frame for face matching.
254
254
  - `livenessFrames` contains ordered engine-produced JPEG frames for liveness checks.
255
255
  - `livenessBatchSignature` contains the optional batch signature.
256
+ - `signatureVersion` is the signature scheme of the signed frames.
257
+ - `captureFrameMetadata` is the JSON metadata for the signed `captureFrame`.
256
258
 
257
259
  Frame and batch signatures are present only when the native engine produces them. When the engine does not produce capture or liveness frames, `captureFrame` is undefined and `livenessFrames` is empty.
258
260
 
@@ -185,17 +185,17 @@ function ve(e, t) {
185
185
  return n({ sessionNumber: 0 });
186
186
  }
187
187
  //#endregion
188
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/checkPrivateRedeclaration.js
188
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/checkPrivateRedeclaration.js
189
189
  function ye(e, t) {
190
190
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
191
191
  }
192
192
  //#endregion
193
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/classPrivateMethodInitSpec.js
193
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateMethodInitSpec.js
194
194
  function be(e, t) {
195
195
  ye(e, t), t.add(e);
196
196
  }
197
197
  //#endregion
198
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
198
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
199
199
  function y(e) {
200
200
  "@babel/helpers - typeof";
201
201
  return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -205,7 +205,7 @@ function y(e) {
205
205
  }, y(e);
206
206
  }
207
207
  //#endregion
208
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
208
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
209
209
  function xe(e, t) {
210
210
  if (y(e) != "object" || !e) return e;
211
211
  var n = e[Symbol.toPrimitive];
@@ -217,13 +217,13 @@ function xe(e, t) {
217
217
  return (t === "string" ? String : Number)(e);
218
218
  }
219
219
  //#endregion
220
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
220
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
221
221
  function Se(e) {
222
222
  var t = xe(e, "string");
223
223
  return y(t) == "symbol" ? t : t + "";
224
224
  }
225
225
  //#endregion
226
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
226
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
227
227
  function b(e, t, n) {
228
228
  return (t = Se(t)) in e ? Object.defineProperty(e, t, {
229
229
  value: n,
@@ -233,23 +233,23 @@ function b(e, t, n) {
233
233
  }) : e[t] = n, e;
234
234
  }
235
235
  //#endregion
236
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/classPrivateFieldInitSpec.js
236
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldInitSpec.js
237
237
  function x(e, t, n) {
238
238
  ye(e, t), t.set(e, n);
239
239
  }
240
240
  //#endregion
241
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/assertClassBrand.js
241
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/assertClassBrand.js
242
242
  function S(e, t, n) {
243
243
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
244
244
  throw TypeError("Private element is not present on this object");
245
245
  }
246
246
  //#endregion
247
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/classPrivateFieldGet2.js
247
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldGet2.js
248
248
  function C(e, t) {
249
249
  return e.get(S(e, t));
250
250
  }
251
251
  //#endregion
252
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/classPrivateFieldSet2.js
252
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldSet2.js
253
253
  function w(e, t, n) {
254
254
  return e.set(S(e, t), n), n;
255
255
  }
@@ -513,22 +513,14 @@ var Ve = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Ue =
513
513
  o = !0, i(S(Y, this, Qe).call(this, t));
514
514
  }, a) : void 0;
515
515
  o && i(S(Y, this, Qe).call(this, t)), e.then((e) => {
516
- if (o) {
517
- n && Promise.resolve().then(() => n(e)).catch(() => void 0);
518
- return;
519
- }
520
- clearTimeout(s), r(e);
516
+ o ? n && Promise.resolve().then(() => n(e)).catch(() => void 0) : (clearTimeout(s), r(e));
521
517
  }, (e) => {
522
518
  o || (clearTimeout(s), i(e));
523
519
  });
524
520
  });
525
521
  }
526
522
  async waitForCleanup(e, t) {
527
- if (t.code === "INITIALIZATION_TIMEOUT") {
528
- e.catch(() => void 0);
529
- return;
530
- }
531
- await this.wait(e).catch(() => void 0);
523
+ t.code === "INITIALIZATION_TIMEOUT" ? e.catch(() => void 0) : await this.wait(e).catch(() => void 0);
532
524
  }
533
525
  reportError(e, t = "sdk") {
534
526
  return S(Y, this, Ze).call(this, _(e, {
@@ -679,11 +671,7 @@ function at(e, ...t) {
679
671
  }
680
672
  }
681
673
  async function ot(e, t) {
682
- if (t && (await e.getCameraDevices()).some((e) => e.deviceInfo.deviceId === t)) {
683
- await e.startCameraStream({ preferredCamera: (e) => e.find((e) => e.deviceInfo.deviceId === t) });
684
- return;
685
- }
686
- await e.startCameraStream({ preferredFacing: "front" });
674
+ t && (await e.getCameraDevices()).some((e) => e.deviceInfo.deviceId === t) ? await e.startCameraStream({ preferredCamera: (e) => e.find((e) => e.deviceInfo.deviceId === t) }) : await e.startCameraStream({ preferredFacing: "front" });
687
675
  }
688
676
  async function st(e) {
689
677
  let t = new Xe({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microblink/biometrics",
3
- "version": "1000.0.1",
3
+ "version": "1000.0.3",
4
4
  "author": "Microblink",
5
5
  "type": "module",
6
6
  "main": "./dist/biometrics.js",
@@ -17,8 +17,8 @@
17
17
  "solid-zustand": "^2.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@microblink/biometrics-core": "1000.0.1",
21
- "@microblink/biometrics-ux-manager": "1000.0.1",
20
+ "@microblink/biometrics-core": "1000.0.3",
21
+ "@microblink/biometrics-ux-manager": "1000.0.3",
22
22
  "@microblink/camera-manager": "^8.1.0"
23
23
  },
24
24
  "access": "public",