Use foxts more & Improve writing

This commit is contained in:
SukkaW
2025-06-21 15:39:39 +08:00
parent 53380ecd10
commit afac59f09c
7 changed files with 87 additions and 129 deletions

View File

@@ -5,7 +5,7 @@ import { SHARED_DESCRIPTION } from './constants/description';
import { once } from 'foxts/once';
import { RulesetOutput } from './lib/rules/ruleset';
import { $$fetch } from './lib/fetch-retry';
import { fastIpVersion } from './lib/misc';
import { fastIpVersion } from 'foxts/fast-ip-version';
export const getTelegramCIDRPromise = once(async () => {
const resp = await $$fetch('https://core.telegram.org/resources/cidr.txt');