Housekeeping

This commit is contained in:
SukkaW
2026-06-30 16:06:58 +08:00
parent 6939188500
commit d472b9f79a
4 changed files with 264 additions and 244 deletions

View File

@@ -276,7 +276,7 @@ export const buildDomesticRuleset = task(require.main === module, __filename)(as
if (typeof acc.hosts[domain] === 'string') { if (typeof acc.hosts[domain] === 'string') {
acc.hosts[domain] = [acc.hosts[domain]]; acc.hosts[domain] = [acc.hosts[domain]];
} }
acc.hosts[domain].push(...dest); appendArrayInPlace(acc.hosts[domain], dest);
} else if (dest.length === 1) { } else if (dest.length === 1) {
acc.hosts[domain] = dest[0]; acc.hosts[domain] = dest[0];
} else { } else {

View File

@@ -11,6 +11,11 @@ module.exports = require('eslint-config-sukka').sukka({
node: true, node: true,
ts: true, ts: true,
yaml: false yaml: false
}, {
rules: {
'sukka/unicorn/filename-case': 'off',
'sukka/prefer-foxts-noop': 'off'
}
}, { }, {
files: ['./Mock/**/*'], files: ['./Mock/**/*'],
rules: { rules: {

View File

@@ -24,22 +24,22 @@
"@mitata/counters": "^0.0.8", "@mitata/counters": "^0.0.8",
"ci-info": "^4.4.0", "ci-info": "^4.4.0",
"cli-progress": "^3.12.0", "cli-progress": "^3.12.0",
"csv-parse": "^6.2.1", "csv-parse": "^7.0.0",
"domain-alive": "^0.1.22", "domain-alive": "^0.1.22",
"fast-cidr-tools": "^0.3.4", "fast-cidr-tools": "^0.3.4",
"fast-escape-regexp": "^1.0.1", "fast-escape-regexp": "^1.0.1",
"fast-uri": "^4.0.0", "fast-uri": "^4.1.0",
"fdir": "^6.5.0", "fdir": "^6.5.0",
"hash-wasm": "^4.12.0", "hash-wasm": "^4.12.0",
"json-stringify-pretty-compact": "4.0.0", "json-stringify-pretty-compact": "4.0.0",
"null-prototype-object": "^1.2.7", "null-prototype-object": "^1.2.7",
"picocolors": "^1.1.1", "picocolors": "^1.1.1",
"tar-fs": "^3.1.2", "tar-fs": "^3.1.3",
"telegram": "^2.26.22", "telegram": "^2.26.22",
"tinyglobby": "^0.2.17", "tinyglobby": "^0.2.17",
"tldts": "^7.4.2", "tldts": "^7.4.5",
"tldts-experimental": "^7.4.2", "tldts-experimental": "^7.4.5",
"undici": "^8.4.1", "undici": "^8.5.0",
"undici-cache-store-better-sqlite3": "^1.0.1", "undici-cache-store-better-sqlite3": "^1.0.1",
"why-is-node-running": "^3.2.2", "why-is-node-running": "^3.2.2",
"xbits": "^0.2.0", "xbits": "^0.2.0",
@@ -47,19 +47,19 @@
"yauzl-promise": "^4.0.0" "yauzl-promise": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint-sukka/node": "^8.10.5", "@eslint-sukka/node": "^8.13.2",
"@swc-node/register": "^1.11.1", "@swc-node/register": "^1.11.1",
"@swc/core": "1.13.5", "@swc/core": "1.13.5",
"@types/better-sqlite3": "^7.6.13", "@types/better-sqlite3": "^7.6.13",
"@types/cli-progress": "^3.11.6", "@types/cli-progress": "^3.11.6",
"@types/mocha": "^10.0.10", "@types/mocha": "^10.0.10",
"@types/node": "^25.9.2", "@types/node": "^25.9.4",
"@types/tar-fs": "^2.0.4", "@types/tar-fs": "^2.0.4",
"@types/yauzl-promise": "^4.0.1", "@types/yauzl-promise": "^4.0.1",
"earl": "^2.0.0", "earl": "^2.0.0",
"eslint": "^10.4.1", "eslint": "^10.6.0",
"eslint-config-sukka": "^8.10.5", "eslint-config-sukka": "^8.13.2",
"eslint-formatter-sukka": "^8.10.5", "eslint-formatter-sukka": "^8.13.2",
"foxts": "^5.5.1", "foxts": "^5.5.1",
"jest-worker": "^30.4.1", "jest-worker": "^30.4.1",
"mitata": "^1.0.34", "mitata": "^1.0.34",
@@ -67,5 +67,5 @@
"tinyexec": "^1.2.4", "tinyexec": "^1.2.4",
"typescript": "^6.0.3" "typescript": "^6.0.3"
}, },
"packageManager": "pnpm@11.5.2" "packageManager": "pnpm@11.9.0"
} }

477
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff