refactor: ⬆️ Upgrade dependencies, use JSR for Hono

This commit is contained in:
Jesse Wierzbinski 2024-07-11 12:56:28 +02:00
parent 57b295ccf2
commit 939815510c
No known key found for this signature in database
109 changed files with 183 additions and 180 deletions

View file

@ -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) => {

View file

@ -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";

View file

@ -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

View file

@ -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";

View file

@ -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) => {

View file

@ -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) => {