mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-11-13 23:40:51 -06:00
Update deps
This commit is contained in:
@@ -131,7 +131,7 @@ export function documentEnvVars(): EnvVar[] {
|
||||
const names = [
|
||||
...examples.keys(),
|
||||
...schemas.keys(),
|
||||
...[...reads.keys()].sort(),
|
||||
...[...reads.keys()].sort((a, b) => a.localeCompare(b)),
|
||||
];
|
||||
|
||||
return [...new Set(names)].map((name) => {
|
||||
|
||||
@@ -264,7 +264,9 @@ function assignObjects(grants: PermissionGrant[]) {
|
||||
}
|
||||
|
||||
function namesOf(grants: PermissionGrant[]) {
|
||||
return [...new Set(grants.map((grant) => grant.name))].sort().join(",");
|
||||
return [...new Set(grants.map((grant) => grant.name))]
|
||||
.sort((a, b) => a.localeCompare(b))
|
||||
.join(",");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -69,7 +69,9 @@ async function publish() {
|
||||
if (entry?.specHash === specHash) {
|
||||
manifest[dir] = {
|
||||
specHash,
|
||||
files: [...new Set([...entry.files, ...files])].sort(),
|
||||
files: [...new Set([...entry.files, ...files])].sort((a, b) =>
|
||||
a.localeCompare(b),
|
||||
),
|
||||
};
|
||||
} else {
|
||||
manifest[dir] = { specHash, files };
|
||||
|
||||
@@ -82,6 +82,6 @@ export function documentRepository(
|
||||
exported.calls.map((call) => call.repository),
|
||||
),
|
||||
),
|
||||
].sort(),
|
||||
].sort((a, b) => a.localeCompare(b)),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ const languages = [
|
||||
.filter((f) => f.endsWith("_full.json"))
|
||||
.map((f) => f.replace("_full.json", "")),
|
||||
),
|
||||
].sort();
|
||||
].sort((a, b) => a.localeCompare(b));
|
||||
if (!languages.includes(CANONICAL_LANG)) {
|
||||
throw new Error(
|
||||
`canonical language ${CANONICAL_LANG} not found in ${LANG_DIR}`,
|
||||
|
||||
Reference in New Issue
Block a user