Import hono with an import alias

This commit is contained in:
Alex Gleason
2024-04-20 18:54:15 -05:00
parent 505a9bced1
commit 64d50552b7
9 changed files with 16 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
import { HTTPException } from 'hono';
import { type AppMiddleware } from '@/app.ts';
import { getPublicKey, HTTPException, nip19 } from '@/deps.ts';
import { getPublicKey, nip19 } from '@/deps.ts';
/** We only accept "Bearer" type. */
const BEARER_REGEX = new RegExp(`^Bearer (${nip19.BECH32_REGEX.source})$`);

View File

@@ -1,6 +1,6 @@
import { NostrEvent } from '@nostrify/nostrify';
import { HTTPException } from 'hono';
import { type AppContext, type AppMiddleware } from '@/app.ts';
import { HTTPException } from '@/deps.ts';
import {
buildAuthEventTemplate,
parseAuthRequest,

View File

@@ -1,4 +1,5 @@
import { Debug, type MiddlewareHandler } from '@/deps.ts';
import { type MiddlewareHandler } from 'hono';
import { Debug } from '@/deps.ts';
import ExpiringCache from '@/utils/expiring-cache.ts';
const debug = Debug('ditto:middleware:cache');