The update simplifies accessing environment keys and role warnings in Supabase clients by moving them to new functions 'getSupabaseClientKeys' and 'getServiceRoleKey'. The redundancy in the code is reduced promoting clearer and more maintainable code. The '@epic-web/invariant' import has been removed from files as it is no longer needed.
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"name": "@kit/supabase",
|
|
"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": {
|
|
".": "./src/index.ts",
|
|
"./middleware-client": "./src/clients/middleware.client.ts",
|
|
"./server-actions-client": "./src/clients/server-actions.client.ts",
|
|
"./route-handler-client": "./src/clients/route-handler.client.ts",
|
|
"./server-component-client": "./src/clients/server-component.client.ts",
|
|
"./browser-client": "./src/clients/browser.client.ts",
|
|
"./check-requires-mfa": "./src/check-requires-mfa.ts",
|
|
"./require-user": "./src/require-user.ts",
|
|
"./hooks/*": "./src/hooks/*.ts",
|
|
"./components/*": "./src/components/*.tsx",
|
|
"./database": "./src/database.types.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@kit/eslint-config": "workspace:*",
|
|
"@kit/prettier-config": "workspace:*",
|
|
"@kit/tailwind-config": "workspace:*",
|
|
"@kit/tsconfig": "workspace:*",
|
|
"@supabase/gotrue-js": "2.62.2",
|
|
"@supabase/ssr": "^0.3.0",
|
|
"@supabase/supabase-js": "^2.42.3",
|
|
"@tanstack/react-query": "5.29.0",
|
|
"@types/react": "^18.2.77",
|
|
"next": "14.2.0",
|
|
"react": "18.2.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"peerDependencies": {
|
|
"@supabase/ssr": "^0.3.0",
|
|
"@supabase/supabase-js": "^2.42.0",
|
|
"@tanstack/react-query": "^5.28.6",
|
|
"next": "^14.1.4",
|
|
"react": "^18.2.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"extends": [
|
|
"@kit/eslint-config/base",
|
|
"@kit/eslint-config/react"
|
|
]
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"*": [
|
|
"src/*"
|
|
]
|
|
}
|
|
}
|
|
}
|