diff --git a/src/bin/shared/downloadKeycloakDefaultTheme.ts b/src/bin/shared/downloadKeycloakDefaultTheme.ts index 048af9a5..38bb37dd 100644 --- a/src/bin/shared/downloadKeycloakDefaultTheme.ts +++ b/src/bin/shared/downloadKeycloakDefaultTheme.ts @@ -24,7 +24,7 @@ export async function downloadKeycloakDefaultTheme(params: { url: `https://repo1.maven.org/maven2/org/keycloak/keycloak-themes/${keycloakVersion}/keycloak-themes-${keycloakVersion}.jar`, cacheDirPath: buildContext.cacheDirPath, fetchOptions: buildContext.fetchOptions, - uniqueIdOfOnOnArchiveFile: "downloadKeycloakDefaultTheme", + uniqueIdOfOnArchiveFile: "downloadKeycloakDefaultTheme", onArchiveFile: async params => { const fileRelativePath = pathRelative("theme", params.fileRelativePath); diff --git a/src/bin/tools/downloadAndExtractArchive.ts b/src/bin/tools/downloadAndExtractArchive.ts index ad22b8d8..a219366b 100644 --- a/src/bin/tools/downloadAndExtractArchive.ts +++ b/src/bin/tools/downloadAndExtractArchive.ts @@ -10,7 +10,7 @@ import { rm } from "./fs.rm"; export async function downloadAndExtractArchive(params: { url: string; - uniqueIdOfOnOnArchiveFile: string; + uniqueIdOfOnArchiveFile: string; onArchiveFile: (params: { fileRelativePath: string; readFile: () => Promise; @@ -22,7 +22,7 @@ export async function downloadAndExtractArchive(params: { cacheDirPath: string; fetchOptions: FetchOptions | undefined; }): Promise<{ extractedDirPath: string }> { - const { url, uniqueIdOfOnOnArchiveFile, onArchiveFile, cacheDirPath, fetchOptions } = + const { url, uniqueIdOfOnArchiveFile, onArchiveFile, cacheDirPath, fetchOptions } = params; const archiveFileBasename = url.split("?")[0].split("/").reverse()[0]; @@ -63,7 +63,7 @@ export async function downloadAndExtractArchive(params: { }); } - const extractDirBasename = `${archiveFileBasename.split(".")[0]}_${uniqueIdOfOnOnArchiveFile}_${crypto + const extractDirBasename = `${archiveFileBasename.split(".")[0]}_${uniqueIdOfOnArchiveFile}_${crypto .createHash("sha256") .update(onArchiveFile.toString()) .digest("hex")