Files
smirk-website/package.json
T
such-gitea 3b8f03eb9c fix(settings): read the v0.3 username response shape
The v0.3 backend answers GET /users/me/username with {"username": ...};
the legacy backend sent a bare string. The page put the object into state
and rendered it, so /settings threw for every signed-in user.

parseUsernameResponse accepts both shapes and returns only a string or
null. Legacy-only fields on /auth/me are optional. Adds node:test cases,
run with npm test.
2026-10-07 10:20:52 -04:00

30 lines
686 B
JSON

{
"name": "smirk-website",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint",
"test": "node --test --experimental-strip-types src/lib/*.test.ts"
},
"dependencies": {
"@such-software/smirk-dapp-api": "^0.3.0",
"next": "15.3.6",
"nostr-tools": "^2.23.9",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^9",
"eslint-config-next": "15.3.6",
"tailwindcss": "^4",
"typescript": "^5"
}
}