@camera.ui/camera-ui-wasm-motion
Advanced tools
Comparing version 0.0.1 to 0.0.2
import { instantiate } from '@assemblyscript/loader'; | ||
import fs from 'node:fs'; | ||
import { resolve } from 'node:path'; | ||
import { dirname, resolve } from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
const defaultThreshold = 50; | ||
@@ -9,3 +10,4 @@ const defaultBlurRadius = 9; | ||
const defaultReferenceFrameFrequency = 5; | ||
const __dirname = new URL('.', import.meta.url).pathname; | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
export class CameraDetector { | ||
@@ -12,0 +14,0 @@ cameraStorage; |
{ | ||
"displayName": "WASM Motion", | ||
"name": "@camera.ui/camera-ui-wasm-motion", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "camera.ui wasm motion detection plugin", | ||
@@ -19,6 +19,6 @@ "author": "seydx (https://github.com/seydx/camera.ui)", | ||
"devDependencies": { | ||
"@camera.ui/types": "^0.0.53", | ||
"@camera.ui/types": "^0.0.55", | ||
"@rushstack/eslint-patch": "^1.10.4", | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/node": "^22.1.0", | ||
"@types/node": "^22.2.0", | ||
"@types/ws": "^8.5.12", | ||
@@ -40,3 +40,3 @@ "@typescript-eslint/eslint-plugin": "^8.0.1", | ||
"typescript": "^5.5.4", | ||
"updates": "^16.3.7" | ||
"updates": "^16.4.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "bugs": { |
Sorry, the diff of this file is not supported yet
53101
604