mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Housekeeping & Make ESLint Happy
This commit is contained in:
@@ -190,7 +190,7 @@ export const buildSpeedtestDomainSet = task(import.meta.main, import.meta.path)(
|
|||||||
.then(setAddFromArrayCurried(domains))
|
.then(setAddFromArrayCurried(domains))
|
||||||
);
|
);
|
||||||
|
|
||||||
await new Promise<void>((resolve) => {
|
await new Promise<void>((resolve, reject) => {
|
||||||
const pMap = ([
|
const pMap = ([
|
||||||
'Hong Kong',
|
'Hong Kong',
|
||||||
'Taiwan',
|
'Taiwan',
|
||||||
@@ -244,8 +244,8 @@ export const buildSpeedtestDomainSet = task(import.meta.main, import.meta.path)(
|
|||||||
|
|
||||||
Promise.all(Object.values(pMap)).then(() => {
|
Promise.all(Object.values(pMap)).then(() => {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
resolve();
|
return resolve();
|
||||||
});
|
}).catch(() => reject);
|
||||||
});
|
});
|
||||||
|
|
||||||
const deduped = span.traceChildSync('sort result', () => sortDomains(domainDeduper(Array.from(domains))));
|
const deduped = span.traceChildSync('sort result', () => sortDomains(domainDeduper(Array.from(domains))));
|
||||||
|
|||||||
@@ -35,14 +35,12 @@ import { getGorhillPublicSuffixPromise } from './get-gorhill-publicsuffix';
|
|||||||
|
|
||||||
bench('tldts', () => {
|
bench('tldts', () => {
|
||||||
for (let i = 0, len = data.length; i < len; i++) {
|
for (let i = 0, len = data.length; i < len; i++) {
|
||||||
// eslint-disable-next-line import-x/namespace -- safe
|
|
||||||
tldts[methodName](data[i], tldtsOpt);
|
tldts[methodName](data[i], tldtsOpt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
bench('tldts-experimental', () => {
|
bench('tldts-experimental', () => {
|
||||||
for (let i = 0, len = data.length; i < len; i++) {
|
for (let i = 0, len = data.length; i < len; i++) {
|
||||||
// eslint-disable-next-line import-x/namespace -- safe
|
|
||||||
tldtsExperimental[methodName](data[i], tldtsOpt);
|
tldtsExperimental[methodName](data[i], tldtsOpt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -61,9 +61,9 @@ export const parseDomesticList = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
await Promise.all([
|
// await Promise.all([
|
||||||
runAgainstRuleset(path.resolve(import.meta.dir, '../List/non_ip/domestic.conf'))
|
await runAgainstRuleset(path.resolve(import.meta.dir, '../List/non_ip/domestic.conf'));
|
||||||
]);
|
// ]);
|
||||||
|
|
||||||
console.log(notIncludedDomestic.size, notIncludedDomestic);
|
console.log(notIncludedDomestic.size, notIncludedDomestic);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1122,9 +1122,10 @@ media.masto.nu
|
|||||||
.misskeyusercontent.jp
|
.misskeyusercontent.jp
|
||||||
o.n1mp.org
|
o.n1mp.org
|
||||||
|
|
||||||
# >> OCSP
|
# >> OCSP & Cert Public Key
|
||||||
r3.o.lencr.org
|
r3.o.lencr.org
|
||||||
ocsp.digicert.com
|
ocsp.digicert.com
|
||||||
|
cacerts.digicert.com
|
||||||
ocsp2.apple.com
|
ocsp2.apple.com
|
||||||
ocsp.sectigo.com
|
ocsp.sectigo.com
|
||||||
crl.usertrust.com
|
crl.usertrust.com
|
||||||
@@ -2004,9 +2005,8 @@ static-mh.content.disney.io
|
|||||||
# Kwai
|
# Kwai
|
||||||
g-static.ap4r.com
|
g-static.ap4r.com
|
||||||
# StripChat
|
# StripChat
|
||||||
assets.strpst.com
|
.strpst.com
|
||||||
img.strpst.com
|
.stripst.com
|
||||||
static-cdn.strpst.com
|
|
||||||
.stripcdn.com
|
.stripcdn.com
|
||||||
.doppiocdn.net
|
.doppiocdn.net
|
||||||
.doppiocdn.com
|
.doppiocdn.com
|
||||||
@@ -2056,6 +2056,8 @@ images.plurk.com
|
|||||||
s.plurk.com
|
s.plurk.com
|
||||||
# dropshare
|
# dropshare
|
||||||
.dsc.cloud
|
.dsc.cloud
|
||||||
|
# SparkNotes
|
||||||
|
img.sparknotes.com
|
||||||
# Others
|
# Others
|
||||||
.ziffstatic.com
|
.ziffstatic.com
|
||||||
.muscache.com
|
.muscache.com
|
||||||
|
|||||||
@@ -11,8 +11,9 @@ DOMAIN-SUFFIX,ai.com
|
|||||||
DOMAIN-SUFFIX,x.ai
|
DOMAIN-SUFFIX,x.ai
|
||||||
DOMAIN-KEYWORD,openai
|
DOMAIN-KEYWORD,openai
|
||||||
# DOMAIN-SUFFIX,openaiapi-site.azureedge.net
|
# DOMAIN-SUFFIX,openaiapi-site.azureedge.net
|
||||||
# Common AI
|
# Perplexity
|
||||||
DOMAIN-SUFFIX,perplexity.ai
|
DOMAIN-SUFFIX,perplexity.ai
|
||||||
|
# Claude
|
||||||
DOMAIN-SUFFIX,anthropic.com
|
DOMAIN-SUFFIX,anthropic.com
|
||||||
DOMAIN-SUFFIX,claude.ai
|
DOMAIN-SUFFIX,claude.ai
|
||||||
# Google Gemini
|
# Google Gemini
|
||||||
|
|||||||
13
package.json
13
package.json
@@ -29,20 +29,19 @@
|
|||||||
"punycode": "^2.3.1",
|
"punycode": "^2.3.1",
|
||||||
"table": "^6.8.2",
|
"table": "^6.8.2",
|
||||||
"tar-stream": "^3.1.7",
|
"tar-stream": "^3.1.7",
|
||||||
"tldts": "^6.1.28",
|
"tldts": "^6.1.29",
|
||||||
"tldts-experimental": "^6.1.28",
|
"tldts-experimental": "^6.1.29",
|
||||||
"yaml": "^2.4.5"
|
"yaml": "^2.4.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint-sukka/node": "6.0.0-beta.3",
|
"@eslint-sukka/node": "^6.0.0-beta.27",
|
||||||
"@eslint-sukka/ts": "6.0.0-beta.3",
|
|
||||||
"@types/async-retry": "^1.4.8",
|
"@types/async-retry": "^1.4.8",
|
||||||
"@types/bun": "^1.1.5",
|
"@types/bun": "^1.1.5",
|
||||||
"@types/tar-stream": "^3.1.3",
|
"@types/tar-stream": "^3.1.3",
|
||||||
"bun-types": "^1.1.15",
|
"bun-types": "^1.1.16",
|
||||||
"eslint": "^9.5.0",
|
"eslint": "^9.5.0",
|
||||||
"eslint-config-sukka": "6.0.0-beta.3",
|
"eslint-config-sukka": "^6.0.0-beta.27",
|
||||||
"eslint-formatter-sukka": "6.0.0-beta.3",
|
"eslint-formatter-sukka": "^6.0.0-beta.27",
|
||||||
"mitata": "^0.1.11",
|
"mitata": "^0.1.11",
|
||||||
"typescript": "^5.5.2"
|
"typescript": "^5.5.2"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user