mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-15 10:40:33 +08:00
Chore: minor changes
This commit is contained in:
parent
b378a4e87c
commit
b0124e22f7
@ -450,6 +450,7 @@ export const PREDEFINED_WHITELIST = [
|
|||||||
'.lon.llnw.net', // There is no point in adding these, many subdomains are dead anyway
|
'.lon.llnw.net', // There is no point in adding these, many subdomains are dead anyway
|
||||||
'.lcy.llnw.net', // There is no point in adding these, many subdomains are dead anyway
|
'.lcy.llnw.net', // There is no point in adding these, many subdomains are dead anyway
|
||||||
'repo.huaweicloud.com', // urlhaus
|
'repo.huaweicloud.com', // urlhaus
|
||||||
|
'.hubspotlinks.com', // Peter Lowe Hosts
|
||||||
|
|
||||||
// Expired domains
|
// Expired domains
|
||||||
'.expobarrio.com',
|
'.expobarrio.com',
|
||||||
|
|||||||
12
Build/lib/process-line.bench.ts
Normal file
12
Build/lib/process-line.bench.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { fetchRemoteTextByLine } from './fetch-text-by-line';
|
||||||
|
import { processLine } from './process-line';
|
||||||
|
|
||||||
|
import { bench, run } from 'mitata';
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
const data = await Array.fromAsync(await fetchRemoteTextByLine('https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt', false));
|
||||||
|
|
||||||
|
bench('processLine', () => data.forEach(processLine));
|
||||||
|
|
||||||
|
run();
|
||||||
|
})();
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import { describe, it } from 'mocha';
|
import { describe, it } from 'mocha';
|
||||||
|
|
||||||
import { processLine } from './process-line';
|
import { processLine } from './process-line';
|
||||||
import expect from 'expect';
|
import { expect } from 'expect';
|
||||||
|
|
||||||
describe('processLine', () => {
|
describe('processLine', () => {
|
||||||
([
|
([
|
||||||
|
|||||||
@ -799,6 +799,3 @@ The `List/ip/china_ip.conf` file is licensed under [CC BY-SA 2.0](https://creati
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a href="https://api.gitsponsors.com/api/badge/link?p=6S+bnjregZ7KydXomsFzcPnzQbRNVb1XBxBmLK/i19l1Bi5Uh2WRZ4W12lbIzgrHRiP4ZnUi2T53QmxPojr+38otmzAe8WA7KTVELmmPmES7Dko7w34WphSJnz1FAz/RbQuGfDLHTWxDhnOEBuCwLw==" style="display: none">
|
|
||||||
<img src="https://api.gitsponsors.com/api/badge/img?id=323379491" height="0">
|
|
||||||
</a>
|
|
||||||
|
|||||||
@ -821,7 +821,8 @@ comments.gazo.space
|
|||||||
.plausible.io
|
.plausible.io
|
||||||
.statfox.io
|
.statfox.io
|
||||||
.trackjs.com
|
.trackjs.com
|
||||||
api.openpanel.dev
|
.openpanel.dev
|
||||||
|
openpanel.follow.is
|
||||||
plausible.astexplorer.net
|
plausible.astexplorer.net
|
||||||
simple.cloudsmith.com
|
simple.cloudsmith.com
|
||||||
.mktg.tags.f5.com
|
.mktg.tags.f5.com
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ghostery/adblocker": "^2.3.1",
|
"@ghostery/adblocker": "^2.3.1",
|
||||||
"@henrygd/queue": "^1.0.7",
|
"@henrygd/queue": "^1.0.7",
|
||||||
|
"@mitata/counters": "^0.0.8",
|
||||||
"async-retry": "^1.3.3",
|
"async-retry": "^1.3.3",
|
||||||
"better-sqlite3": "^11.8.1",
|
"better-sqlite3": "^11.8.1",
|
||||||
"cacache": "^19.0.1",
|
"cacache": "^19.0.1",
|
||||||
|
|||||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@ -25,6 +25,9 @@ importers:
|
|||||||
'@henrygd/queue':
|
'@henrygd/queue':
|
||||||
specifier: ^1.0.7
|
specifier: ^1.0.7
|
||||||
version: 1.0.7
|
version: 1.0.7
|
||||||
|
'@mitata/counters':
|
||||||
|
specifier: ^0.0.8
|
||||||
|
version: 0.0.8
|
||||||
async-retry:
|
async-retry:
|
||||||
specifier: ^1.3.3
|
specifier: ^1.3.3
|
||||||
version: 1.3.3
|
version: 1.3.3
|
||||||
@ -286,6 +289,9 @@ packages:
|
|||||||
resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==}
|
resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==}
|
||||||
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
||||||
|
|
||||||
|
'@mitata/counters@0.0.8':
|
||||||
|
resolution: {integrity: sha512-f11w0Y1ETFlarDP7CePj8Z+y8Gv5Ax4gMxWsEwrqh0kH/YIY030Ezx5SUJeQg0YPTZ2OHKGcLG1oGJbIqHzaJA==}
|
||||||
|
|
||||||
'@napi-rs/wasm-runtime@0.2.5':
|
'@napi-rs/wasm-runtime@0.2.5':
|
||||||
resolution: {integrity: sha512-kwUxR7J9WLutBbulqg1dfOrMTwhMdXLdcGUhcbCcGwnPLt3gz19uHVdwH1syKVDbE022ZS2vZxOWflFLS0YTjw==}
|
resolution: {integrity: sha512-kwUxR7J9WLutBbulqg1dfOrMTwhMdXLdcGUhcbCcGwnPLt3gz19uHVdwH1syKVDbE022ZS2vZxOWflFLS0YTjw==}
|
||||||
|
|
||||||
@ -2004,6 +2010,8 @@ snapshots:
|
|||||||
'@types/yargs': 17.0.33
|
'@types/yargs': 17.0.33
|
||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
|
|
||||||
|
'@mitata/counters@0.0.8': {}
|
||||||
|
|
||||||
'@napi-rs/wasm-runtime@0.2.5':
|
'@napi-rs/wasm-runtime@0.2.5':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@emnapi/core': 1.3.1
|
'@emnapi/core': 1.3.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user