mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-17 18:14:20 +00:00
vercel verify services key support
This commit is contained in:
1 parent
8efc2ca86e
commit
da7646b8ae
5 files changed
+63
-8
No files matched your search
+10
-1
@@ -339,7 +339,7 @@ t("All files should have valid service records", (t) => {
|
||||
discord.forEach((value) => {
|
||||
const token = value.split("=")[1];
|
||||
|
||||
t.true(value.startsWith("dh="), `${file}: Discord service record should start with "dh="`);
|
||||
t.true(value.startsWith("dh="), `${file}: Invalid Discord service record format`);
|
||||
t.true(token.length === 40, `${file}: Discord service token should be 40 characters long`);
|
||||
t.true(
|
||||
isValidHexadecimal(token),
|
||||
@@ -347,6 +347,15 @@ t("All files should have valid service records", (t) => {
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
if (data?.services?.vercel) {
|
||||
const vercel = Array.isArray(data.services.vercel) ? data.services.vercel : [data.services.vercel];
|
||||
|
||||
vercel.forEach((value) => {
|
||||
t.true(value.startsWith("vc-domain-verify="), `${file}: Invalid Vercel service record format`);
|
||||
t.true(value.length > 48, `${file}: Vercel service token should be longer than 48 characters`);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
t.pass();
|
||||
|
||||
Reference in new issue
Block a user