feat: 支持本地媒体存储与上传回退
This commit is contained in:
1 parent
aa42e7b866
commit
6ac2d9421b
10 files changed
+256
-30
No files matched your search
@@ -18,5 +18,6 @@ apps/admin/public/template-preview/
|
||||
|
||||
apps/taro/test-results/
|
||||
apps/taro/playwright-report/
|
||||
media/
|
||||
|
||||
**/.swc/
|
||||
@@ -3,3 +3,4 @@ VITE_API_BASE_URL=/api
|
||||
VITE_DEV_API_TARGET=http://localhost:3001
|
||||
ADMIN_PORT=3000
|
||||
VITE_TEMPLATE_PREVIEW_URL=http://localhost:3002
|
||||
VITE_MEDIA_PROXY_TARGET=http://localhost:9000
|
||||
@@ -27,6 +27,15 @@ export default defineConfig({
|
||||
target: process.env.VITE_DEV_API_TARGET ?? "http://localhost:3001",
|
||||
rewrite: (path) => path.replace(/^\/api/, ""),
|
||||
},
|
||||
...(process.env.VITE_MEDIA_PROXY_TARGET
|
||||
? {
|
||||
[`/${(process.env.OBJECT_STORAGE_BUCKET ?? "personal-brand-media").replace(/^\/+/, "")}`]:
|
||||
{
|
||||
target: process.env.VITE_MEDIA_PROXY_TARGET,
|
||||
changeOrigin: true,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
},
|
||||
build: { outDir: "dist" },
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.1149.0",
|
||||
"@aws-sdk/s3-request-presigner": "^3.1149.0",
|
||||
"@fastify/multipart": "^10.1.3",
|
||||
"@fastify/static": "^10.1.6",
|
||||
"@nestjs/common": "^11.0.11",
|
||||
"@nestjs/core": "^11.0.11",
|
||||
"@nestjs/platform-fastify": "^11.0.11",
|
||||
@@ -29,7 +31,7 @@
|
||||
"bcryptjs": "^2.4.3",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.1",
|
||||
"fastify": "^5.2.1",
|
||||
"fastify": "^5.11.3",
|
||||
"reflect-metadata": "^0.2.2",
|
||||
"rxjs": "^7.8.1"
|
||||
},
|
||||
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
import { PublicBrandContextService } from "./modules/public/public-brand-context.service.js";
|
||||
import { AdminConfigController } from "./modules/admin/admin-config.controller.js";
|
||||
import { AdminUploadController } from "./modules/admin/admin-upload.controller.js";
|
||||
import { AdminLocalUploadController } from "./modules/admin/admin-local-upload.controller.js";
|
||||
import { PublicOfferingController } from "./modules/public/public-offering.controller.js";
|
||||
import { PublicInquiryFormController } from "./modules/public/public-inquiry-form.controller.js";
|
||||
import { CustomerInquirySubmissionController } from "./modules/customer/customer-inquiry-submission.controller.js";
|
||||
@@ -63,6 +64,7 @@ export class HealthController {
|
||||
AdminConfigController,
|
||||
AdminReleaseController,
|
||||
AdminUploadController,
|
||||
AdminLocalUploadController,
|
||||
],
|
||||
providers: [
|
||||
PrismaService,
|
||||
|
||||
@@ -2,10 +2,30 @@ import "reflect-metadata";
|
||||
import { NestFactory } from "@nestjs/core";
|
||||
import type { NestFastifyApplication } from "@nestjs/platform-fastify";
|
||||
import { FastifyAdapter } from "@nestjs/platform-fastify";
|
||||
import multipart from "@fastify/multipart";
|
||||
import fastifyStatic from "@fastify/static";
|
||||
import path from "node:path";
|
||||
import { AppModule, configureApp } from "./app.module.js";
|
||||
|
||||
export async function createApp(): Promise<NestFastifyApplication> {
|
||||
const app = await NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter());
|
||||
app
|
||||
.getHttpAdapter()
|
||||
.getInstance()
|
||||
.addContentTypeParser(
|
||||
["image/jpeg", "image/png", "image/webp", "image/avif"],
|
||||
{ parseAs: "buffer", bodyLimit: 10 * 1024 * 1024 },
|
||||
(_request: unknown, body: Buffer, done: (error: Error | null, body?: Buffer) => void) =>
|
||||
done(null, body),
|
||||
);
|
||||
await app.register(multipart);
|
||||
if (process.env.LOCAL_MEDIA_ROOT) {
|
||||
await app.register(fastifyStatic, {
|
||||
root: path.resolve(process.env.LOCAL_MEDIA_ROOT),
|
||||
prefix: "/media/",
|
||||
decorateReply: false,
|
||||
});
|
||||
}
|
||||
configureApp(app);
|
||||
return app;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import { BadRequestException, Controller, Put, Query, Req } from "@nestjs/common";
|
||||
import { mkdir, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import type { FastifyRequest } from "fastify";
|
||||
import { AdminAccessService } from "../../admin-access.service.js";
|
||||
|
||||
const allowedExtensions = new Map([
|
||||
["image/jpeg", ".jpg"],
|
||||
["image/png", ".png"],
|
||||
["image/webp", ".webp"],
|
||||
["image/avif", ".avif"],
|
||||
]);
|
||||
|
||||
@Controller("admin/uploads")
|
||||
export class AdminLocalUploadController {
|
||||
constructor(private readonly access: AdminAccessService) {}
|
||||
|
||||
private get mediaRoot(): string {
|
||||
return path.resolve(process.env.LOCAL_MEDIA_ROOT || path.join(process.cwd(), "media"));
|
||||
}
|
||||
|
||||
@Put("local")
|
||||
async upload(
|
||||
@Req() request: FastifyRequest,
|
||||
@Query("key") key?: string,
|
||||
): Promise<{ saved: true }> {
|
||||
await this.access.requireBrand(request);
|
||||
const rawKey = key ?? (request.query as { key?: string }).key;
|
||||
const decodedKey = (rawKey ?? "").includes("%")
|
||||
? decodeURIComponent(rawKey as string)
|
||||
: (rawKey ?? "");
|
||||
if (
|
||||
!decodedKey ||
|
||||
decodedKey.includes("..") ||
|
||||
decodedKey.startsWith("/") ||
|
||||
!decodedKey.startsWith("media/")
|
||||
) {
|
||||
throw new BadRequestException("上传 key 无效");
|
||||
}
|
||||
if (!allowedExtensions.has(request.headers["content-type"] ?? "")) {
|
||||
throw new BadRequestException("仅支持图片上传");
|
||||
}
|
||||
const contentType = allowedExtensions.get(request.headers["content-type"] ?? "");
|
||||
if (!contentType || !decodedKey.endsWith(contentType)) {
|
||||
throw new BadRequestException("上传文件类型与 key 不一致");
|
||||
}
|
||||
const target = path.join(this.mediaRoot, decodedKey);
|
||||
if (!target.startsWith(path.resolve(this.mediaRoot))) {
|
||||
throw new BadRequestException("上传 key 无效");
|
||||
}
|
||||
await mkdir(path.dirname(target), { recursive: true });
|
||||
await writeFile(target, request.body as Buffer);
|
||||
return { saved: true };
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@ import { BadRequestException, Body, Controller, Get, Post, Req } from "@nestjs/c
|
||||
import { HeadBucketCommand, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
||||
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
||||
import { createHash, randomUUID } from "node:crypto";
|
||||
import { mkdir } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import type { FastifyRequest } from "fastify";
|
||||
import { IsIn, IsOptional, IsString, MaxLength } from "class-validator";
|
||||
import { AdminAccessService } from "../../admin-access.service.js";
|
||||
@@ -45,6 +47,10 @@ class ObjectStorage {
|
||||
return endpoint ? `${endpoint}/${key}` : `/${key}`;
|
||||
}
|
||||
|
||||
get bucketName(): string {
|
||||
return this.bucket;
|
||||
}
|
||||
|
||||
async presignPut(key: string, contentType: string): Promise<string> {
|
||||
return getSignedUrl(
|
||||
this.client,
|
||||
@@ -76,14 +82,32 @@ export class AdminUploadController {
|
||||
|
||||
constructor(private readonly access: AdminAccessService) {}
|
||||
|
||||
private get localMediaRoot(): string {
|
||||
return path.resolve(process.env.LOCAL_MEDIA_ROOT || path.join(process.cwd(), "media"));
|
||||
}
|
||||
|
||||
private get localMediaBaseUrl(): string {
|
||||
return process.env.LOCAL_MEDIA_BASE_URL || "/media";
|
||||
}
|
||||
|
||||
@Get("config")
|
||||
async config() {
|
||||
const configured = Boolean(
|
||||
const objectStorageConfigured = Boolean(
|
||||
process.env.OBJECT_STORAGE_BUCKET &&
|
||||
process.env.OBJECT_STORAGE_ACCESS_KEY &&
|
||||
process.env.OBJECT_STORAGE_SECRET_KEY,
|
||||
);
|
||||
return { configured, status: configured ? await this.storage.checkBucket() : "unconfigured" };
|
||||
const localMediaConfigured = Boolean(process.env.LOCAL_MEDIA_ROOT);
|
||||
if (localMediaConfigured) {
|
||||
return { configured: true, status: "ok", mode: "local" };
|
||||
}
|
||||
const configured = Boolean(objectStorageConfigured);
|
||||
return {
|
||||
configured,
|
||||
status: configured ? await this.storage.checkBucket() : "unconfigured",
|
||||
...(configured ? { bucket: this.storage.bucketName } : {}),
|
||||
...(configured ? { mode: "object-storage" } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
@Post("presign")
|
||||
@@ -100,7 +124,22 @@ export class AdminUploadController {
|
||||
.digest("hex")
|
||||
.slice(0, 16);
|
||||
const key = `media/${new Date().getFullYear()}/${digest}${extension}`;
|
||||
const uploadUrl = await this.storage.presignPut(key, body.contentType);
|
||||
return { uploadUrl, key, publicUrl: this.storage.publicUrl(key) };
|
||||
const objectStorageEnabled = Boolean(
|
||||
process.env.OBJECT_STORAGE_BUCKET &&
|
||||
process.env.OBJECT_STORAGE_ACCESS_KEY &&
|
||||
process.env.OBJECT_STORAGE_SECRET_KEY,
|
||||
);
|
||||
if (objectStorageEnabled) {
|
||||
const uploadUrl = await this.storage.presignPut(key, body.contentType);
|
||||
return { uploadUrl, key, publicUrl: this.storage.publicUrl(key) };
|
||||
}
|
||||
const target = path.join(this.localMediaRoot, key);
|
||||
await mkdir(path.dirname(target), { recursive: true });
|
||||
return {
|
||||
uploadUrl: `/admin/uploads/local?key=${encodeURIComponent(key)}`,
|
||||
key,
|
||||
publicUrl: `${this.localMediaBaseUrl}/${key}`,
|
||||
mode: "local",
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -58,6 +58,7 @@ export interface AdminBrandMember {
|
||||
export interface UploadConfig {
|
||||
configured: boolean;
|
||||
status: "ok" | "unavailable" | "unconfigured";
|
||||
bucket?: string;
|
||||
}
|
||||
|
||||
export interface PresignedUpload {
|
||||
|
||||
Generated
+121
-25
@@ -75,6 +75,12 @@ importers:
|
||||
'@aws-sdk/s3-request-presigner':
|
||||
specifier: ^3.1149.0
|
||||
version: 3.1149.0
|
||||
'@fastify/multipart':
|
||||
specifier: ^10.1.3
|
||||
version: 10.1.3
|
||||
'@fastify/static':
|
||||
specifier: ^10.1.6
|
||||
version: 10.1.6
|
||||
'@nestjs/common':
|
||||
specifier: ^11.0.11
|
||||
version: 11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2)
|
||||
@@ -83,7 +89,7 @@ importers:
|
||||
version: 11.2.5(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)(rxjs@7.8.2)
|
||||
'@nestjs/platform-fastify':
|
||||
specifier: ^11.0.11
|
||||
version: 11.2.5(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.2.5(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)(rxjs@7.8.2))
|
||||
version: 11.2.5(@fastify/static@10.1.6)(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.2.5(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)(rxjs@7.8.2))
|
||||
'@personal-brand/config':
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/config
|
||||
@@ -106,8 +112,8 @@ importers:
|
||||
specifier: ^0.14.1
|
||||
version: 0.14.4
|
||||
fastify:
|
||||
specifier: ^5.2.1
|
||||
version: 5.12.5
|
||||
specifier: ^5.11.3
|
||||
version: 5.11.3
|
||||
reflect-metadata:
|
||||
specifier: ^0.2.2
|
||||
version: 0.2.2
|
||||
@@ -1455,12 +1461,21 @@ packages:
|
||||
resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
|
||||
'@fastify/accept-negotiator@2.1.1':
|
||||
resolution: {integrity: sha512-gO48sJ/4+P9hYE24tEoWQF4fZvCfRmStf6NFhuT5hwXkH+3JXGdemoE/7ympeQZglieeLJx256rbg8e58IrCyA==}
|
||||
|
||||
'@fastify/ajv-compiler@4.0.6':
|
||||
resolution: {integrity: sha512-NtuzM0SfaMJbGlnjr9LWQUN5LzgSrbB8tf/wRZNas+4E1O/Nmzl53e7ruT61HDZyRCJGC6FxIogmNZO1c5ETBA==}
|
||||
|
||||
'@fastify/busboy@3.2.3':
|
||||
resolution: {integrity: sha512-fmo/IKgkenPzz3qTKG+sIUXdF/Kv83AkvvOXJHPTHJeKJbat8SsL1ihUaFaDotqoEl4UZ1Lf8Eb/3vK6eaWX2A==}
|
||||
|
||||
'@fastify/cors@11.3.0':
|
||||
resolution: {integrity: sha512-ggQGua+xHv1MvePbPr0v//xLYEsCXbWspquXCJS9Ot5YoRXq8J8ZWzHnxDBVnbtXosvistXo6LtNzOJswf64Fw==}
|
||||
|
||||
'@fastify/deepmerge@3.2.2':
|
||||
resolution: {integrity: sha512-155eqA/WMQdN6gUD4RrhS2K0Pcz2Ou9pQ86L0sipOpP9ONbTA6oYw/hW4VdBjR4egcDHqmWUK9x80oUX7S1mDQ==}
|
||||
|
||||
'@fastify/error@4.2.0':
|
||||
resolution: {integrity: sha512-RSo3sVDXfHskiBZKBPRgnQTtIqpi/7zhJOEmAxCiBcM7d0uwdGdxLlsCaLzGs8v8NnxIRlfG0N51p5yFaOentQ==}
|
||||
|
||||
@@ -1479,9 +1494,18 @@ packages:
|
||||
'@fastify/middie@9.3.4':
|
||||
resolution: {integrity: sha512-dd8phTnVWzx3iKPBKSvtRUT8+Igvy/MP+P5HcY2tjejEyeVbyjkD4HgzKessUObue5RRM5J6PZdxtAqgbn84yw==}
|
||||
|
||||
'@fastify/multipart@10.1.3':
|
||||
resolution: {integrity: sha512-nLZopLYgAj+0BhcSm6upfT5x4fwKDfGlJ51U4Bkg1HknFaO6LjfCc2prqbXMNjRdM0cCVzp3L4bjkvfuuTLxJg==}
|
||||
|
||||
'@fastify/proxy-addr@5.1.1':
|
||||
resolution: {integrity: sha512-zv07Y9GEuDsJPegZoDFd4SDWaZOW8N2pa0GSrYmKpId/tjt1Hgo3BjZBVjdVpfVrHaA+Qv5jawtS2O50J5xM9g==}
|
||||
|
||||
'@fastify/send@4.1.2':
|
||||
resolution: {integrity: sha512-PitRBXg/N4IrE5ToLuP7lITI5Mz8MmP13dv2aMtMNfaGfc5W5hNOwHqcsdQdqu0Lwm5cpDiYLkiOsZTgmhyt2Q==}
|
||||
|
||||
'@fastify/static@10.1.6':
|
||||
resolution: {integrity: sha512-f3x9XisI+y6AIhIfA/+Q3SFsuXeqNNk5HQh5htgHsPxmMLb4pLFskV6eFaLSW3IbI4azrS5np+/tkzXNH99LyQ==}
|
||||
|
||||
'@hapi/hoek@9.3.0':
|
||||
resolution: {integrity: sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==}
|
||||
|
||||
@@ -1562,6 +1586,10 @@ packages:
|
||||
resolution: {integrity: sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
'@lukeed/ms@2.0.2':
|
||||
resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
'@napi-rs/triples@1.2.0':
|
||||
resolution: {integrity: sha512-HAPjR3bnCsdXBsATpDIP5WCrw0JcACwhhrwIAQhiR46n+jm+a2F8kBsfseAuWtSyQ+H3Yebt2k43B5dy+04yMA==}
|
||||
|
||||
@@ -3244,6 +3272,10 @@ packages:
|
||||
resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==}
|
||||
engines: {node: '>= 0.6'}
|
||||
|
||||
content-disposition@3.0.0:
|
||||
resolution: {integrity: sha512-ZH/0Xs9rMIFWCOmGdmS9eHBTF62qqQYNz4nVjQhkdIO/a0fCP4UIM3mRz/wiqL0L14YgAz/1xio4OaSY4+ON/A==}
|
||||
engines: {node: '>=22'}
|
||||
|
||||
convert-source-map@2.0.0:
|
||||
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
|
||||
|
||||
@@ -3362,6 +3394,10 @@ packages:
|
||||
resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
|
||||
engines: {node: '>=0.4.0'}
|
||||
|
||||
depd@2.0.0:
|
||||
resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
||||
dequal@2.0.3:
|
||||
resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
|
||||
engines: {node: '>=6'}
|
||||
@@ -3478,6 +3514,9 @@ packages:
|
||||
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
escape-html@1.0.3:
|
||||
resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}
|
||||
|
||||
escape-string-regexp@1.0.5:
|
||||
resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
|
||||
engines: {node: '>=0.8.0'}
|
||||
@@ -3612,9 +3651,6 @@ packages:
|
||||
fastify@5.11.3:
|
||||
resolution: {integrity: sha512-W6hzDP8s0iSeL7LGwY6Oc/ZxuXWOvFEMs6p2L0Si415YRo27W5pBKdOTXxhemBDeSTAcpYf5evRA9onF2OYhPA==}
|
||||
|
||||
fastify@5.12.5:
|
||||
resolution: {integrity: sha512-OB2k1dlxs5/NAABqeKV2FUHkSD2BbENsCak8yULVcymn3fHIPDVa9TI3SDnJSWYSllZmSYuZXy2gTnsT+Sut1A==}
|
||||
|
||||
fastq@1.20.3:
|
||||
resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==}
|
||||
|
||||
@@ -3956,6 +3992,10 @@ packages:
|
||||
http-cache-semantics@4.3.0:
|
||||
resolution: {integrity: sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==}
|
||||
|
||||
http-errors@2.0.1:
|
||||
resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
||||
https-proxy-agent@5.0.1:
|
||||
resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}
|
||||
engines: {node: '>= 6'}
|
||||
@@ -4413,6 +4453,11 @@ packages:
|
||||
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
|
||||
engines: {node: '>= 0.6'}
|
||||
|
||||
mime@3.0.0:
|
||||
resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
hasBin: true
|
||||
|
||||
mimic-fn@2.1.0:
|
||||
resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
|
||||
engines: {node: '>=6'}
|
||||
@@ -5149,6 +5194,9 @@ packages:
|
||||
resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
setprototypeof@1.2.0:
|
||||
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
|
||||
|
||||
shallow-clone@3.0.1:
|
||||
resolution: {integrity: sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==}
|
||||
engines: {node: '>=8'}
|
||||
@@ -5220,6 +5268,10 @@ packages:
|
||||
resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==}
|
||||
engines: {node: '>= 10.x'}
|
||||
|
||||
statuses@2.0.2:
|
||||
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
||||
strict-uri-encode@1.1.0:
|
||||
resolution: {integrity: sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@@ -5379,6 +5431,10 @@ packages:
|
||||
resolution: {integrity: sha512-m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==}
|
||||
engines: {node: '>=20'}
|
||||
|
||||
toidentifier@1.0.1:
|
||||
resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
|
||||
engines: {node: '>=0.6'}
|
||||
|
||||
token-types@6.1.2:
|
||||
resolution: {integrity: sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==}
|
||||
engines: {node: '>=14.16'}
|
||||
@@ -6927,17 +6983,23 @@ snapshots:
|
||||
'@eslint/core': 0.17.0
|
||||
levn: 0.4.1
|
||||
|
||||
'@fastify/accept-negotiator@2.1.1': {}
|
||||
|
||||
'@fastify/ajv-compiler@4.0.6':
|
||||
dependencies:
|
||||
ajv: 8.20.0
|
||||
ajv-formats: 3.0.1(ajv@8.20.0)
|
||||
fast-uri: 4.1.5
|
||||
|
||||
'@fastify/busboy@3.2.3': {}
|
||||
|
||||
'@fastify/cors@11.3.0':
|
||||
dependencies:
|
||||
fastify-plugin: 6.0.0
|
||||
toad-cache: 3.7.4
|
||||
|
||||
'@fastify/deepmerge@3.2.2': {}
|
||||
|
||||
'@fastify/error@4.2.0': {}
|
||||
|
||||
'@fastify/fast-json-stringify-compiler@5.1.0':
|
||||
@@ -6963,11 +7025,37 @@ snapshots:
|
||||
path-to-regexp: 8.4.2
|
||||
reusify: 1.1.0
|
||||
|
||||
'@fastify/multipart@10.1.3':
|
||||
dependencies:
|
||||
'@fastify/busboy': 3.2.3
|
||||
'@fastify/deepmerge': 3.2.2
|
||||
'@fastify/error': 4.2.0
|
||||
fastify-plugin: 6.0.0
|
||||
secure-json-parse: 4.1.0
|
||||
|
||||
'@fastify/proxy-addr@5.1.1':
|
||||
dependencies:
|
||||
'@fastify/forwarded': 3.0.2
|
||||
ipaddr.js: 2.5.0
|
||||
|
||||
'@fastify/send@4.1.2':
|
||||
dependencies:
|
||||
'@lukeed/ms': 2.0.2
|
||||
escape-html: 1.0.3
|
||||
fast-decode-uri-component: 1.0.1
|
||||
http-errors: 2.0.1
|
||||
mime: 3.0.0
|
||||
|
||||
'@fastify/static@10.1.6':
|
||||
dependencies:
|
||||
'@fastify/accept-negotiator': 2.1.1
|
||||
'@fastify/error': 4.2.0
|
||||
'@fastify/send': 4.1.2
|
||||
content-disposition: 3.0.0
|
||||
fastify-plugin: 6.0.0
|
||||
fastq: 1.20.3
|
||||
glob: 13.0.6
|
||||
|
||||
'@hapi/hoek@9.3.0': {}
|
||||
|
||||
'@hapi/topo@5.1.0':
|
||||
@@ -7050,6 +7138,8 @@ snapshots:
|
||||
|
||||
'@lukeed/csprng@1.1.0': {}
|
||||
|
||||
'@lukeed/ms@2.0.2': {}
|
||||
|
||||
'@napi-rs/triples@1.2.0': {}
|
||||
|
||||
'@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2)':
|
||||
@@ -7078,7 +7168,7 @@ snapshots:
|
||||
tslib: 2.8.1
|
||||
uid: 2.0.2
|
||||
|
||||
'@nestjs/platform-fastify@11.2.5(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.2.5(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)(rxjs@7.8.2))':
|
||||
'@nestjs/platform-fastify@11.2.5(@fastify/static@10.1.6)(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.2.5(@nestjs/common@11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)(rxjs@7.8.2))':
|
||||
dependencies:
|
||||
'@fastify/cors': 11.3.0
|
||||
'@fastify/formbody': 8.0.2
|
||||
@@ -7091,6 +7181,8 @@ snapshots:
|
||||
light-my-request: 6.6.0
|
||||
path-to-regexp: 8.4.2
|
||||
tslib: 2.8.1
|
||||
optionalDependencies:
|
||||
'@fastify/static': 10.1.6
|
||||
|
||||
'@nodelib/fs.scandir@2.1.5':
|
||||
dependencies:
|
||||
@@ -8904,6 +8996,8 @@ snapshots:
|
||||
dependencies:
|
||||
safe-buffer: 5.2.1
|
||||
|
||||
content-disposition@3.0.0: {}
|
||||
|
||||
convert-source-map@2.0.0: {}
|
||||
|
||||
cookie@1.1.1: {}
|
||||
@@ -9016,6 +9110,8 @@ snapshots:
|
||||
|
||||
delayed-stream@1.0.0: {}
|
||||
|
||||
depd@2.0.0: {}
|
||||
|
||||
dequal@2.0.3: {}
|
||||
|
||||
destr@2.0.5: {}
|
||||
@@ -9198,6 +9294,8 @@ snapshots:
|
||||
|
||||
escalade@3.2.0: {}
|
||||
|
||||
escape-html@1.0.3: {}
|
||||
|
||||
escape-string-regexp@1.0.5: {}
|
||||
|
||||
escape-string-regexp@4.0.0: {}
|
||||
@@ -9388,24 +9486,6 @@ snapshots:
|
||||
fastify-plugin@6.0.0: {}
|
||||
|
||||
fastify@5.11.3:
|
||||
dependencies:
|
||||
'@fastify/ajv-compiler': 4.0.6
|
||||
'@fastify/error': 4.2.0
|
||||
'@fastify/fast-json-stringify-compiler': 5.1.0
|
||||
'@fastify/proxy-addr': 5.1.1
|
||||
abstract-logging: 2.0.1
|
||||
avvio: 9.3.0
|
||||
fast-json-stringify: 7.0.1
|
||||
find-my-way: 9.7.0
|
||||
light-my-request: 6.6.0
|
||||
pino: 10.3.1
|
||||
process-warning: 5.1.0
|
||||
rfdc: 1.4.1
|
||||
secure-json-parse: 4.1.0
|
||||
semver: 7.8.5
|
||||
toad-cache: 3.7.4
|
||||
|
||||
fastify@5.12.5:
|
||||
dependencies:
|
||||
'@fastify/ajv-compiler': 4.0.6
|
||||
'@fastify/error': 4.2.0
|
||||
@@ -9803,6 +9883,14 @@ snapshots:
|
||||
|
||||
http-cache-semantics@4.3.0: {}
|
||||
|
||||
http-errors@2.0.1:
|
||||
dependencies:
|
||||
depd: 2.0.0
|
||||
inherits: 2.0.4
|
||||
setprototypeof: 1.2.0
|
||||
statuses: 2.0.2
|
||||
toidentifier: 1.0.1
|
||||
|
||||
https-proxy-agent@5.0.1:
|
||||
dependencies:
|
||||
agent-base: 6.0.2
|
||||
@@ -10182,6 +10270,8 @@ snapshots:
|
||||
dependencies:
|
||||
mime-db: 1.52.0
|
||||
|
||||
mime@3.0.0: {}
|
||||
|
||||
mimic-fn@2.1.0: {}
|
||||
|
||||
mimic-response@1.0.1: {}
|
||||
@@ -10890,6 +10980,8 @@ snapshots:
|
||||
gopd: 1.2.0
|
||||
has-property-descriptors: 1.0.2
|
||||
|
||||
setprototypeof@1.2.0: {}
|
||||
|
||||
shallow-clone@3.0.1:
|
||||
dependencies:
|
||||
kind-of: 6.0.3
|
||||
@@ -10954,6 +11046,8 @@ snapshots:
|
||||
|
||||
split2@4.2.0: {}
|
||||
|
||||
statuses@2.0.2: {}
|
||||
|
||||
strict-uri-encode@1.1.0: {}
|
||||
|
||||
string-convert@0.2.1: {}
|
||||
@@ -11145,6 +11239,8 @@ snapshots:
|
||||
|
||||
toad-cache@3.7.4: {}
|
||||
|
||||
toidentifier@1.0.1: {}
|
||||
|
||||
token-types@6.1.2:
|
||||
dependencies:
|
||||
'@borewit/text-codec': 0.2.2
|
||||
|
||||
Reference in new issue
Block a user