feat: let's goooo
Lint / Oxlint (push) Successful in 48s
Deploy / Build (push) Failing after 51s
Lint / ESLint (push) Successful in 57s
Lint / TypeScript (push) Successful in 57s

This commit is contained in:
2026-06-15 19:51:43 +02:00
parent 9d1119b9ed
commit f7dd54f877
12 changed files with 293 additions and 371 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ import { getTLDList } from "./tld";
import englishWords from "@/data/english.txt?raw";
import frenchWords from "@/data/french.txt?raw";
import { randomElement, shuffled } from "./random";
import type { WhoIs } from "./whois";
export class DomainFactory {
tldList: string[] = [];
@@ -9,9 +10,9 @@ export class DomainFactory {
words: Record<string, string[]> = {};
generated: string[] = [];
async init() {
async init(whois: WhoIs) {
try {
this.tldList = await getTLDList();
this.tldList = await getTLDList(whois);
} catch (e) {
this.error = "Could not load TLD list";
throw e;