Skip to content

Commit

Permalink
Added algorithm to SRI hash echo for improved clarity ↞ [auto-sync from
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 29, 2024
1 parent da2132f commit a819d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/bump/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
if (!await isValidResource(updatedURL)) continue // to next resource

// Generate/compare/update SRI hash
console.log(`${ !log.endedWithLineBreak ? '\n' : '' }Generating SRI hash for ${resName}...`)
console.log(`${ !log.endedWithLineBreak ? '\n' : '' }Generating SRI (SHA-256) hash for ${resName}...`)
const newSRIhash = await generateSRIhash(updatedURL)
if (rePatterns.sriHash.exec(resURL)?.[0] == newSRIhash) { // SRI hash didn't change
console.log(`${resName} already up-to-date!`) ; log.endedWithLineBreak = false
Expand Down

0 comments on commit a819d60

Please sign in to comment.