🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

detection-lib

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detection-lib - npm Package Compare versions

Comparing version

to
1.0.10

2

package.json
{
"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({