From f6deefda9d64d4e255a8bc4a378ae57391f904db Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Wed, 25 Sep 2024 13:18:48 -0400 Subject: [PATCH 1/2] fix: integrity check when downloading files --- src/DigNetwork/PropagationServer.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/DigNetwork/PropagationServer.ts b/src/DigNetwork/PropagationServer.ts index a7273f8..06135aa 100644 --- a/src/DigNetwork/PropagationServer.ts +++ b/src/DigNetwork/PropagationServer.ts @@ -698,9 +698,11 @@ export class PropagationServer { ); if (!fs.existsSync(path.join(tempDir, dataPath))) { - throw new Error( - `Missing file: ${Buffer.from(fileKey, "hex")}, aborting session.` - ); + if (!fs.existsSync(path.join(STORE_PATH, storeId, dataPath))) { + throw new Error( + `Missing file: ${Buffer.from(fileKey, "hex")}, aborting session.` + ); + } } } From 9a14f98e7a876bbd42205f9aeae2f66f8d8f91ea Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Wed, 25 Sep 2024 13:19:18 -0400 Subject: [PATCH 2/2] chore(release): 0.0.1-alpha.87 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef5ca40..3d8ac73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.87](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.86...v0.0.1-alpha.87) (2024-09-25) + + +### Bug Fixes + +* integrity check when downloading files ([f6deefd](https://github.com/DIG-Network/dig-chia-sdk/commit/f6deefda9d64d4e255a8bc4a378ae57391f904db)) + ### [0.0.1-alpha.86](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.85...v0.0.1-alpha.86) (2024-09-25) diff --git a/package-lock.json b/package-lock.json index 0c50801..453a131 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.86", + "version": "0.0.1-alpha.87", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.86", + "version": "0.0.1-alpha.87", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.25", diff --git a/package.json b/package.json index ab1962c..c0a8925 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.86", + "version": "0.0.1-alpha.87", "description": "", "type": "commonjs", "main": "./dist/index.js",