detection-lib
Advanced tools
Comparing version
{ | ||
"name": "detection-lib", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"main": "src/DetectorFactory.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -9,5 +9,9 @@ import { Detector } from './types.js'; | ||
this.faceDetector = new FaceDetection({ | ||
locateFile: (file) => | ||
`https://cdn.jsdelivr.net/npm/@mediapipe/face_detection/${file}`, | ||
}); | ||
locateFile: (file) => { | ||
if (file.endsWith('.wasm')) return new URL('./models/face_detection_solution_simd_wasm_bin.wasm', import.meta.url).href; | ||
if (file.endsWith('.data')) return new URL('./models/face_detection_solution_simd_wasm_bin.data', import.meta.url).href; | ||
if (file.endsWith('.js')) return new URL('./models/face_detection_solution_simd_wasm_bin.js', import.meta.url).href; | ||
if (file.endsWith('.tflite')) return new URL('./models/face_detection_short_range.tflite', import.meta.url).href; | ||
return file; | ||
} }); | ||
@@ -14,0 +18,0 @@ this.faceDetector.setOptions({ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
6306282
0.01%1121
0.36%2
-33.33%