Files
myeasycms-v2/packages/shared/package.json
giancarlo 61b1edcdd9 Add useCsrfToken hook and update README
A new `useCsrfToken` hook has been added for fetching CSRF token from the meta tag. The shared package's exports have been updated to include this new hook. Additionally, extensive documentation on writing server actions and API route handlers, as well as the usage of Captcha token protection and CSRF token, has been added to the README file.
2024-04-22 11:56:42 +08:00

45 lines
992 B
JSON

{
"name": "@kit/shared",
"private": true,
"version": "0.1.0",
"scripts": {
"clean": "git clean -xdf .turbo node_modules",
"format": "prettier --check \"**/*.{ts,tsx}\"",
"lint": "eslint .",
"typecheck": "tsc --noEmit"
},
"prettier": "@kit/prettier-config",
"exports": {
"./logger": "./src/logger/index.ts",
"./utils": "./src/utils.ts",
"./hooks": "./src/hooks/index.ts"
},
"dependencies": {
"@tanstack/react-table": "^8.16.0",
"next": "14.3.0-canary.7",
"pino": "^8.20.0",
"tailwind-merge": "^2.3.0",
"zod": "^3.22.5"
},
"devDependencies": {
"@kit/eslint-config": "workspace:*",
"@kit/prettier-config": "workspace:*",
"@kit/tailwind-config": "workspace:*",
"@kit/tsconfig": "workspace:*"
},
"eslintConfig": {
"root": true,
"extends": [
"@kit/eslint-config/base",
"@kit/eslint-config/react"
]
},
"typesVersions": {
"*": {
"*": [
"src/*"
]
}
}
}