mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: ⬆️ Upgrade dependencies, use JSR for Hono
This commit is contained in:
parent
57b295ccf2
commit
939815510c
109 changed files with 183 additions and 180 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { errorResponse } from "@/response";
|
||||
import { createMiddleware } from "hono/factory";
|
||||
import { createMiddleware } from "@hono/hono/factory";
|
||||
import { config } from "~/packages/config-manager";
|
||||
|
||||
export const agentBans = createMiddleware(async (context, next) => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { response } from "@/response";
|
||||
import { createMiddleware } from "@hono/hono/factory";
|
||||
import { getLogger } from "@logtape/logtape";
|
||||
import type { SocketAddress } from "bun";
|
||||
import { createMiddleware } from "hono/factory";
|
||||
import { matches } from "ip-matching";
|
||||
import { config } from "~/packages/config-manager";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { errorResponse } from "@/response";
|
||||
import { createMiddleware } from "hono/factory";
|
||||
import { createMiddleware } from "@hono/hono/factory";
|
||||
|
||||
export const boundaryCheck = createMiddleware(async (context, next) => {
|
||||
// Checks that FormData boundary is present
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { errorResponse } from "@/response";
|
||||
import { createMiddleware } from "@hono/hono/factory";
|
||||
import { getLogger } from "@logtape/logtape";
|
||||
import type { SocketAddress } from "bun";
|
||||
import { createMiddleware } from "hono/factory";
|
||||
import { matches } from "ip-matching";
|
||||
import { config } from "~/packages/config-manager";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { debugRequest } from "@/api";
|
||||
import { createMiddleware } from "hono/factory";
|
||||
import { createMiddleware } from "@hono/hono/factory";
|
||||
import { config } from "~/packages/config-manager";
|
||||
|
||||
export const logger = createMiddleware(async (context, next) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { errorResponse } from "@/response";
|
||||
import { createMiddleware } from "hono/factory";
|
||||
import { createMiddleware } from "@hono/hono/factory";
|
||||
import { config } from "~/packages/config-manager";
|
||||
|
||||
export const urlCheck = createMiddleware(async (context, next) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue