diff --git a/deno.json b/deno.json index 526d43f8..e4f23437 100644 --- a/deno.json +++ b/deno.json @@ -34,6 +34,7 @@ "nostr-relaypool": "npm:nostr-relaypool2@0.6.34", "nostr-tools": "npm:nostr-tools@^2.5.1", "nostr-wasm": "npm:nostr-wasm@^0.1.0", + "tldts": "npm:tldts@^6.0.14", "type-fest": "npm:type-fest@^4.3.0", "zod": "npm:zod@^3.23.4", "~/fixtures/": "./fixtures/" diff --git a/src/db/relays.ts b/src/db/relays.ts index 836f520e..da29b796 100644 --- a/src/db/relays.ts +++ b/src/db/relays.ts @@ -1,4 +1,5 @@ -import { tldts } from '@/deps.ts'; +import tldts from 'tldts'; + import { db } from '@/db.ts'; interface AddRelaysOpts { diff --git a/src/deps.ts b/src/deps.ts index 55dc803f..bdab9f46 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -28,7 +28,6 @@ export { } from 'https://raw.githubusercontent.com/alexgleason/deno-sqlite/325f66d8c395e7f6f5ee78ebfa42a0eeea4a942b/mod.ts'; export { Database as DenoSqlite3 } from 'https://deno.land/x/sqlite3@0.9.1/mod.ts'; export * as dotenv from 'https://deno.land/std@0.198.0/dotenv/mod.ts'; -export { default as tldts } from 'npm:tldts@^6.0.14'; export * as cron from 'https://deno.land/x/deno_cron@v1.0.0/cron.ts'; export { S3Client } from 'https://deno.land/x/s3_lite_client@0.6.1/mod.ts'; export { default as IpfsHash } from 'npm:ipfs-only-hash@^4.0.0';