Surge_by_SukkaW/Dist/Build/_get-lum-apex-domains2.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

28 lines
1.3 KiB
JavaScript

'use strict';Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});const _getLumApexDomains=require('../_virtual/_get-lum-apex-domains.cjs'),fetchTextByLine=require('./lib/fetch-text-by-line.cjs'),require$$0=require('tldts');var hasRequired_getLumApexDomains;
function require_getLumApexDomains () {
if (hasRequired_getLumApexDomains) return _getLumApexDomains.__exports;
hasRequired_getLumApexDomains = 1;
Object.defineProperty(_getLumApexDomains.__exports, "__esModule", {
value: true
});
const _fetchtextbyline = /*@__PURE__*/ fetchTextByLine.__require();
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.__exports;
}exports.__require=require_getLumApexDomains;