aboutsummaryrefslogtreecommitdiffstats
path: root/lib/upload.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-05 19:00:39 -0800
committerAdam Soltys <[email protected]>2026-02-06 09:00:22 -0800
commit310568dea00de03edd27b702a881e66fd7b5b837 (patch)
tree370e6efc22b2b1d49d26d6739d5f7b6daca911e2 /lib/upload.ts
parent808e7535d33ffca4c1bf859d8bf0afe134f3e1d7 (diff)
downloadcoinos-server-310568dea00de03edd27b702a881e66fd7b5b837.tar.gz
coinos-server-310568dea00de03edd27b702a881e66fd7b5b837.zip
upgrade dependencies
- Fastify 4→5 with all plugins - @noble/hashes 1→2, @scure/base 1→2, @scure/bip32 1→2 - redis 4→5, pino 8→10, got 13→14, uuid 8→13, ws 7→8 - nostr-tools 2.16→2.23 (fix getPublicKey to pass Uint8Array) - Remove unused deps: date-fns, buffer-crc32, readable-stream-clone - Fix @noble/hashes import paths for v2 (.js extensions) - Fix Fastify maxParamLength deprecation (use routerOptions) - Convert sharp require() to ES import Co-Authored-By: Claude Opus 4.6 <[email protected]>
Diffstat (limited to 'lib/upload.ts')
-rw-r--r--lib/upload.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/upload.ts b/lib/upload.ts
index ed06d7e0..7b5ad86d 100644
--- a/lib/upload.ts
+++ b/lib/upload.ts
@@ -3,8 +3,7 @@ import { writeFileSync } from "fs";
import { err } from "$lib/logging";
import { bail, fail } from "$lib/utils";
import { fileTypeFromBuffer } from "file-type";
-
-const sharp = require("sharp");
+import sharp from "sharp";
export default async (req, res) => {
try {