mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-27 02:04:39 +10:00
fix: don't use npm crypto
This commit is contained in:
+2
-3
@@ -24,8 +24,7 @@
|
|||||||
"arktype": "^2.1.10",
|
"arktype": "^2.1.10",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
"cookie-es": "^1.2.2",
|
"cookie-es": "^2.0.0",
|
||||||
"crypto": "^1.0.1",
|
|
||||||
"fast-fuzzy": "^1.12.0",
|
"fast-fuzzy": "^1.12.0",
|
||||||
"file-type-mime": "^0.4.3",
|
"file-type-mime": "^0.4.3",
|
||||||
"jdenticon": "^3.3.0",
|
"jdenticon": "^3.3.0",
|
||||||
@@ -53,7 +52,7 @@
|
|||||||
"@types/node": "^22.13.16",
|
"@types/node": "^22.13.16",
|
||||||
"@types/turndown": "^5.0.5",
|
"@types/turndown": "^5.0.5",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"h3": "^1.13.0",
|
"h3": "^1.15.1",
|
||||||
"postcss": "^8.4.47",
|
"postcss": "^8.4.47",
|
||||||
"sass": "^1.79.4",
|
"sass": "^1.79.4",
|
||||||
"tailwindcss": "^4.0.0",
|
"tailwindcss": "^4.0.0",
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ import Stream, { Readable } from "stream";
|
|||||||
import prisma from "../db/database";
|
import prisma from "../db/database";
|
||||||
import { applicationSettings } from "../config/application-configuration";
|
import { applicationSettings } from "../config/application-configuration";
|
||||||
import objectHandler from "../objects";
|
import objectHandler from "../objects";
|
||||||
import { randomUUID } from "node:crypto";
|
import { randomUUID, createHash } from "node:crypto";
|
||||||
import crypto from "crypto";
|
|
||||||
import { IncomingMessage } from "http";
|
import { IncomingMessage } from "http";
|
||||||
|
|
||||||
class SaveManager {
|
class SaveManager {
|
||||||
@@ -50,7 +49,7 @@ class SaveManager {
|
|||||||
let hash: string | undefined;
|
let hash: string | undefined;
|
||||||
const hashPromise = Stream.promises.pipeline(
|
const hashPromise = Stream.promises.pipeline(
|
||||||
stream,
|
stream,
|
||||||
crypto.createHash("sha256").setEncoding("hex"),
|
createHash("sha256").setEncoding("hex"),
|
||||||
async function (source) {
|
async function (source) {
|
||||||
// Not sure how to get this to be typed
|
// Not sure how to get this to be typed
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
|||||||
+1
-6
@@ -2818,11 +2818,6 @@ cross-spawn@^7.0.3, cross-spawn@^7.0.6:
|
|||||||
dependencies:
|
dependencies:
|
||||||
uncrypto "^0.1.3"
|
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:
|
css-declaration-sorter@^7.2.0:
|
||||||
version "7.2.0"
|
version "7.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-7.2.0.tgz#6dec1c9523bc4a643e088aab8f09e67a54961024"
|
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:
|
dependencies:
|
||||||
duplexer "^0.1.2"
|
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"
|
version "1.15.1"
|
||||||
resolved "https://registry.yarnpkg.com/h3/-/h3-1.15.1.tgz#59d6f70d7ef619fad74ecdf465a08fff898033bb"
|
resolved "https://registry.yarnpkg.com/h3/-/h3-1.15.1.tgz#59d6f70d7ef619fad74ecdf465a08fff898033bb"
|
||||||
integrity sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==
|
integrity sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==
|
||||||
|
|||||||
Reference in New Issue
Block a user