Files
supabase__server/package.json
Tomas Pozo 96a72c5810 feat(gates/postgres): add withPostgres and withPostgresAdmin
RLS-scoped (ctx.postgres) and RLS-bypassing (ctx.postgresAdmin) pg clients,
exposed at the ./gates/postgres subpath. Node/Deno-only; the pg import is
confined to this module so the package root stays edge-safe. Each operation
owns its connection lifecycle (self-contained short transactions), so no
after-handler cleanup hook is required. The user client's connection role is
clamped to authenticated/anon and never service_role.
2026-06-06 21:55:56 -05:00

157 lines
4.5 KiB
JSON

{
"name": "@supabase/server",
"version": "1.1.0",
"description": "Server-side utilities for Supabase. Handles auth, client creation, and context injection so you write business logic, not boilerplate.",
"keywords": [
"edge",
"functions",
"supabase"
],
"homepage": "https://github.com/supabase/server#readme",
"bugs": {
"url": "https://github.com/supabase/server/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/supabase/server.git"
},
"license": "MIT",
"author": "supabase",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./core": {
"types": "./dist/core/index.d.mts",
"import": "./dist/core/index.mjs",
"require": "./dist/core/index.cjs"
},
"./core/adapters": {
"types": "./dist/core/adapters/index.d.mts",
"import": "./dist/core/adapters/index.mjs",
"require": "./dist/core/adapters/index.cjs"
},
"./gates/auth-hook": {
"types": "./dist/gates/auth-hook/index.d.mts",
"import": "./dist/gates/auth-hook/index.mjs",
"require": "./dist/gates/auth-hook/index.cjs"
},
"./gates/feature-flag": {
"types": "./dist/gates/feature-flag/index.d.mts",
"import": "./dist/gates/feature-flag/index.mjs",
"require": "./dist/gates/feature-flag/index.cjs"
},
"./gates/postgres": {
"types": "./dist/gates/postgres/index.d.mts",
"import": "./dist/gates/postgres/index.mjs",
"require": "./dist/gates/postgres/index.cjs"
},
"./adapters/hono": {
"types": "./dist/adapters/hono/index.d.mts",
"import": "./dist/adapters/hono/index.mjs",
"require": "./dist/adapters/hono/index.cjs"
},
"./adapters/h3": {
"types": "./dist/adapters/h3/index.d.mts",
"import": "./dist/adapters/h3/index.mjs",
"require": "./dist/adapters/h3/index.cjs"
},
"./adapters/elysia": {
"types": "./dist/adapters/elysia/index.d.mts",
"import": "./dist/adapters/elysia/index.mjs",
"require": "./dist/adapters/elysia/index.cjs"
},
"./adapters/nestjs": {
"types": "./dist/adapters/nestjs/index.d.mts",
"import": "./dist/adapters/nestjs/index.mjs",
"require": "./dist/adapters/nestjs/index.cjs"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"types": "./dist/index.d.cts",
"sideEffects": false,
"files": [
"dist",
"docs",
"skills"
],
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@11.1.2+sha512.415a1cc25974731e75455c1468371be74c5aa5fb7621b50d4056d222451609f11412f23fd602e6169f1e060466641f798597e1be961a10688836a67b16569499",
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"docs": "typedoc",
"format": "prettier --write .",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"prepare": "simple-git-hooks",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit && tsc --noEmit -p src/adapters/nestjs"
},
"simple-git-hooks": {
"pre-commit": "pnpm pretty-quick --staged",
"commit-msg": "pnpm commitlint --edit \"$1\""
},
"peerDependencies": {
"@nestjs/common": "^10.0.0 || ^11.0.0",
"@supabase/supabase-js": "^2.0.0",
"elysia": "^1.4.0",
"h3": "^2.0.0",
"hono": "^4.0.0"
},
"peerDependenciesMeta": {
"@nestjs/common": {
"optional": true
},
"h3": {
"optional": true
},
"hono": {
"optional": true
},
"elysia": {
"optional": true
}
},
"devDependencies": {
"@commitlint/cli": "^20.4.2",
"@commitlint/config-conventional": "^20.4.2",
"@nestjs/common": "^11.1.19",
"@nestjs/core": "^11.1.19",
"@nestjs/platform-express": "^11.1.19",
"@nestjs/platform-fastify": "^11.1.19",
"@nestjs/testing": "^11.1.19",
"@supabase/supabase-js": "^2.105.4",
"@swc/core": "^1.15.33",
"@types/pg": "^8.20.0",
"@types/supertest": "^7.2.0",
"elysia": "^1.4.0",
"eslint": "^10.0.2",
"h3": "2.0.1-rc.20",
"hono": "^4.12.5",
"prettier": "3.8.1",
"pretty-quick": "^4.2.2",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"simple-git-hooks": "^2.13.1",
"supertest": "^7.2.2",
"tsdown": "^0.20.3",
"typedoc": "^0.28.19",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1",
"unplugin-swc": "^1.5.9",
"vitest": "^4.0.18"
},
"dependencies": {
"jose": "^6.2.0",
"pg": "^8.21.0"
}
}