nostr-relaypool alias

This commit is contained in:
Alex Gleason 2024-05-01 15:57:28 -05:00
parent 58ed1b111f
commit 9d0be2de0d
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
5 changed files with 6 additions and 3 deletions

View File

@ -29,6 +29,7 @@
"hono/middleware": "https://deno.land/x/hono@v3.10.1/middleware.ts",
"kysely": "npm:kysely@^0.27.3",
"kysely_deno_postgres": "https://deno.land/x/kysely_deno_postgres@v0.4.0/mod.ts",
"nostr-relaypool": "npm:nostr-relaypool2@0.6.34",
"nostr-tools": "npm:nostr-tools@^2.5.1",
"nostr-wasm": "npm:nostr-wasm@^0.1.0",
"zod": "npm:zod@^3.23.4",

View File

@ -1504,6 +1504,7 @@
"jsr:@std/streams@^0.223.0",
"npm:comlink@^4.4.1",
"npm:kysely@^0.27.3",
"npm:nostr-relaypool2@0.6.34",
"npm:nostr-tools@^2.5.1",
"npm:nostr-wasm@^0.1.0",
"npm:zod@^3.23.4"

View File

@ -1,5 +1,4 @@
import 'https://gitlab.com/soapbox-pub/deno-safe-fetch/-/raw/v1.0.0/load.ts';
export { RelayPoolWorker } from 'npm:nostr-relaypool2@0.6.34';
export { parseFormData } from 'npm:formdata-helper@^0.3.0';
// @deno-types="npm:@types/lodash@4.14.194"
export { default as lodash } from 'https://esm.sh/lodash@4.17.21';

View File

@ -1,5 +1,6 @@
import { RelayPoolWorker } from 'nostr-relaypool';
import { getActiveRelays } from '@/db/relays.ts';
import { RelayPoolWorker } from '@/deps.ts';
const activeRelays = await getActiveRelays();

View File

@ -1,7 +1,8 @@
import { NostrEvent, NostrFilter, NSet, NStore } from '@nostrify/nostrify';
import { RelayPoolWorker } from 'nostr-relaypool';
import { matchFilters } from 'nostr-tools';
import { Debug, type RelayPoolWorker } from '@/deps.ts';
import { Debug } from '@/deps.ts';
import { normalizeFilters } from '@/filter.ts';
import { purifyEvent } from '@/storages/hydrate.ts';
import { abortError } from '@/utils/abort.ts';