Merge branch 'main' into main

This commit is contained in:
okcoder1 authored and GitHub committed 2026-07-29 16:33:54 +05:30
commit d6a60e3664
91 files changed
+2604 -80

No files matched your search

+7 -4
View File
@@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- run: npm install
- run: npm ci
- name: Fetch PR information
if: github.event_name == 'pull_request'
@@ -42,11 +42,14 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
- name: Run DNSControl tests
- uses: gacts/install-dnscontrol@890ba3249712c51203ccb7aba63307c0091e921b # v1.3.4
if: github.event_name == 'pull_request' && contains(fromJson(env.CHANGED_FILES), 'dnsconfig.js')
uses: is-a-dev/dnscontrol-action@main
with:
args: check
version: 4.14.0
- name: Run DNSControl checks
run: dnscontrol check
if: github.event_name == 'pull_request' && contains(fromJson(env.CHANGED_FILES), 'dnsconfig.js')
- name: Run tests
run: npx ava tests/*.test.js --timeout=1m
+5 -2
View File
@@ -19,6 +19,9 @@ jobs:
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: is-a-dev/dnscontrol-action@main
- uses: gacts/install-dnscontrol@890ba3249712c51203ccb7aba63307c0091e921b # v1.3.4
with:
args: check
version: 4.14.0
- name: Run DNSControl checks
run: dnscontrol check
+5 -3
View File
@@ -21,12 +21,14 @@ jobs:
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: gacts/install-dnscontrol@890ba3249712c51203ccb7aba63307c0091e921b # v1.3.4
with:
version: 4.14.0
- name: Generate creds.json
run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json
- name: Push DNS records
uses: is-a-dev/dnscontrol-action@main
run: dnscontrol push
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
with:
args: push
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
run: echo "raw.is-a.dev" > raw-api/CNAME
- name: Commit
uses: cpina/github-action-push-to-another-repository@main
uses: cpina/github-action-push-to-another-repository@55306faa4ed53b815ae49e564af8cfb359d32ae2 # v1.7.3
with:
source-directory: "raw-api"
destination-github-username: is-a-dev
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "NipunXD",
"email": "aroranipun10@gmail.com"
},
"records": {
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "syafiq-dev",
"email": "syafiq.dev@pm.me"
},
"records": {
"A": ["216.198.79.1"]
}
}
@@ -0,0 +1,9 @@
{
"owner": {
"username": "SulaimanAlizada",
"email": "SulaimanAlizada9@gmail.com"
},
"records": {
"CNAME": "88b86e1d-d7c1-4ae2-bee8-e4e9c5fb9614.acmedns.infinityfree.net"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "mareksmareks",
"email": "mareks.kirilovics@gmail.com"
},
"records": {
"TXT": "v=DMARC1; p=none;"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "SulaimanAlizada",
"email": "SulaimanAlizada9@gmail.com"
},
"records": {
"TXT": "v=DMARC1; p=none; rua=mailto:Sulaiman@sulaimandigital.is-a.dev; ruf=mailto:Sulaiman@sulaimandigital.is-a.dev; sp=none; adkim=r; aspf=r; pct=100"
}
}
@@ -0,0 +1,9 @@
{
"owner": {
"username": "11sid11",
"email": "sid6117828@gmail.com"
},
"records": {
"TXT": "3ee5f5a1c7920d09e2e2cf4699bbc2"
}
}
@@ -0,0 +1,9 @@
{
"owner": {
"username": "jeusbausa",
"email": "jeusdbausa@gmail.com"
},
"records": {
"TXT": "42af5c69b60051f46e6b84c0688f11"
}
}
@@ -0,0 +1,9 @@
{
"owner": {
"username": "midnightma",
"email": "mahdi.ahmadi.1387@gmail.com"
},
"records": {
"TXT": "963007de080977939cfc74a8c4bc4b"
}
}
@@ -0,0 +1,9 @@
{
"owner": {
"username": "YOCRRZ224",
"email": "yocrrz@yocrrz.is-a.dev"
},
"records": {
"TXT": "3da50341d9347d1df195067fdc83b5"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "NipunXD",
"email": "aroranipun10@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=0xnipun.is-a.dev,678651b428079b74efce"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "syafiq-dev",
"email": "syafiq.dev@pm.me"
},
"records": {
"TXT": "vc-domain-verify=10.is-a.dev,fd523ac640f0ed095c32"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "aquaxs1"
},
"records": {
"TXT": "vc-domain-verify=aqua.is-a.dev,c86d96ea9de1d85b550c"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "davidc-garciae",
"email": "davidc.garciae@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=davidg.is-a.dev,2206563ca74870155c08"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Feroan101",
"email": "feroanmothy666@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=feroan.is-a.dev,e4adc3a559fdba3272a1"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "KrishanuRoyEng"
},
"records": {
"TXT": "vc-domain-verify=krishanuroy.is-a.dev,eacdc4f43348d95e3544"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "karan5028ji",
"email": "Karan5028ji@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=kxrn.is-a.dev,4c7305de238c8ebd5329"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"owner": {
"username": "emoncse2020"
},
"records": {
"TXT": [
"vc-domain-verify=morsalin.is-a.dev,fff37cff597e6053407d"
]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "zoro-512",
"email": "siddhartha2087@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=siddhartha2087.is-a.dev,f20b3d6f29be373f8d8f"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "zxyren",
"email": "cheathekm@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=socheath.is-a.dev,08e7c378f7ae5916dbb0"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "syafiq-dev",
"email": "syafiq.dev@pm.me"
},
"records": {
"TXT": "vc-domain-verify=syafiq.is-a.dev,3ed3aeebca7b8ce5cbfd"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "VeerRaj-007",
"email": "veerrajkumar9414@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=veerraj.is-a.dev,2e78e7feb9283e278dad"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "vinimachadosantana",
"email": "vinimachadosantana@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=vinimachadosantana.is-a.dev,244647a5471020706c99"
}
}
-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "YoussefDevPro",
"email": "youssef.pro.coding@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=youssef.is-a.dev,8a21ff17b71b3518be3c"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "AndyFaniry",
"email": "ramarosonandyfaniry@gmail.com"
},
"records": {
"CNAME": "andy-ramaroson.pages.dev"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "aquaxs1"
},
"records": {
"A": ["216.198.79.1"]
}
}
-11
View File
@@ -1,11 +0,0 @@
{
"description": "Website portofolio pribadi saya",
"repo": "https://github.com/vinnntha/Portof",
"owner": {
"username": "vinnntha",
"email": "averill.kevinatha28@gmail.com"
},
"records": {
"CNAME": "portof-knmx-ochre.vercel.app"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "AyChEs"
},
"records": {
"CNAME": "cname.vercel-dns.com"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "BingYue999",
"email": "byue6899@gmail.com"
},
"records": {
"CNAME": "bingyue999.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "cma124",
"email": "chan.myae.a.099@gmail.com"
},
"records": {
"A": ["75.2.60.5"]
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"description": "David García's personal website",
"owner": {
"username": "davidc-garciae",
"email": "davidc.garciae@gmail.com"
},
"records": {
"A": ["216.198.79.1"]
}
}
+7 -1
View File
@@ -3,7 +3,13 @@
"username": "Anshulpj12",
"email": "anshulprajapati2220@gmail.com"
},
"proxied": true,
"records": {
"CNAME": "anshulpj12.github.io"
"CNAME": "anshulpj12.github.io",
"MX": [
"mx1.improvmx.com",
"mx2.improvmx.com"
],
"TXT": "v=spf1 include:spf.improvmx.com ~all"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "yoyoworks",
"email": "yoyoworks2026@outlook.com"
},
"records": {
"TXT": "reclaim-geyes5dj80gj216ntxpt29mhztiropii"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "ExpertCrafts",
"email": "ppp06112009@gmail.com"
},
"records": {
"CNAME": "expertcrafts.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "FahadNaeem424",
"email": "fahadnaeem424@gmail.com"
},
"records": {
"A": ["79.72.72.15"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "FahadNaeem424",
"email": "fahadnaeem424@gmail.com"
},
"records": {
"A": ["79.72.72.15"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Feroan101",
"email": "feroanmothy666@gmail.com"
},
"records": {
"A": ["216.198.79.1"]
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "notamitgamer"
},
"records": {
"CNAME": "notamitgamer.pagekite.me"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "haidar17-dev",
"email": "adeelhaidar95@gmail.com"
},
"records": {
"CNAME": "haidar17-dev.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "jamesng16",
"email": "ngviethoang.work@gmail.com"
},
"records": {
"URL": "https://jamesng16.github.io/Portfolio/"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "JHAMES001",
"email": "jhamesgequinto@gmail.com"
},
"records": {
"CNAME": "jhames001.github.io"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "KosmicznyNomad"
},
"records": {
"CNAME": "custom-domains.chatgpt.site"
}
}
+1 -1
View File
@@ -3,6 +3,6 @@
"username": "KrishanuRoyEng"
},
"records": {
"CNAME": "cname.vercel-dns.com"
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "karan5028ji",
"email": "Karan5028ji@gmail.com"
},
"records": {
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "luciano-veiga",
"email": "veiga.luciano@gmail.com"
},
"records": {
"CNAME": "luciano-veiga.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "mahunaromaric",
"email": "romamahuna@gmail.com"
},
"records": {
"CNAME": "cname.vercel-dns.com"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "makaravich",
"email": "dmakar.ski@gmail.com"
},
"records": {
"A": [
"66.45.23.70"
]
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Portafolio de Mario Fajardo - Desarrollador Fullstack",
"repo": "https://github.com/MarioFajard0/portafolio",
"owner": {
"username": "MarioFajard0",
"email": "bymariow@icloud.com"
},
"records": {
"CNAME": "mariofajardo.netlify.app"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "midnightma",
"email": "mahdi.ahmadi.1387@gmail.com"
},
"records": {
"CNAME": "midnightma.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "merna112",
"email": "mernaadel182@gmail.com"
},
"records": {
"CNAME": "portfolio-five-umber-54.vercel.app"
}
}
+2 -3
View File
@@ -1,9 +1,8 @@
{
"owner": {
"username": "emoncse2020",
"email": "emon.cse.2020@gmail.com"
"username": "emoncse2020"
},
"records": {
"CNAME": "cname.vercel-dns.com"
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "zahidhml",
"email": "mzahidiqbal129@gmail.com"
},
"records": {
"CNAME": "zahidhml.github.io"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "nandamade"
},
"records": {
"CNAME": "nandamade.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "nayra-singh",
"email": "singhnayra364@gmail.com"
},
"records": {
"CNAME": "nayra-singh.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "niladrisamanta",
"email": "niladris12345@gmail.com"
},
"records": {
"CNAME": "resume-dol.pages.dev"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "niloyahsan1"
},
"records": {
"CNAME": "niloyahsan1.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "nisheri-ascar",
"email": "kertkert704@gmail.com"
},
"records": {
"CNAME": "nisheri-ascar.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "mareksmareks",
"email": "mareks.kirilovics@gmail.com"
},
"records": {
"TXT": "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMkOUNCdM/OiSiZ2X1Hn5rpV/pj47L+sUGJG72CMBgeLzkGdKcE7iO0M439EPAUUaAF9NS4cBMDTTyknvvpZyraF6DNyeC9UK4l7uAsOzqfvSre5r1IfeB+mDxEmpanZhrokF8ZnON1slOhHhfLJSpACYtDMp13aRBXJLzRQidnwIDAQAB"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "MR-Rudra98",
"email": "mrrudra98889@gmail.com"
},
"records": {
"CNAME": "portfoliowebsite-3i3c.onrender.com"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Balaji-Coder06",
"email": "sbalaji272006@gmail.com"
},
"records": {
"CNAME": "portfolio-weld-seven-35.vercel.app"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"owner": {
"username": "seanburkes"
},
"records": {
"URL": "https://github.com/seanburkes"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Seb-fd",
"email": "sebastianfd005@gmail.com"
},
"records": {
"CNAME": "cname.vercel-dns.com"
}
}
+15
View File
@@ -0,0 +1,15 @@
{
"owner": {
"username": "mareksmareks",
"email": "mareks.kirilovics@gmail.com"
},
"records": {
"MX": [
{
"priority": 10,
"target": "feedback-smtp.eu-west-1.amazonses.com"
}
],
"TXT": "v=spf1 include:amazonses.com ~all"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "SevenLee23",
"email": "lequangthanh7t@gmail.com"
},
"records": {
"CNAME": "SevenLee23.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Shaunakrane914",
"email": "shaunakrane914@gmail.com"
},
"records": {
"CNAME": "sr914.netlify.app"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "zoro-512",
"email": "siddhartha2087@gmail.com"
},
"records": {
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "YOCRRZ224",
"email": "yocrrz@yocrrz.is-a.dev"
},
"records": {
"CNAME": "YOCRRZ224.github.io"
}
}
+1 -1
View File
@@ -4,6 +4,6 @@
"email": "cheathekm@gmail.com"
},
"records": {
"CNAME": "zentharou.vercel.app"
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "srushtipagariya23",
"email": "pagariyasrushti@gmail.com"
},
"records": {
"CNAME": "srushtipagariya23.github.io"
}
}
+18
View File
@@ -7,6 +7,24 @@
"records": {
"A": [
"185.27.134.231"
],
"TXT": [
"v=spf1 include:zohomail.com ~all",
"zoho-verification=zb37123236.zmverify.zoho.com"
],
"MX": [
{
"target": "mx.zoho.com",
"priority": 10
},
{
"target": "mx2.zoho.com",
"priority": 20
},
{
"target": "mx3.zoho.com",
"priority": 50
}
]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "sumit0xff",
"email": "Sumit0xff@proton.me"
},
"records": {
"CNAME": "sumit0xff.vercel.app"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"description": "Portfolio site github pages",
"owner": {
"username": "assamteaconnect",
"email": "assamteaconnect@gmail.com"
},
"records": {
"CNAME": "assamteaconnect.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "treoa",
"email": "suleymenov.anuar.01@gmail.com"
},
"records": {
"CNAME": "treoa.github.io"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "VeerRaj-007",
"email": "veerrajkumar9414@gmail.com"
},
"records": {
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "vinimachadosantana",
"email": "vinimachadosantana@gmail.com"
},
"records": {
"A": ["216.198.79.1"]
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "cma124",
"email": "chan.myae.a.099@gmail.com"
},
"records": {
"CNAME": "chanmyaeaung124.netlify.app"
}
}
-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "YoussefDevPro",
"email": "youssef.pro.coding@gmail.com"
},
"records": {
"CNAME": "youssef-portfolio-sigma-youssefdevpros-projects.vercel.app"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "yoyoworks",
"email": "yoyoworks2026@outlook.com"
},
"records": {
"CNAME": "yoyoworks.github.io"
}
}
@@ -0,0 +1,9 @@
{
"owner": {
"username": "SulaimanAlizada",
"email": "SulaimanAlizada9@gmail.com"
},
"records": {
"TXT": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkiwgqjNc+ALbaXY3Lw2+fR+HjMg0YAyu4XrfHGI0x8bgbCaGXrMjWzAwfK593iOObHgmu4CcxCXg+TDmdWFisfYi8zak6sBCZcOGfWGseEHQ+Ka2rLSCOUhi43zJAHFCd1IsuIpKQ0tCW5NwHnKu6r6JZLXee/j/f9KYp6K3QuzfCzXw/vXktcYPSZRyYjIgvYEZQ2AUHegYyyT5VHYfMKGbit0In9SlgvT1na9ZkF+z8uE4I2T8M9oezgEP4gpjnpalYntb9FqmuC/cWfCjV7cvvsXjHHlm5Ilhd1tyC3SEUIvTbPAD7viNT1mdOE+/T0YaPKWVqQCgR40j+u9VCwIDAQAB"
}
}
+1873
View File
File diff suppressed because it is too large. Load diff
+6 -5
View File
@@ -1,9 +1,10 @@
{
"devDependencies": {
"ava": "^6.2.0",
"fs-extra": "^11.2.0"
},
"type": "module",
"scripts": {
"test": "npx ava tests/*.test.js"
},
"devDependencies": {
"ava": "^8.0.1",
"fs-extra": "^11.4.0"
}
}
}
+3 -3
View File
@@ -1,6 +1,6 @@
const t = require("ava");
const fs = require("fs-extra");
const path = require("path");
import t from "ava";
import fs from "fs-extra";
import path from "path";
const domainsPath = path.resolve("domains");
const files = fs.readdirSync(domainsPath).filter((file) => file.endsWith(".json"));
+6 -6
View File
@@ -1,6 +1,9 @@
const t = require("ava");
const fs = require("fs-extra");
const path = require("path");
import t from "ava";
import fs from "fs-extra";
import path from "path";
import internalDomains from "../util/internal.json" with { type: "json" };
import reservedDomains from "../util/reserved.json" with { type: "json" };
const ignoredRootJSONFiles = ["package-lock.json", "package.json"];
@@ -32,9 +35,6 @@ const blockedFields = ["domain", "internal", "proxy", "reserved", "services", "s
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
const hostnameRegex = /^(?=.{1,253}$)(?:(?:[_a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)\.)+[a-zA-Z]{2,63}$/;
const internalDomains = require("../util/internal.json");
const reservedDomains = require("../util/reserved.json");
const domainsPath = path.resolve("domains");
const files = fs.readdirSync(domainsPath);
+5 -4
View File
@@ -1,9 +1,10 @@
const t = require("ava");
const fs = require("fs-extra");
const path = require("path");
import t from "ava";
import fs from "fs-extra";
import path from "path";
import trustedUsers from "../util/trusted.json" with { type: "json" };
const requiredEnvVars = ["PR_AUTHOR", "PR_AUTHOR_ID"];
const trustedUsers = require("../util/trusted.json");
const trusted = trustedUsers.map((u) => u.id.toString());
const admins = trustedUsers.filter((u) => u.admin).map((u) => u.id.toString());
+3 -3
View File
@@ -1,6 +1,6 @@
const t = require("ava");
const fs = require("fs-extra");
const path = require("path");
import t from "ava";
import fs from "fs-extra";
import path from "path";
const requiredRecordsToProxy = new Set(["A", "AAAA", "CNAME"]);
+5 -5
View File
@@ -1,6 +1,8 @@
const t = require("ava");
const fs = require("fs-extra");
const path = require("path");
import t from "ava";
import fs from "fs-extra";
import path from "path";
import disallowedCNAMEs from "../util/disallowed-cnames.json" with { type: "json" };
const validRecordTypes = new Set(["A", "AAAA", "CAA", "CNAME", "DS", "MX", "NS", "SRV", "TLSA", "TXT", "URL"]);
const hostnameRegex = /^(?=.{1,253}$)(?:(?:[_a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)\.)+[a-zA-Z]{2,63}$/;
@@ -88,8 +90,6 @@ function isValidHexadecimal(value) {
return /^[0-9a-fA-F]+$/.test(value);
}
const disallowedCNAMEs = require("../util/disallowed-cnames.json");
function validateRecordValues(t, data, file) {
const subdomain = file.replace(/\.json$/, "");
+13 -1
View File
@@ -1,5 +1,17 @@
[
".adult",
".blob.core.windows.net",
".cf",
".cfargotunnel.com",
".ga",
".gq",
".ml",
".porn",
".r2.dev",
".sex",
".sexy",
".trycloudflare.com",
".workers.dev"
".tk",
".workers.dev",
".xxx"
]
+9 -8
View File
@@ -1,8 +1,11 @@
const fs = require("fs");
const path = require("path");
import fs from "fs";
import path from "path";
const directoryPath = path.join(__dirname, "../domains");
const outputDir = path.join(__dirname, "../raw-api");
import internal from "./internal.json" with { type: "json" };
import reserved from "./reserved.json" with { type: "json" };
const directoryPath = "./domains";
const outputDir = "./raw-api";
const domainsOutputDir = path.join(outputDir, "v2", "domains");
if (!fs.existsSync(outputDir)) {
@@ -12,10 +15,6 @@ if (!fs.existsSync(domainsOutputDir)) {
fs.mkdirSync(domainsOutputDir, { recursive: true });
}
const internal = require(path.join(__dirname, "internal.json"));
const reserved = require(path.join(__dirname, "reserved.json"));
const v2 = [];
function writeDomainFile(entry) {
fs.writeFileSync(
path.join(domainsOutputDir, `${entry.subdomain}.json`),
@@ -23,6 +22,8 @@ function writeDomainFile(entry) {
);
}
const v2 = [];
for (const subdomain of internal) {
const entry = {
domain: `${subdomain}.is-a.dev`,