feat: 添加 ohash 和 systeminformation 依赖支持指纹与系统信息

- 添加 ohash 依赖并更新其版本至 ^2.0.11
- 添加 ohash 依赖以支持哈希功能
- 添加 ohask 和 systeminformation 依赖项并指定其来源为 catalog。
- 引入 ohash 和 systeminformation 库以支持指纹生成和系统信息获取。
This commit is contained in:
2026-01-23 15:59:07 +08:00
parent 0cab61af91
commit be4e8212ec
4 changed files with 6 additions and 0 deletions

View File

@@ -74,6 +74,7 @@
"name": "@furtherverse/utils", "name": "@furtherverse/utils",
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"ohash": "catalog:",
"systeminformation": "catalog:", "systeminformation": "catalog:",
}, },
"devDependencies": { "devDependencies": {
@@ -112,6 +113,7 @@
"drizzle-zod": "^0.8.3", "drizzle-zod": "^0.8.3",
"effect": "^3.19.15", "effect": "^3.19.15",
"nitro": "npm:nitro-nightly@3.0.1-20260122-201913-dfdff9e9", "nitro": "npm:nitro-nightly@3.0.1-20260122-201913-dfdff9e9",
"ohash": "^2.0.11",
"postgres": "^3.4.8", "postgres": "^3.4.8",
"react": "^19.2.3", "react": "^19.2.3",
"react-dom": "^19.2.3", "react-dom": "^19.2.3",

View File

@@ -49,6 +49,7 @@
"drizzle-zod": "^0.8.3", "drizzle-zod": "^0.8.3",
"effect": "^3.19.15", "effect": "^3.19.15",
"nitro": "npm:nitro-nightly@3.0.1-20260122-201913-dfdff9e9", "nitro": "npm:nitro-nightly@3.0.1-20260122-201913-dfdff9e9",
"ohash": "^2.0.11",
"postgres": "^3.4.8", "postgres": "^3.4.8",
"react": "^19.2.3", "react": "^19.2.3",
"react-dom": "^19.2.3", "react-dom": "^19.2.3",

View File

@@ -7,6 +7,7 @@
"#*": "./src/*" "#*": "./src/*"
}, },
"dependencies": { "dependencies": {
"ohash": "catalog:",
"systeminformation": "catalog:" "systeminformation": "catalog:"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -0,0 +1,2 @@
import { hash } from 'ohash'
import si from 'systeminformation'