nostr-relaypool alias
This commit is contained in:
parent
58ed1b111f
commit
9d0be2de0d
|
@ -29,6 +29,7 @@
|
||||||
"hono/middleware": "https://deno.land/x/hono@v3.10.1/middleware.ts",
|
"hono/middleware": "https://deno.land/x/hono@v3.10.1/middleware.ts",
|
||||||
"kysely": "npm:kysely@^0.27.3",
|
"kysely": "npm:kysely@^0.27.3",
|
||||||
"kysely_deno_postgres": "https://deno.land/x/kysely_deno_postgres@v0.4.0/mod.ts",
|
"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-tools": "npm:nostr-tools@^2.5.1",
|
||||||
"nostr-wasm": "npm:nostr-wasm@^0.1.0",
|
"nostr-wasm": "npm:nostr-wasm@^0.1.0",
|
||||||
"zod": "npm:zod@^3.23.4",
|
"zod": "npm:zod@^3.23.4",
|
||||||
|
|
|
@ -1504,6 +1504,7 @@
|
||||||
"jsr:@std/streams@^0.223.0",
|
"jsr:@std/streams@^0.223.0",
|
||||||
"npm:comlink@^4.4.1",
|
"npm:comlink@^4.4.1",
|
||||||
"npm:kysely@^0.27.3",
|
"npm:kysely@^0.27.3",
|
||||||
|
"npm:nostr-relaypool2@0.6.34",
|
||||||
"npm:nostr-tools@^2.5.1",
|
"npm:nostr-tools@^2.5.1",
|
||||||
"npm:nostr-wasm@^0.1.0",
|
"npm:nostr-wasm@^0.1.0",
|
||||||
"npm:zod@^3.23.4"
|
"npm:zod@^3.23.4"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import 'https://gitlab.com/soapbox-pub/deno-safe-fetch/-/raw/v1.0.0/load.ts';
|
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';
|
export { parseFormData } from 'npm:formdata-helper@^0.3.0';
|
||||||
// @deno-types="npm:@types/lodash@4.14.194"
|
// @deno-types="npm:@types/lodash@4.14.194"
|
||||||
export { default as lodash } from 'https://esm.sh/lodash@4.17.21';
|
export { default as lodash } from 'https://esm.sh/lodash@4.17.21';
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
import { RelayPoolWorker } from 'nostr-relaypool';
|
||||||
|
|
||||||
import { getActiveRelays } from '@/db/relays.ts';
|
import { getActiveRelays } from '@/db/relays.ts';
|
||||||
import { RelayPoolWorker } from '@/deps.ts';
|
|
||||||
|
|
||||||
const activeRelays = await getActiveRelays();
|
const activeRelays = await getActiveRelays();
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import { NostrEvent, NostrFilter, NSet, NStore } from '@nostrify/nostrify';
|
import { NostrEvent, NostrFilter, NSet, NStore } from '@nostrify/nostrify';
|
||||||
|
import { RelayPoolWorker } from 'nostr-relaypool';
|
||||||
import { matchFilters } from 'nostr-tools';
|
import { matchFilters } from 'nostr-tools';
|
||||||
|
|
||||||
import { Debug, type RelayPoolWorker } from '@/deps.ts';
|
import { Debug } from '@/deps.ts';
|
||||||
import { normalizeFilters } from '@/filter.ts';
|
import { normalizeFilters } from '@/filter.ts';
|
||||||
import { purifyEvent } from '@/storages/hydrate.ts';
|
import { purifyEvent } from '@/storages/hydrate.ts';
|
||||||
import { abortError } from '@/utils/abort.ts';
|
import { abortError } from '@/utils/abort.ts';
|
||||||
|
|
Loading…
Reference in New Issue