feat: add suffix lookup functionality with trie structure
- 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.
This commit is contained in:
23
node_modules/.package-lock.json
generated
vendored
Normal file
23
node_modules/.package-lock.json
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "cpmp",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"node_modules/tldts": {
|
||||
"version": "7.0.18",
|
||||
"resolved": "https://registry.npmjs.org/tldts/-/tldts-7.0.18.tgz",
|
||||
"integrity": "sha512-lCcgTAgMxQ1JKOWrVGo6E69Ukbnx4Gc1wiYLRf6J5NN4HRYJtCby1rPF8rkQ4a6qqoFBK5dvjJ1zJ0F7VfDSvw==",
|
||||
"dependencies": {
|
||||
"tldts-core": "^7.0.18"
|
||||
},
|
||||
"bin": {
|
||||
"tldts": "bin/cli.js"
|
||||
}
|
||||
},
|
||||
"node_modules/tldts-core": {
|
||||
"version": "7.0.18",
|
||||
"resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.0.18.tgz",
|
||||
"integrity": "sha512-jqJC13oP4FFAahv4JT/0WTDrCF9Okv7lpKtOZUGPLiAnNbACcSg8Y8T+Z9xthOmRBqi/Sob4yi0TE0miRCvF7Q=="
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user