mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-20 02:17:34 +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,
|
subdomainName,
|
||||||
tlsaRecord.usage,
|
tlsaRecord.usage,
|
||||||
tlsaRecord.selector,
|
tlsaRecord.selector,
|
||||||
tlsaRecord.matchingType,
|
tlsaRecord.matching_type,
|
||||||
tlsaRecord.certificate
|
tlsaRecord.certificate
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -136,6 +136,10 @@ for (var subdomain in domains) {
|
|||||||
|
|
||||||
// Manage service records
|
// Manage service records
|
||||||
if (data.services) {
|
if (data.services) {
|
||||||
|
if (data.services.bluesky) {
|
||||||
|
records.push(TXT("_atproto." + subdomainName, "\"" + data.services.bluesky + "\""));
|
||||||
|
}
|
||||||
|
|
||||||
if (data.services.discord) {
|
if (data.services.discord) {
|
||||||
if (Array.isArray(data.services.discord)) {
|
if (Array.isArray(data.services.discord)) {
|
||||||
for (var txt in 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 (data.services.gitlab) {
|
||||||
if (Array.isArray(data.services.gitlab)) {
|
if (Array.isArray(data.services.gitlab)) {
|
||||||
for (var txt in 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 + "\""));
|
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}`
|
`${file}: Invalid selector for ${key} at index ${idx}`
|
||||||
);
|
);
|
||||||
t.true(
|
t.true(
|
||||||
Number.isInteger(record.matchingType) && record.matchingType >= 0 && record.matchingType <= 255,
|
Number.isInteger(record.matching_type) && record.matching_type >= 0 && record.matching_type <= 255,
|
||||||
`${file}: Invalid matchingType for ${key} at index ${idx}`
|
`${file}: Invalid matching_type for ${key} at index ${idx}`
|
||||||
);
|
);
|
||||||
t.true(
|
t.true(
|
||||||
isValidHexadecimal(record.certificate),
|
isValidHexadecimal(record.certificate),
|
||||||
|
|||||||
Reference in new issue
Block a user