mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-05 00:13:37 +00:00
matchingType -> matching_type
This commit is contained in:
1 parent
e139d62f5f
commit
fb1752b48a
2 files changed
+17
-17
No files matched your search
+15
-15
@@ -111,7 +111,7 @@ for (var subdomain in domains) {
|
||||
subdomainName,
|
||||
tlsaRecord.usage,
|
||||
tlsaRecord.selector,
|
||||
tlsaRecord.matchingType,
|
||||
tlsaRecord.matching_type,
|
||||
tlsaRecord.certificate
|
||||
)
|
||||
);
|
||||
@@ -136,6 +136,10 @@ for (var subdomain in domains) {
|
||||
|
||||
// Manage service records
|
||||
if (data.services) {
|
||||
if (data.services.bluesky) {
|
||||
records.push(TXT("_atproto." + subdomainName, "\"" + data.services.bluesky + "\""));
|
||||
}
|
||||
|
||||
if (data.services.discord) {
|
||||
if (Array.isArray(data.services.discord)) {
|
||||
for (var txt in data.services.discord) {
|
||||
@@ -146,20 +150,6 @@ for (var subdomain in domains) {
|
||||
}
|
||||
}
|
||||
|
||||
if (data.services.vercel) {
|
||||
if (Array.isArray(data.services.vercel)) {
|
||||
for (var txt in data.services.vercel) {
|
||||
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel[txt] + "\""));
|
||||
}
|
||||
} else {
|
||||
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel + "\""));
|
||||
}
|
||||
}
|
||||
|
||||
if (data.services.bluesky) {
|
||||
records.push(TXT("_atproto." + subdomainName, "\"" + data.services.bluesky + "\""));
|
||||
}
|
||||
|
||||
if (data.services.gitlab) {
|
||||
if (Array.isArray(data.services.gitlab)) {
|
||||
for (var txt in data.services.gitlab) {
|
||||
@@ -169,6 +159,16 @@ for (var subdomain in domains) {
|
||||
records.push(TXT("_gitlab-pages-verification-code." + subdomainName, "\"" + data.services.gitlab + "\""));
|
||||
}
|
||||
}
|
||||
|
||||
if (data.services.vercel) {
|
||||
if (Array.isArray(data.services.vercel)) {
|
||||
for (var txt in data.services.vercel) {
|
||||
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel[txt] + "\""));
|
||||
}
|
||||
} else {
|
||||
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel + "\""));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -212,8 +212,8 @@ function validateRecordValues(t, data, file) {
|
||||
`${file}: Invalid selector for ${key} at index ${idx}`
|
||||
);
|
||||
t.true(
|
||||
Number.isInteger(record.matchingType) && record.matchingType >= 0 && record.matchingType <= 255,
|
||||
`${file}: Invalid matchingType for ${key} at index ${idx}`
|
||||
Number.isInteger(record.matching_type) && record.matching_type >= 0 && record.matching_type <= 255,
|
||||
`${file}: Invalid matching_type for ${key} at index ${idx}`
|
||||
);
|
||||
t.true(
|
||||
isValidHexadecimal(record.certificate),
|
||||
|
||||
Reference in new issue
Block a user