Compare commits
No commits in common. "v0.1.0-develop.72" and "v0.1.0-develop.71" have entirely different histories.
v0.1.0-dev
...
v0.1.0-dev
|
@ -1,10 +1,3 @@
|
|||
# [0.1.0-develop.72](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.71...v0.1.0-develop.72) (2023-11-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* ensure axios returns binary data ([518bbcd](https://git.lumeweb.com/LumeWeb/libs5/commit/518bbcdd946ef92f8a5195f6684d11fdce7bbd50))
|
||||
|
||||
# [0.1.0-develop.71](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.70...v0.1.0-develop.71) (2023-11-18)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.72",
|
||||
"version": "0.1.0-develop.71",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.72",
|
||||
"version": "0.1.0-develop.71",
|
||||
"dependencies": {
|
||||
"@noble/curves": "^1.1.0",
|
||||
"@noble/hashes": "^1.3.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.72",
|
||||
"version": "0.1.0-develop.71",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -224,11 +224,10 @@ export class S5Node {
|
|||
try {
|
||||
const res = await axios.get(dlUri.location.bytesUrl, {
|
||||
timeout: 30000, // Adjust timeout as needed
|
||||
responseType: "arraybuffer",
|
||||
});
|
||||
|
||||
// Assuming rust.hashBlake3 and areBytesEqual are available functions
|
||||
const resHash = blake3(Buffer.from(res.data));
|
||||
const resHash = blake3(res.data);
|
||||
|
||||
if (!equalBytes(hash.hashBytes, resHash)) {
|
||||
throw new Error("Integrity verification failed");
|
||||
|
|
Loading…
Reference in New Issue