- Upgraded @bytelyst/auth middleware to throw ServiceError types (UnauthorizedError, ForbiddenError) - Added @bytelyst/errors as dependency to auth package - 11 new middleware tests (extractAuth + requireRole) - 4 new E2E tests (full login → JWT → auth → role check flow) - Refactored tracker-service lib/auth.ts from 48-line local impl to 1-line re-export - Added @bytelyst/auth as tracker-service dependency - All 277 tests pass, 0 regressions
37 lines
989 B
JSON
37 lines
989 B
JSON
{
|
|
"name": "@lysnrai/tracker-service",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Tracker Service — feature requests, bugs, tasks management (product-agnostic)",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/server.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/server.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint src/"
|
|
},
|
|
"dependencies": {
|
|
"@bytelyst/auth": "workspace:*",
|
|
"@bytelyst/config": "workspace:*",
|
|
"@bytelyst/cosmos": "workspace:*",
|
|
"@bytelyst/errors": "workspace:*",
|
|
"@bytelyst/fastify-core": "workspace:*",
|
|
"@azure/cosmos": "^4.2.0",
|
|
"@fastify/cors": "^10.0.2",
|
|
"@fastify/rate-limit": "^10.3.0",
|
|
"@fastify/swagger": "^9.4.2",
|
|
"fastify": "^5.2.1",
|
|
"fastify-metrics": "^10.3.0",
|
|
"jose": "^6.0.8",
|
|
"zod": "^3.24.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.12.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.3",
|
|
"vitest": "^3.0.5"
|
|
}
|
|
}
|