Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: update deps

Marc Seitz960cb878df73
diff --git a/package-lock.json b/package-lock.json
index ac3f7bd2..8cd38efd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,11 +19,10 @@
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@github/webauthn-json": "^2.1.1",
- "@jitsu/js": "^1.9.15",
+ "@jitsu/js": "^1.9.17",
"@next-auth/prisma-adapter": "^1.0.7",
"@pdf-lib/fontkit": "^1.1.1",
"@prisma/client": "^6.4.1",
- "@prisma/instrumentation": "^6.4.1",
"@radix-ui/react-accordion": "^1.2.3",
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4",
@@ -2559,9 +2558,10 @@
}
},
"node_modules/@jitsu/js": {
- "version": "1.9.15",
- "resolved": "https://registry.npmjs.org/@jitsu/js/-/js-1.9.15.tgz",
- "integrity": "sha512-mXsI3cStm4fKF2Z5sWAsKtp2EaOZiBCqkVg7qWjuRAZSiUYPLWDmWWf7ZHkctx+w7k+vAZClrp1ZstufojXZrw==",
+ "version": "1.9.17",
+ "resolved": "https://registry.npmjs.org/@jitsu/js/-/js-1.9.17.tgz",
+ "integrity": "sha512-6K5T/D6w9XhF5mbAfjS8Wd7kHunWEn+ahdd+hz9O6TLEb05hOpsroKErVDYTU2HhSUzmS3RW+l/EW3jAZbur/g==",
+ "license": "MIT",
"dependencies": {
"analytics": "0.8.9"
}
@@ -3387,17 +3387,6 @@
"@prisma/debug": "6.4.1"
}
},
- "node_modules/@prisma/instrumentation": {
- "version": "6.4.1",
- "resolved": "https://registry.npmjs.org/@prisma/instrumentation/-/instrumentation-6.4.1.tgz",
- "integrity": "sha512-1SeN0IvMp5zm3RLJnEr+Zn67WDqUIPP1lF/PkLbi/X64vsnFyItcXNRBrYr0/sI2qLcH9iNzJUhyd3emdGizaQ==",
- "dependencies": {
- "@opentelemetry/instrumentation": "^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || ^0.56.0 || ^0.57.0"
- },
- "peerDependencies": {
- "@opentelemetry/api": "^1.8"
- }
- },
"node_modules/@protobufjs/aspromise": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
@@ -16906,6 +16895,21 @@
"peerDependencies": {
"zod": "^3.18.0"
}
+ },
+ "node_modules/react-email/node_modules/@next/swc-win32-ia32-msvc": {
+ "version": "14.2.25",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.25.tgz",
+ "integrity": "sha512-DZ/gc0o9neuCDyD5IumyTGHVun2dCox5TfPQI/BJTYwpSNYM3CZDI4i6TOdjeq1JMo+Ug4kPSMuZdwsycwFbAw==",
+ "cpu": [
+ "ia32"
+ ],
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
}
}
}
diff --git a/package.json b/package.json
index f6248b34..a6ea83a9 100644
--- a/package.json
+++ b/package.json
@@ -30,11 +30,10 @@
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@github/webauthn-json": "^2.1.1",
- "@jitsu/js": "^1.9.15",
+ "@jitsu/js": "^1.9.17",
"@next-auth/prisma-adapter": "^1.0.7",
"@pdf-lib/fontkit": "^1.1.1",
"@prisma/client": "^6.4.1",
- "@prisma/instrumentation": "^6.4.1",
"@radix-ui/react-accordion": "^1.2.3",
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4",
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/documents/move.ts b/pages/api/teams/[teamId]/datarooms/[id]/documents/move.ts
index e1e5bbc3..40621b0b 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/documents/move.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/documents/move.ts
@@ -62,7 +62,7 @@ export default async function handle(
let folder: { path: string } | null = null;
if (folderId) {
folder = await prisma.dataroomFolder.findUnique({
- where: { id: folderId },
+ where: { id: folderId, dataroomId: dataroomId },
select: { path: true },
});
}
diff --git a/pages/api/teams/[teamId]/documents/move.ts b/pages/api/teams/[teamId]/documents/move.ts
index 67b9863f..5dc21895 100644
--- a/pages/api/teams/[teamId]/documents/move.ts
+++ b/pages/api/teams/[teamId]/documents/move.ts
@@ -55,7 +55,7 @@ export default async function handle(
let folder: { path: string } | null = null;
if (folderId) {
folder = await prisma.folder.findUnique({
- where: { id: folderId },
+ where: { id: folderId, teamId: teamId },
select: { path: true },
});
}