From f8ca92eda61b0b851d0bd32c07ebf24c12aec12e Mon Sep 17 00:00:00 2001 From: JackMacWindows Date: Thu, 1 Sep 2022 18:45:46 -0400 Subject: [PATCH] Fixed error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6af031a..1566053 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ function run(assets) { if (filename === "" || asset.name !== filename) { // don't hash the hash file (if the file has the same name) numAwaiting++; fetch(asset.browser_download_url).then(res => res.arrayBuffer()).then(buffer => { - hashes[asset.name] = hasha(buffer, {algorithm: algorithm}); + hashes[asset.name] = hasha(new Uint8Array(buffer), {algorithm: algorithm}); if (--numAwaiting === 0) { let result = ""; for (const k in hashes) result += hashes[k] + " " + k + "\n";