@tn3w/openage 1.0.1 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tn3w/openage",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Privacy-first age verification widget. On-device face analysis with liveness detection.",
5
5
  "type": "module",
6
6
  "main": "dist/openage.umd.js",
package/src/constants.js CHANGED
@@ -8,13 +8,14 @@ export const MEDIAPIPE_VISION = `${MEDIAPIPE_CDN}/vision_bundle.mjs`;
8
8
 
9
9
  export const MEDIAPIPE_MODEL =
10
10
  'https://storage.googleapis.com/mediapipe-models/' +
11
- 'face_landmarker/face_landmarker/float16/latest/' +
11
+ 'face_landmarker/face_landmarker/float16/1/' +
12
12
  'face_landmarker.task';
13
13
 
14
14
  export const FACEAPI_CDN =
15
15
  'https://cdn.jsdelivr.net/npm/' + 'face-api.js@0.22.2/dist/face-api.min.js';
16
16
 
17
- export const FACEAPI_MODEL_CDN = 'https://cdn.jsdelivr.net/npm/' + 'face-api.js@0.22.2/weights';
17
+ export const FACEAPI_MODEL_CDN =
18
+ 'https://cdn.jsdelivr.net/gh/' + 'justadudewhohacks/face-api.js@master/weights';
18
19
 
19
20
  export const MAX_RETRIES = 3;
20
21
  export const BURST_FRAMES = 5;