Files
trade/data/package.json
T
Rekey e252cbca9b feat(logger): 日志系统升级 — 双通道输出 + caller/traceId + 脱敏
- 开发环境 pino-pretty 彩色输出,生产环境 pino-roll 滚动写入 /var/log/trade/data
- mixin 自动附加调用位置(caller)和 traceId 到每条日志
- redact 自动脱敏 api_key/api_secret 等敏感字段
- 新增 withTrace() 支持异步上下文 traceId 传递
- 新增 pino-roll 依赖
2026-06-17 12:05:48 +08:00

42 lines
1012 B
JSON

{
"name": "trade-data",
"version": "0.1.0",
"description": "数字货币量化交易系统 - TypeScript 数据模块",
"type": "module",
"scripts": {
"dev": "bun run run/main.ts",
"dev:watch": "bun --watch run/main.ts",
"build": "tsc",
"start": "bun run run/main.ts",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint .",
"format": "prettier --write ."
},
"dependencies": {
"@timescaledb/typeorm": "^0.0.1",
"binance": "^3.5.9",
"ccxt": "^4.5.56",
"ioredis": "^5.11.1",
"pg": "^8.21.0",
"pino": "^10.3.1",
"pino-pretty": "^13.1.3",
"pino-roll": "^4.0.0",
"rxjs": "^7.8.2",
"typeorm": "^1.0.0",
"yaml": "^2.9.0"
},
"devDependencies": {
"@types/bun": "^1.3.14",
"@types/node": "^25.9.2",
"@types/pg": "^8.20.0",
"@types/ws": "^8.18.1",
"eslint": "^10.4.1",
"prettier": "^3.8.3",
"ts-node": "^10.9.2",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"vitest": "^4.1.8"
}
}