- 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.
29 lines
799 B
JSON
29 lines
799 B
JSON
{
|
|
"name": "cpmp",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"dependencies": {
|
|
"tldts": "^7.0.18"
|
|
}
|
|
},
|
|
"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=="
|
|
}
|
|
}
|
|
}
|