From 8f6452b5fdeb00f473291f48638d0cbe9587935f Mon Sep 17 00:00:00 2001 From: VictoriqueMoe Date: Sun, 24 Mar 2024 18:23:53 +0000 Subject: [PATCH] fix prod build --- src/controllers/rest/impl/security/PassportCtrl.ts | 2 +- src/controllers/secure/AdminView.ts | 2 +- src/controllers/views/HomeView.ts | 2 +- src/engine/impl/index.ts | 10 +++++----- src/middleware/endpoint/CaptchaMiddleWare.ts | 2 +- src/middleware/global/IpFilterMiddleware.ts | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/controllers/rest/impl/security/PassportCtrl.ts b/src/controllers/rest/impl/security/PassportCtrl.ts index 26d6f8c..34c25b5 100644 --- a/src/controllers/rest/impl/security/PassportCtrl.ts +++ b/src/controllers/rest/impl/security/PassportCtrl.ts @@ -10,7 +10,7 @@ import { CustomUserInfoModel } from "../../../../model/auth/CustomUserInfoModel. import { UserService } from "../../../../services/UserService.js"; import { CaptchaMiddleWare } from "../../../../middleware/endpoint/CaptchaMiddleWare.js"; import { DefaultRenderException } from "../../../../model/rest/DefaultRenderException.js"; -import { Request, type Response } from "express"; +import type { Request, Response } from "express"; @Controller("/auth") @Scope(ProviderScope.SINGLETON) diff --git a/src/controllers/secure/AdminView.ts b/src/controllers/secure/AdminView.ts index f859586..3a704af 100644 --- a/src/controllers/secure/AdminView.ts +++ b/src/controllers/secure/AdminView.ts @@ -3,7 +3,7 @@ import { Controller } from "@tsed/di"; import { Authorize } from "@tsed/passport"; import type { CustomUserInfoModel } from "../../model/auth/CustomUserInfoModel.js"; import { Req, Res } from "@tsed/common"; -import { Request, type Response } from "express"; +import type { Request, Response } from "express"; @Controller("/") @Hidden() diff --git a/src/controllers/views/HomeView.ts b/src/controllers/views/HomeView.ts index 96413bd..126c7da 100644 --- a/src/controllers/views/HomeView.ts +++ b/src/controllers/views/HomeView.ts @@ -3,7 +3,7 @@ import { Controller, Inject } from "@tsed/di"; import { Req, Res } from "@tsed/common"; import CaptchaServices from "../../model/constants/CaptchaServices.js"; import { CaptchaManager } from "../../manager/CaptchaManager.js"; -import { Request, type Response } from "express"; +import type { Request, Response } from "express"; @Controller("/") @Hidden() diff --git a/src/engine/impl/index.ts b/src/engine/impl/index.ts index a740727..0eba1b1 100644 --- a/src/engine/impl/index.ts +++ b/src/engine/impl/index.ts @@ -2,14 +2,14 @@ * @file Automatically generated by barrelsby. */ -export * from "./ErrorProcessors/ProcessUploadErrorProcessorEngine.js"; -export * from "./HttpErrorRenderers/AuthenticationErrorRenderEngine.js"; -export * from "./HttpErrorRenderers/DefaultHttpRenderEngine.js"; -export * from "./HttpErrorRenderers/FileProtectedRenderEngine.js"; -export * from "./HttpErrorRenderers/ReCAPTCHALoginExceptionRenderEngine.js"; export * from "./av/ClamAvEngine.js"; export * from "./av/MsDefenderEngine.js"; export * from "./captcha/AbstractCaptchaEngine.js"; export * from "./captcha/HcaptchaEngine.js"; export * from "./captcha/ReCAPTCHAEngine.js"; export * from "./captcha/TurnstileCaptchaEngine.js"; +export * from "./ErrorProcessors/ProcessUploadErrorProcessorEngine.js"; +export * from "./HttpErrorRenderers/AuthenticationErrorRenderEngine.js"; +export * from "./HttpErrorRenderers/DefaultHttpRenderEngine.js"; +export * from "./HttpErrorRenderers/FileProtectedRenderEngine.js"; +export * from "./HttpErrorRenderers/ReCAPTCHALoginExceptionRenderEngine.js"; diff --git a/src/middleware/endpoint/CaptchaMiddleWare.ts b/src/middleware/endpoint/CaptchaMiddleWare.ts index 965a327..b9deae0 100644 --- a/src/middleware/endpoint/CaptchaMiddleWare.ts +++ b/src/middleware/endpoint/CaptchaMiddleWare.ts @@ -1,8 +1,8 @@ import { Middleware, MiddlewareMethods } from "@tsed/platform-middlewares"; import { Inject } from "@tsed/di"; import { CaptchaManager } from "../../manager/CaptchaManager.js"; +import type { Request } from "express"; import { Req } from "@tsed/common"; -import { Request } from "express"; @Middleware() export class CaptchaMiddleWare implements MiddlewareMethods { diff --git a/src/middleware/global/IpFilterMiddleware.ts b/src/middleware/global/IpFilterMiddleware.ts index d8d62ad..d8f0f28 100644 --- a/src/middleware/global/IpFilterMiddleware.ts +++ b/src/middleware/global/IpFilterMiddleware.ts @@ -4,7 +4,7 @@ import { Inject } from "@tsed/di"; import { IpBlackListRepo } from "../../db/repo/IpBlackListRepo.js"; import { Forbidden } from "@tsed/exceptions"; import { NetworkUtils } from "../../utils/Utils.js"; -import { Request } from "express"; +import type { Request } from "express"; @Middleware() export class IpFilterMiddleware implements MiddlewareMethods {