The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
omit passwordHash from response
Kiran Kb5ccdcde632e
diff --git a/apps/web/lib/prisma/index.ts b/apps/web/lib/prisma/index.tsindex 8ba8a7c680..b794fe7337 100644--- a/apps/web/lib/prisma/index.ts+++ b/apps/web/lib/prisma/index.ts@@ -1,10 +1,18 @@import { PrismaClient } from "@prisma/client";// serverless prisma-export const prisma = global.prisma || new PrismaClient();+export const prisma =+ global.prisma ||+ new PrismaClient({+ omit: {+ user: { passwordHash: true },+ },+ });declare global {- var prisma: PrismaClient | undefined;+ var prisma:+ | PrismaClient<{ omit: { user: { passwordHash: true } } }>+ | undefined;}if (process.env.NODE_ENV === "development") global.prisma = prisma;diff --git a/apps/web/package.json b/apps/web/package.jsonindex 5ef9a6887e..4bb1ee0b2f 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -24,7 +24,7 @@"@next-auth/prisma-adapter": "^1.0.5","@planetscale/database": "^1.18.0","@prisma/adapter-planetscale": "^5.13.0",- "@prisma/client": "^5.15.1",+ "@prisma/client": "5.16.2","@react-email/components": "^0.0.14","@react-email/render": "^0.0.12","@sindresorhus/slugify": "^2.2.1",@@ -127,7 +127,7 @@"papaparse": "^5.4.1","postcss": "^8.4.31","postcss-import": "^15.1.0",- "prisma": "^5.15.1",+ "prisma": "5.16.2","tailwindcss": "^3.4.4","tsx": "^3.14.0","turbo": "^1.10.14",diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prismaindex ef734ac9e4..11a85c12ea 100644--- a/apps/web/prisma/schema.prisma+++ b/apps/web/prisma/schema.prisma@@ -9,7 +9,7 @@ datasource db {generator client {provider = "prisma-client-js"- previewFeatures = ["fullTextSearch", "fullTextIndex", "driverAdapters"]+ previewFeatures = ["fullTextSearch", "fullTextIndex", "driverAdapters", "omitApi"]}model User {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e1f9cadde5..fea818a549 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -61,7 +61,7 @@ importers:version: 3.9.0([email protected])'@next-auth/prisma-adapter':specifier: ^1.0.5- version: 1.0.5(@prisma/[email protected])([email protected])+ version: 1.0.5(@prisma/[email protected])([email protected])'@planetscale/database':specifier: ^1.18.0version: 1.18.0@@ -69,8 +69,8 @@ importers:specifier: ^5.13.0version: 5.13.0(@planetscale/[email protected])'@prisma/client':- specifier: ^5.15.1- version: 5.15.1([email protected])+ specifier: 5.16.2+ version: 5.16.2([email protected])'@react-email/components':specifier: ^0.0.14version: 0.0.14(@types/[email protected])([email protected])@@ -373,8 +373,8 @@ importers:specifier: ^15.1.0version: 15.1.0([email protected])prisma:- specifier: ^5.15.1- version: 5.15.1+ specifier: 5.16.2+ version: 5.16.2tailwindcss:specifier: ^3.4.4version: 3.4.4@@ -4310,13 +4310,13 @@ packages:sparse-bitfield: 3.0.3dev: falseresolution: {integrity: sha512-VqMS11IxPXrPGXw6Oul6jcyS/n8GLOWzRMrPr3EMdtD6eOalM6zz05j08PcNiis8QzkfuYnCv49OvufTuaEwYQ==}peerDependencies:'@prisma/client': '>=2.26.0 || >=3'next-auth: ^4dependencies:- '@prisma/client': 5.15.1([email protected])+ '@prisma/client': 5.16.2([email protected])dev: false@@ -4765,8 +4765,8 @@ packages:'@prisma/driver-adapter-utils': 5.13.0dev: false- /@prisma/[email protected]([email protected]):- resolution: {integrity: sha512-fmZRGmsUJ9+VwC/AvfP/PwdpD0xAEyPvNsD9/B3+GYpETq9VejVRT3PiqNvl76q1uYYzNZeo8u/LmzzTetHSEg==}+ /@prisma/[email protected]([email protected]):+ resolution: {integrity: sha512-+1lmkhR9gHWcTC5oghm2ZKpWljyWdzfazCVlLKUWXVmwHSf52g81aZ8qb6Km5Bs025yBi7puLp3qSLEvktoUtw==}engines: {node: '>=16.13'}requiresBuild: truepeerDependencies:@@ -4775,15 +4775,15 @@ packages:prisma:optional: truedependencies:- prisma: 5.15.1+ prisma: 5.16.2dev: false/@prisma/[email protected]:resolution: {integrity: sha512-699iqlEvzyCj9ETrXhs8o8wQc/eVW+FigSsHpiskSFydhjVuwTJEfj/nIYqTaWFYuxiWQRfm3r01meuW97SZaQ==}dev: false- /@prisma/[email protected]:- resolution: {integrity: sha512-NQjdEplhXEcPvf84ghxExC+LD+iTimbg3sZvA3BhybVQIocBEBxFf9GTHhmRVPmjrWoBaYJBVgEEBXZT27JTbQ==}+ /@prisma/[email protected]:+ resolution: {integrity: sha512-ItzB4nR4O8eLzuJiuP3WwUJfoIvewMHqpGCad+64gvThcKEVOtaUza9AEJo2DPqAOa/AWkFyK54oM4WwHeew+A==}/@prisma/[email protected]:resolution: {integrity: sha512-SaimwvGuvXJTsWH+FOfl7PlkZZlPiRGeMEchC0kvB08Xw9B3CLYo/Q7zaY5Fp+u5D8asrpcFQmCjXEgDvOmPkg==}@@ -4791,29 +4791,29 @@ packages:'@prisma/debug': 5.13.0dev: false- /@prisma/engines-version@5.15.1-1.5675a3182f972f1a8f31d16eee6abf4fd54910e3:- resolution: {integrity: sha512-7csphKGCG6n/cN1MkT1mJvQ78Ir18IknlYZ8eyEoLKdQBb0HscR/6TyPmzqrMA7Rz01K1KeXqctwAqxtA/lKQg==}+ /@prisma/engines-version@5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303:+ resolution: {integrity: sha512-HkT2WbfmFZ9WUPyuJHhkiADxazHg8Y4gByrTSVeb3OikP6tjQ7txtSUGu9OBOBH0C13dPKN2qqH12xKtHu/Hiw==}- /@prisma/[email protected]:- resolution: {integrity: sha512-1iTRxJEFvpBpEWf2bYiMG6LBBQhX7X+GA5piH+tmPWgc/v+/ElxQf2kjQxby8AErmZqtZkdoKJ7FSRjNjBPE9Q==}+ /@prisma/[email protected]:+ resolution: {integrity: sha512-qUxwMtrwoG3byd4PbX6T7EjHJ8AUhzTuwniOGkh/hIznBfcE2QQnGakyEq4VnwNuttMqvh/GgPFapHQ3lCuRHg==}requiresBuild: truedependencies:- '@prisma/debug': 5.15.1- '@prisma/engines-version': 5.15.1-1.5675a3182f972f1a8f31d16eee6abf4fd54910e3- '@prisma/fetch-engine': 5.15.1- '@prisma/get-platform': 5.15.1+ '@prisma/debug': 5.16.2+ '@prisma/engines-version': 5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303+ '@prisma/fetch-engine': 5.16.2+ '@prisma/get-platform': 5.16.2- /@prisma/[email protected]:- resolution: {integrity: sha512-mj0wfsJ+mAdDp1ynT2JKxAXa+CoYMT267qF7g2Uv+oaVTI2CMfGWouMARht8T2QLTgl+gpXSFTwIYbcR+oWEtw==}+ /@prisma/[email protected]:+ resolution: {integrity: sha512-sq51lfHKfH2jjYSjBtMjP+AznFqOJzXpqmq6B9auWrlTJrMgZ7lPyhWUW7VU7LsQU48/TJ+DZeIz8s9bMYvcHg==}dependencies:- '@prisma/debug': 5.15.1- '@prisma/engines-version': 5.15.1-1.5675a3182f972f1a8f31d16eee6abf4fd54910e3- '@prisma/get-platform': 5.15.1+ '@prisma/debug': 5.16.2+ '@prisma/engines-version': 5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303+ '@prisma/get-platform': 5.16.2- /@prisma/[email protected]:- resolution: {integrity: sha512-oFccp7bYys+ZYkmtYzjR+0cRrGKvSuF+h5QhSkyEsYQ9kzJzQRvuWt2SiHRPt8xOQ4MTmujM+bP5uOexnnAHdQ==}+ /@prisma/[email protected]:+ resolution: {integrity: sha512-cXiHPgNLNyj22vLouPVNegklpRL/iX2jxTeap5GRO3DmCoVyIHmJAV1CgUMUJhHlcol9yYy7EHvsnXTDJ/PKEA==}dependencies:- '@prisma/debug': 5.15.1+ '@prisma/debug': 5.16.2/@protobufjs/[email protected]:resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}@@ -16276,13 +16276,13 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-pYsUVpTlYvZ6mWvZKDv9rKdUa7tlfSUJY1CVtgb8Had1pHbIm9fr1MBASccr5XnSuCUrjnvKhWNwgSYy6aCajA==}+ resolution: {integrity: sha512-rFV/xoBR2hBGGlu4LPLQd4U8WVA+tSAmYyFWGPRVfj+xg7N4kiZV4lSk38htSpF+/IuHKzlrbh4SFk8Z18cI8A==}engines: {node: '>=16.13'}hasBin: truerequiresBuild: truedependencies:- '@prisma/engines': 5.15.1+ '@prisma/engines': 5.16.2resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==}