mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
- Introduced new test files for permission checks, including `check-permission.test.ts`, `enterprise-only-resources.test.ts`, `resolve-permissions.test.ts`, and `service-access.test.ts`. - Implemented permission checks in various components to ensure actions are gated by user permissions, including `ShowTraefikConfig`, `UpdateTraefikConfig`, `ShowVolumes`, `ShowDomains`, and others. - Enhanced the logic for displaying UI elements based on user permissions, ensuring that only authorized users can access or modify resources.
121 lines
3.6 KiB
JSON
121 lines
3.6 KiB
JSON
{
|
|
"name": "@dokploy/server",
|
|
"version": "1.0.0",
|
|
"main": "./src/index.ts",
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./db": {
|
|
"import": "./src/db/index.ts",
|
|
"require": "./dist/db/index.cjs.js"
|
|
},
|
|
"./setup/*": {
|
|
"import": "./src/setup/*.ts",
|
|
"require": "./dist/setup/index.cjs.js"
|
|
},
|
|
"./constants": {
|
|
"import": "./src/constants/index.ts",
|
|
"require": "./dist/constants.cjs.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "npm run switch:prod && rimraf dist && tsc --project tsconfig.server.json && tsc-alias -p tsconfig.server.json",
|
|
"build:types": "tsc --emitDeclarationOnly --experimenta-dts",
|
|
"switch:dev": "node scripts/switchToSrc.js",
|
|
"switch:prod": "node scripts/switchToDist.js",
|
|
"dev": "rimraf dist && pnpm esbuild && tsc --emitDeclarationOnly --outDir dist -p tsconfig.server.json",
|
|
"esbuild": "tsx ./esbuild.config.ts && tsc --project tsconfig.server.json --emitDeclarationOnly ",
|
|
"typecheck": "tsc --noEmit",
|
|
"dbml:generate": "npx tsx src/db/schema/dbml.ts",
|
|
"generate:drizzle": "pnpm dlx @better-auth/cli generate --output auth-schema2.ts --config src/lib/auth-cli.ts"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/anthropic": "^3.0.44",
|
|
"@ai-sdk/azure": "^3.0.30",
|
|
"@ai-sdk/cohere": "^3.0.21",
|
|
"@ai-sdk/deepinfra": "^2.0.34",
|
|
"@ai-sdk/mistral": "^3.0.20",
|
|
"@ai-sdk/openai": "^3.0.29",
|
|
"@ai-sdk/openai-compatible": "^2.0.30",
|
|
"@better-auth/api-key": "1.5.4",
|
|
"@better-auth/sso": "1.5.4",
|
|
"@better-auth/utils": "0.3.1",
|
|
"@faker-js/faker": "^8.4.1",
|
|
"@octokit/auth-app": "^6.1.3",
|
|
"@octokit/rest": "^20.1.2",
|
|
"@oslojs/crypto": "1.0.1",
|
|
"@oslojs/encoding": "1.1.0",
|
|
"@react-email/components": "^0.0.21",
|
|
"@trpc/server": "11.10.0",
|
|
"adm-zip": "^0.5.16",
|
|
"ai": "^6.0.86",
|
|
"ai-sdk-ollama": "^3.7.0",
|
|
"bcrypt": "5.1.1",
|
|
"better-auth": "1.5.4",
|
|
"better-call": "2.0.2",
|
|
"bl": "6.0.11",
|
|
"boxen": "^7.1.1",
|
|
"date-fns": "3.6.0",
|
|
"dockerode": "4.0.2",
|
|
"dotenv": "16.4.5",
|
|
"drizzle-dbml-generator": "0.10.0",
|
|
"drizzle-orm": "0.45.1",
|
|
"drizzle-zod": "0.5.1",
|
|
"lodash": "4.17.21",
|
|
"micromatch": "4.0.8",
|
|
"nanoid": "3.3.11",
|
|
"node-os-utils": "2.0.1",
|
|
"node-pty": "1.0.0",
|
|
"node-schedule": "2.1.1",
|
|
"nodemailer": "6.9.14",
|
|
"octokit": "3.1.2",
|
|
"pino": "9.4.0",
|
|
"pino-pretty": "11.2.2",
|
|
"postgres": "3.4.4",
|
|
"public-ip": "6.0.2",
|
|
"qrcode": "^1.5.4",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"resend": "^6.0.2",
|
|
"semver": "7.7.3",
|
|
"shell-quote": "^1.8.1",
|
|
"slugify": "^1.6.6",
|
|
"ssh2": "1.15.0",
|
|
"toml": "3.0.0",
|
|
"ws": "8.16.0",
|
|
"yaml": "2.8.1",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@better-auth/cli": "1.4.21",
|
|
"@types/adm-zip": "^0.5.7",
|
|
"@types/bcrypt": "5.0.2",
|
|
"@types/dockerode": "3.3.23",
|
|
"@types/lodash": "4.17.4",
|
|
"@types/micromatch": "4.0.9",
|
|
"@types/node": "^24.4.0",
|
|
"@types/node-schedule": "2.1.6",
|
|
"@types/nodemailer": "^6.4.17",
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/react": "^18.3.5",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@types/semver": "7.7.1",
|
|
"@types/shell-quote": "^1.7.5",
|
|
"@types/ssh2": "1.15.1",
|
|
"@types/ws": "8.5.10",
|
|
"drizzle-kit": "^0.31.4",
|
|
"esbuild": "0.20.2",
|
|
"esbuild-plugin-alias": "0.2.1",
|
|
"postcss": "^8.5.3",
|
|
"rimraf": "6.1.3",
|
|
"tailwindcss": "^3.4.17",
|
|
"tsc-alias": "1.8.10",
|
|
"tsx": "^4.16.2",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"packageManager": "pnpm@10.22.0",
|
|
"engines": {
|
|
"node": "^24.4.0",
|
|
"pnpm": ">=10.22.0"
|
|
}
|
|
} |