diff --git a/server/package.json b/server/package.json index dec78b43..eabf0554 100644 --- a/server/package.json +++ b/server/package.json @@ -24,8 +24,7 @@ "arktype": "^2.1.10", "axios": "^1.7.7", "bcryptjs": "^2.4.3", - "cookie-es": "^1.2.2", - "crypto": "^1.0.1", + "cookie-es": "^2.0.0", "fast-fuzzy": "^1.12.0", "file-type-mime": "^0.4.3", "jdenticon": "^3.3.0", @@ -53,7 +52,7 @@ "@types/node": "^22.13.16", "@types/turndown": "^5.0.5", "autoprefixer": "^10.4.20", - "h3": "^1.13.0", + "h3": "^1.15.1", "postcss": "^8.4.47", "sass": "^1.79.4", "tailwindcss": "^4.0.0", diff --git a/server/server/internal/saves/index.ts b/server/server/internal/saves/index.ts index df6797d3..562e9826 100644 --- a/server/server/internal/saves/index.ts +++ b/server/server/internal/saves/index.ts @@ -2,8 +2,7 @@ import Stream, { Readable } from "stream"; import prisma from "../db/database"; import { applicationSettings } from "../config/application-configuration"; import objectHandler from "../objects"; -import { randomUUID } from "node:crypto"; -import crypto from "crypto"; +import { randomUUID, createHash } from "node:crypto"; import { IncomingMessage } from "http"; class SaveManager { @@ -50,7 +49,7 @@ class SaveManager { let hash: string | undefined; const hashPromise = Stream.promises.pipeline( stream, - crypto.createHash("sha256").setEncoding("hex"), + createHash("sha256").setEncoding("hex"), async function (source) { // Not sure how to get this to be typed // @ts-expect-error diff --git a/server/yarn.lock b/server/yarn.lock index c8bbe85b..6e7c0be7 100644 --- a/server/yarn.lock +++ b/server/yarn.lock @@ -2818,11 +2818,6 @@ cross-spawn@^7.0.3, cross-spawn@^7.0.6: dependencies: uncrypto "^0.1.3" -crypto@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/crypto/-/crypto-1.0.1.tgz#2af1b7cad8175d24c8a1b0778255794a21803037" - integrity sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig== - css-declaration-sorter@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-7.2.0.tgz#6dec1c9523bc4a643e088aab8f09e67a54961024" @@ -3797,7 +3792,7 @@ gzip-size@^7.0.0: dependencies: duplexer "^0.1.2" -h3@^1.10.0, h3@^1.12.0, h3@^1.13.0, h3@^1.14.0, h3@^1.15.0, h3@^1.15.1: +h3@^1.10.0, h3@^1.12.0, h3@^1.14.0, h3@^1.15.0, h3@^1.15.1: version "1.15.1" resolved "https://registry.yarnpkg.com/h3/-/h3-1.15.1.tgz#59d6f70d7ef619fad74ecdf465a08fff898033bb" integrity sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==