Files
lifeforge/packages/api/package.json
melvinchia3636 44988ebf95 feat(api): add useForgeMutation hook with automatic toast errors
Introduce useForgeMutation that wraps useMutation with:
- Automatic query invalidation from queryKey config
- Default error handling via common.fetch:failure locale
- setForgeMutationErrorHandler for global error toast setup
- Action translation support through common.fetch:action.* keys
2026-06-26 15:25:14 +08:00

32 lines
753 B
JSON

{
"name": "@lifeforge/api",
"version": "0.0.1",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
"scripts": {
"dev": "vite build --watch",
"types": "tsgo -b --noEmit",
"build": "rm -rf dist && bun types && vite build"
},
"dependencies": {
"axios": "^1.12.2",
"crypto-js": "^4.2.0",
"json-schema-to-ts": "^3.1.1",
"socket.io-client": "^4.8.1"
},
"devDependencies": {
"@types/crypto-js": "^4.2.2",
"@vitejs/plugin-react": "^4.7.0",
"vite-plugin-dts": "^4.5.4"
},
"peerDependencies": {
"@tanstack/react-query": "^5.90.2",
"react": "^19.2.0",
"react-i18next": "^15.0.0",
"zod": "^4.3.5"
}
}