Move nostr-tools to an import alias

This commit is contained in:
Alex Gleason
2024-04-30 18:43:53 -05:00
parent 1d3b06958b
commit 0bb4ccf5c9
24 changed files with 46 additions and 38 deletions

View File

@@ -1,10 +1,11 @@
import { NostrEvent, NostrFilter } from '@nostrify/nostrify';
import { type Context, HTTPException } from 'hono';
import { EventTemplate } from 'nostr-tools';
import { z } from 'zod';
import { type AppContext } from '@/app.ts';
import { Conf } from '@/config.ts';
import { Debug, EventTemplate, parseFormData, type TypeFest } from '@/deps.ts';
import { Debug, parseFormData, type TypeFest } from '@/deps.ts';
import * as pipeline from '@/pipeline.ts';
import { AdminSigner } from '@/signers/AdminSigner.ts';
import { APISigner } from '@/signers/APISigner.ts';

View File

@@ -1,6 +1,8 @@
import { NIP05 } from '@nostrify/nostrify';
import { nip19 } from 'nostr-tools';
import { Conf } from '@/config.ts';
import { Debug, nip19 } from '@/deps.ts';
import { Debug } from '@/deps.ts';
import { SimpleLRU } from '@/utils/SimpleLRU.ts';
import { Time } from '@/utils/time.ts';
import { eventsDB } from '@/storages.ts';

View File

@@ -1,5 +1,6 @@
import { NostrEvent } from '@nostrify/nostrify';
import { type EventTemplate, nip13 } from '@/deps.ts';
import { EventTemplate, nip13 } from 'nostr-tools';
import { decode64Schema, jsonSchema } from '@/schema.ts';
import { signedEventSchema } from '@/schemas/nostr.ts';
import { eventAge, findTag, nostrNow, sha256 } from '@/utils.ts';