- Create @reviq/utils package with PBKDF2-SHA256 password hashing compatible with Cloudflare Workers (uses crypto.subtle) - Update api-server and CLI to use new utils package for consistent password hashing format across the codebase - Add pino logging to api-server for better request debugging - Make login request tokens cryptographically secure base58 strings instead of database IDs - Add migration to make login_requests.token non-nullable with unique constraint - Fix RPCLink URL construction for client-side API calls - Add db:codegen script to root package.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"name": "@reviq/api-server",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun run --hot src/index.ts",
|
|
"build": "bun build src/index.ts --compile --outfile dist/api-server",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint . --cache",
|
|
"clean": "rm -rf dist .eslintcache",
|
|
"test:e2e": "bun test src/__tests__/e2e --no-parallel",
|
|
"test:unit": "bun test src/__tests__/unit"
|
|
},
|
|
"dependencies": {
|
|
"@formatjs/intl-durationformat": "^0.9.2",
|
|
"@noble/hashes": "^2.0.1",
|
|
"@orpc/experimental-pino": "^1.13.2",
|
|
"@orpc/server": "^1.13.2",
|
|
"@reviq/api-contract": "workspace:*",
|
|
"@reviq/db": "workspace:*",
|
|
"@reviq/db-schema": "workspace:*",
|
|
"@reviq/utils": "workspace:*",
|
|
"@simplewebauthn/server": "^13.2.2",
|
|
"@simplewebauthn/types": "^12.0.0",
|
|
"kysely": "^0.28.2",
|
|
"pino": "^10.1.0",
|
|
"postmark": "^4.0.5",
|
|
"zxcvbn": "^4.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"@macalinao/eslint-config": "catalog:",
|
|
"@macalinao/tsconfig": "catalog:",
|
|
"@reviq/virtual-authenticator": "workspace:*",
|
|
"@types/bun": "catalog:",
|
|
"@types/pg": "^8.16.0",
|
|
"@types/zxcvbn": "^4.4.5",
|
|
"eslint": "catalog:",
|
|
"pg": "^8.16.3",
|
|
"pino-pretty": "^13.1.3",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|