@camera.ui/camera-ui-rust-motion 0.0.31 → 0.0.33

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.
Files changed (2) hide show
  1. package/bundle.zip +0 -0
  2. package/package.json +12 -36
package/bundle.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,48 +1,35 @@
1
1
  {
2
- "displayName": "RUST Motion",
2
+ "displayName": "Rust Motion",
3
3
  "name": "@camera.ui/camera-ui-rust-motion",
4
- "version": "0.0.31",
4
+ "version": "0.0.33",
5
5
  "description": "Lightning-fast motion detection written in Rust. Exceptional performance and reliability for continuous monitoring.",
6
6
  "author": "seydx (https://github.com/seydx/camera.ui)",
7
7
  "main": "./dist/index.js",
8
8
  "type": "commonjs",
9
9
  "scripts": {
10
10
  "build": "rimraf dist && tsc",
11
- "build:rust": "napi build --release",
12
- "build:macos": "npm run build:macos-arm64 && npm run build:macos-x64 && npm run build:macos-universal",
13
- "build:macos-arm64": "cross-env RUSTFLAGS='-C target-feature=+neon' npm run build:rust -- --target aarch64-apple-darwin && mv detector.node rust_detector_macos_arm64.node",
14
- "build:macos-x64": "cross-env RUSTFLAGS='-C target-feature=+sse4.1' npm run build:rust -- --target x86_64-apple-darwin && mv detector.node rust_detector_macos_x64.node",
15
- "build:macos-universal": "lipo -create -output detector.node rust_detector_macos_arm64.node rust_detector_macos_x64.node",
16
- "build:windows-x64": "cross-env RUSTFLAGS=\"-C target-feature=+sse4.1\" npm run build:rust -- --target x86_64-pc-windows-msvc",
17
- "build:linux-x64": "cross-env RUSTFLAGS='-C target-feature=+sse4.1' npm run build:rust -- --target x86_64-unknown-linux-gnu",
18
- "build:linux-arm64": "cross-env RUSTFLAGS='-C target-feature=+neon' npm run build:rust -- --target aarch64-unknown-linux-gnu",
19
- "build:freebsd-x64": "cross-env RUSTFLAGS='-C target-feature=+sse4.1' npm run build:rust -- --target x86_64-unknown-freebsd",
20
- "build:riscv-x64": "cross-env npm run build:rust -- --target riscv64gc-unknown-linux-gnu",
21
11
  "bundle": "npm run format && npm run lint:fix && npm run build && cui bundle",
22
12
  "bundle:dev": "npm run format && npm run lint:fix && npm run build && cross-env MODE=development cui bundle",
23
- "clean": "cargo clean && rimraf --glob *.node",
24
- "clean:cargo": "cargo clean",
25
- "format": "prettier --write 'src/' --ignore-unknown --no-error-on-unmatched-pattern && cargo fmt",
13
+ "format": "prettier --write \"src/\" --ignore-unknown --no-error-on-unmatched-pattern",
26
14
  "install-updates": "npm i --save",
27
- "lint": "cargo clippy && eslint .",
28
- "lint:fix": "cargo clippy --fix --allow-dirty && eslint --fix .",
15
+ "lint": "eslint .",
16
+ "lint:fix": "eslint --fix .",
29
17
  "prepublishOnly": "node -e \"if(!process.env.SAFE_PUBLISH){console.error('Error: Please use @camera.ui/cli to publish the plugin:\\n npm run publish:alpha\\n npm run publish:beta\\n npm run publish:latest\\n');process.exit(1)}\"",
30
18
  "publish:alpha": "npm i --save && npm run bundle && cui publish --alpha",
31
19
  "publish:beta": "npm i --save && npm run bundle && cui publish --beta",
32
20
  "publish:latest": "npm i --save && npm run bundle && cui publish --latest",
33
21
  "update": "updates --update ./"
34
22
  },
23
+ "dependencies": {
24
+ "@camera.ui/rust-detector": "^0.0.3"
25
+ },
35
26
  "bugs": {
36
27
  "url": "https://github.com/seydx/camera.ui/issues"
37
28
  },
38
- "engines": {
39
- "camera.ui": ">=0.0.50",
40
- "node": ">=22.0.0"
41
- },
42
29
  "homepage": "https://github.com/seydx/camera.ui#readme",
43
30
  "keywords": [
44
31
  "camera-ui-plugin",
45
- "smtp",
32
+ "rust",
46
33
  "motion",
47
34
  "detection"
48
35
  ],
@@ -51,20 +38,9 @@
51
38
  "type": "git",
52
39
  "url": "git+https://github.com/seydx/camera.ui.git"
53
40
  },
54
- "napi": {
55
- "name": "detector",
56
- "triples": {
57
- "additional": [
58
- "aarch64-apple-darwin",
59
- "x86_64-apple-darwin",
60
- "universal-apple-darwin",
61
- "x86_64-pc-windows-msvc",
62
- "x86_64-unknown-linux-gnu",
63
- "aarch64-unknown-linux-gnu",
64
- "x86_64-unknown-freebsd",
65
- "riscv64gc-unknown-linux-gnu"
66
- ]
67
- }
41
+ "engines": {
42
+ "camera.ui": ">=0.0.50",
43
+ "node": ">=22.0.0"
68
44
  },
69
45
  "camera.ui": {
70
46
  "extensions": [