Surge_by_SukkaW/Dist/_get-lum-apex-domains.cjs
SukkaW d354c5e988
Some checks are pending
Build / Build (push) Waiting to run
Build / Diff output (push) Blocked by required conditions
Build / Deploy to Cloudflare Pages (push) Blocked by required conditions
Build / Deploy to GitHub and GitLab (push) Blocked by required conditions
Chore: maintainance
2025-02-07 17:52:36 +08:00

29 lines
1.6 KiB
JavaScript

'use strict';const fetchRetry=require('./chunks/fetch-retry.D06uBUaW.cjs'),fetchTextByLine=require('./chunks/fetch-text-by-line.YY5b5610.cjs'),require$$0=require('tldts');require('picocolors'),require('undici'),require('undici-cache-store-better-sqlite3'),require('node:util'),require('node:path'),require('node:fs'),require('node:process'),require('node:readline'),require('node:stream/web'),require('foxts/guard');var _getLumApexDomains$1 = {};var hasRequired_getLumApexDomains;
function require_getLumApexDomains () {
if (hasRequired_getLumApexDomains) return _getLumApexDomains$1;
hasRequired_getLumApexDomains = 1;
Object.defineProperty(_getLumApexDomains$1, "__esModule", {
value: true
});
const _fetchtextbyline = /*@__PURE__*/ fetchTextByLine.a();
const _tldts = /*#__PURE__*/ _interop_require_default(require$$0);
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
(async ()=>{
const lines = await Array.fromAsync(await (0, _fetchtextbyline.fetchRemoteTextByLine)('https://raw.githubusercontent.com/durablenapkin/block/master/luminati.txt', true));
const set = new Set();
lines.forEach((line)=>{
const apexDomain = _tldts.default.getDomain(line.slice(8));
if (apexDomain) {
set.add(apexDomain);
}
});
console.log(Array.from(set).map((line)=>'.' + line).join('\n'));
})();
return _getLumApexDomains$1;
}var _getLumApexDomainsExports = require_getLumApexDomains();
const _getLumApexDomains = /*@__PURE__*/fetchRetry.g(_getLumApexDomainsExports);module.exports=_getLumApexDomains;