(buffer)
| 10 | * @returns {Promise<string>} |
| 11 | */ |
| 12 | const getSha1Hash = async (buffer) => { |
| 13 | const byteHash = await webcrypto.subtle.digest("SHA-1", buffer); |
| 14 | |
| 15 | const hash = Array.from(new Uint8Array(byteHash)) |
| 16 | .map((b) => b.toString(16).padStart(2, "0")) |
| 17 | .join(""); |
| 18 | |
| 19 | return hash; |
| 20 | }; |
| 21 | |
| 22 | /** |
| 23 | * Get list of files that have since been updated since last run |
no outgoing calls
no test coverage detected