Skip to content

Commit

Permalink
fix: make cache paths safe for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 committed Aug 25, 2021
1 parent e4b2b56 commit 5b58731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/styles/stylesheet-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class StylesheetProcessor {
}

function generateKey(content: string, browserslistData: string[]): string {
return createHash('sha1').update(ngPackagrVersion).update(content).update(browserslistData.join('')).digest('base64');
return createHash('sha1').update(ngPackagrVersion).update(content).update(browserslistData.join('')).digest('hex');
}

async function readCacheEntry(cachePath: string, key: string): Promise<Result | undefined> {
Expand Down

0 comments on commit 5b58731

Please sign in to comment.