From fbe27b828b31a554b710275dfabe6fbdc5224a62 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 13 Feb 2025 17:52:49 -0600 Subject: [PATCH] fixes --- package.json | 5 +++-- src/__tests__/repertory.test.js | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ee9272e..73ea0cf 100644 --- a/package.json +++ b/package.json @@ -37,15 +37,16 @@ ], "scripts": { "build": "rollup -c && ./fixup", + "build_win": "rollup -c && mingw64 ./fixup", "test": "jest", "prepublish": "rollup -c --silent && ./fixup" }, "dependencies": { "@stablelib/xchacha20poly1305": "^1.0.1", "blake2b": "^2.1.4", - "int64-buffer": "^1.0.0", + "int64-buffer": "^1.1.0", "text-encoding": "^0.7.0", - "uuid": "^8.3.2" + "uuid": "^11.0.5" }, "devDependencies": { "@babel/core": "^7.14.3", diff --git a/src/__tests__/repertory.test.js b/src/__tests__/repertory.test.js index 721357d..729e8a1 100644 --- a/src/__tests__/repertory.test.js +++ b/src/__tests__/repertory.test.js @@ -14,7 +14,9 @@ const calculate_sha256 = (path) => { const hash = blake2b(32); fs.createReadStream(path) - .on('data', (data) => hash.update(data)) + .on('data', (data) => { + return hash.update(new Uint8Array(data)); + }) .on('error', (err) => reject(err)) .on('end', () => { const h = hash.digest('hex');