Merge branch 'main' into patch-3

This commit is contained in:
🔹 mohamed-cyber authored and GitHub committed 2026-09-05 14:24:08 +03:00
commit 3dc846bd1f
6 files changed
+12 -54

No files matched your search

-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "ahmad9059",
"email": "ahmadhassan9059@gmail.com"
},
"records": {
"TXT": "vc-domain-verify-ahmadhassan.is-a.dev,a4d39f00ccf974cccd0e"
}
}
-11
View File
@@ -1,11 +0,0 @@
{
"owner": {
"username": "AVBharath10",
"email": "avbharath1221@gmail.com"
},
"records": {
"TXT": [
"vc-domain-verify-bharathav.is-a.dev,4d40c2ac67021482e173"
]
}
}
-11
View File
@@ -1,11 +0,0 @@
{
"owner": {
"username": "kelvinojedaepn",
"email": "kelvin.ojeda.071@outlook.com"
},
"records": {
"TXT": [
"vc-domain-verify:kelvinoj.is-a.dev,19bf00c0f781d8ea2a9d"
]
}
}
-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "mdwisu",
"email": "dwisusanto784@gmail.com"
},
"records": {
"TXT": "_vercel=vc-domain-verify=mdwisu.is-a.dev,bf198376796ed111ef61"
}
}
+1 -11
View File
@@ -4,16 +4,6 @@
"email": "fahadnaeem424@gmail.com"
},
"records": {
"A": [
"129.213.59.48"
],
"MX": [
"mx1.improvmx.com",
"mx2.improvmx.com"
],
"TXT": [
"v=spf1 include:spf.improvmx.com ~all",
"google-site-verification=EeCD2oH1nUCH_y3ZI-1qiGVn0xsPMzNSvcuzZNTCboI"
]
"NS": ["cora.ns.cloudflare.com", "memphis.ns.cloudflare.com"]
}
}
+11 -3
View File
@@ -296,15 +296,23 @@ function validateRecordValues(t, data, file) {
t("All files should have valid records", (t) => {
files.forEach((file) => {
const data = getDomainData(file);
const recordKeys = Object.keys(data.records);
if (file.startsWith("_vercel")) {
t.true(
/^_vercel\.[^.]+\.json$/.test(file),
`${file}: Files starting with '_vercel' must have format '_vercel.<name>.json'`
);
}
const data = getDomainData(file);
const recordKeys = Object.keys(data.records);
const txtRecords = data.records.TXT;
const txtList = Array.isArray(txtRecords) ? txtRecords : [txtRecords];
t.true(
txtList.length > 0 && txtList.every((record) => typeof record === "string" && record.startsWith("vc-domain-verify=")),
`${file}: Vercel verification files must contain at least one TXT record and all TXT records must start with 'vc-domain-verify='`
);
}
recordKeys.forEach((key) => {
t.true(validateRecordType(key), `${file}: Invalid record type: ${key}`);