fix(check): absorb latest main lint drift

This commit is contained in:
Peter Steinberger
2026-04-06 15:56:02 +01:00
parent d12029a15a
commit 378b2c2f5c
2 changed files with 37 additions and 15 deletions

View File

@@ -154,8 +154,12 @@ export function buildWebProviderSnapshotCacheKey(params: {
bundledAllowlistCompat?: boolean;
onlyPluginIds?: readonly string[];
origin?: PluginManifestRecord["origin"];
envKey: Record<string, string>;
envKey: string | Record<string, string>;
}): string {
const envKey =
typeof params.envKey === "string"
? params.envKey
: Object.entries(params.envKey).toSorted(([left], [right]) => left.localeCompare(right));
return JSON.stringify({
workspaceDir: params.workspaceDir ?? "",
bundledAllowlistCompat: params.bundledAllowlistCompat === true,
@@ -163,7 +167,7 @@ export function buildWebProviderSnapshotCacheKey(params: {
onlyPluginIds: [...new Set(params.onlyPluginIds ?? [])].toSorted((left, right) =>
left.localeCompare(right),
),
env: Object.entries(params.envKey).toSorted(([left], [right]) => left.localeCompare(right)),
env: envKey,
});
}