Refactor: adjust more output

This commit is contained in:
SukkaW
2024-09-21 19:04:11 +08:00
parent 7c372b3b8c
commit eeeadbc86b
10 changed files with 131 additions and 133 deletions

View File

@@ -4,6 +4,7 @@ import { createTrie } from './lib/trie';
import path from 'node:path';
import { processLine } from './lib/process-line';
import { extractDomainsFromFelixDnsmasq } from './lib/parse-dnsmasq';
import { SOURCE_DIR } from './constants/dir';
export const parseDomesticList = async () => {
const set = new Set<string>();
@@ -62,7 +63,7 @@ export const parseDomesticList = async () => {
};
// await Promise.all([
await runAgainstRuleset(path.resolve(__dirname, '../List/non_ip/domestic.conf'));
await runAgainstRuleset(path.resolve(SOURCE_DIR, 'non_ip/domestic.conf'));
// ]);
console.log(notIncludedDomestic.size, notIncludedDomestic);