@realeyes/verifeye-sdk 1.0.1 → 1.1.2

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  > React component library for embedding the [VerifEye](https://realeyes.ai/platform/) identity-verification flow into your web application.
4
4
 
5
- [![license: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENSE)
5
+ [![license: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
6
6
 
7
7
  ## Overview
8
8
 
@@ -41,4 +41,4 @@ This SDK captures camera images and processes facial/biometric data to perform v
41
41
 
42
42
  ## License
43
43
 
44
- Copyright © 2026 Realeyes OÜ. Licensed under the [Apache License 2.0](./LICENSE); see [`NOTICE`](./NOTICE). Use of the hosted VerifEye service is additionally governed by the [Realeyes Terms](https://realeyes.ai/terms-for-customers/).
44
+ Copyright © 2026 Realeyes OÜ. Licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0); see the `LICENSE` and `NOTICE` files included in the package. Use of the hosted VerifEye service is additionally governed by the [Realeyes Terms](https://realeyes.ai/terms-for-customers/).
@@ -8,7 +8,7 @@ class f {
8
8
  if (!(this.isInitialized && this.faceDetector))
9
9
  try {
10
10
  const e = await d.forVisionTasks(
11
- "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm"
11
+ "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
12
12
  );
13
13
  this.faceDetector = await m.createFromOptions(e, {
14
14
  baseOptions: {
@@ -59,18 +59,18 @@ class f {
59
59
  return;
60
60
  }
61
61
  this.canvas.width = e.videoWidth, this.canvas.height = e.videoHeight, this.ctx.drawImage(e, 0, 0);
62
- const l = this.faceDetector.detect(e);
63
- if (l.detections.length > 0) {
64
- const n = l.detections[0].categories[0].score, h = this.compressCanvasToJpeg(this.canvas);
62
+ const h = this.faceDetector.detect(e);
63
+ if (h.detections.length > 0) {
64
+ const n = h.detections[0].categories[0].score, l = this.compressCanvasToJpeg(this.canvas);
65
65
  if (n >= r) {
66
66
  cancelAnimationFrame(i), a({
67
67
  hasFace: !0,
68
- base64Image: h,
68
+ base64Image: l,
69
69
  confidence: n
70
70
  });
71
71
  return;
72
72
  }
73
- (!t || n > t.confidence) && (t = { image: h, confidence: n });
73
+ (!t || n > t.confidence) && (t = { image: l, confidence: n });
74
74
  }
75
75
  i = requestAnimationFrame(o);
76
76
  };