- Implemented a new suffix-trie.ts file for efficient domain suffix lookups. - Introduced a lookupInTrie function to search for public suffixes in a trie. - Added suffixLookup function to check if a hostname has a valid public suffix. - Created package.json and package-lock.json to manage dependencies, including tldts and tldts-core.
6 lines
51 B
JSON
6 lines
51 B
JSON
{
|
|
"dependencies": {
|
|
"tldts": "^7.0.18"
|
|
}
|
|
}
|