From 9c9550d6fa141df1a5b1fd4f3efdbe96a7e0d5a4 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 10 Oct 2024 14:39:37 -0400 Subject: [PATCH 1/2] fix: listFilesRecursively --- src/blockchain/StoreMonitorRegistry.ts | 7 ------- src/utils/directoryUtils.ts | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/blockchain/StoreMonitorRegistry.ts b/src/blockchain/StoreMonitorRegistry.ts index 8c77434..29ce4dc 100644 --- a/src/blockchain/StoreMonitorRegistry.ts +++ b/src/blockchain/StoreMonitorRegistry.ts @@ -295,9 +295,6 @@ export class StoreMonitorRegistry { private async fetchAndCacheStoreInfo( storeId: string ): Promise { - console.log( - `Monitor: Fetching and caching latest store info for storeId: ${storeId}` - ); const peer = await FullNodePeer.connect(); const dataStore = DataStore.from(storeId); @@ -305,9 +302,6 @@ export class StoreMonitorRegistry { await dataStore.getCreationHeight(); // Sync store from the peer using launcher ID - console.log( - `Monitor: Syncing store from launcher ID for storeId: ${storeId}` - ); const { latestStore, latestHeight } = await peer.syncStoreFromLauncherId( Buffer.from(storeId, "hex"), createdAtHeight, @@ -324,7 +318,6 @@ export class StoreMonitorRegistry { latestHash ).serialize(); - console.log(`Monitor: Caching new store info for storeId: ${storeId}`); this.storeCoinCache.set(storeId, { latestStore: serializedLatestStore, latestHeight, diff --git a/src/utils/directoryUtils.ts b/src/utils/directoryUtils.ts index 0697652..1b63da4 100644 --- a/src/utils/directoryUtils.ts +++ b/src/utils/directoryUtils.ts @@ -121,7 +121,7 @@ type ListFilesResult = string[] | string[][]; * @param {number} [groupSize] - Optional. The number of files per group. If provided, the result will be an array of arrays. * @returns {ListFilesResult} - A flat list of relative file paths or grouped lists based on `groupSize`. */ -function listFilesRecursively( +export function listFilesRecursively( baseDir: string, groupSize?: number ): ListFilesResult { From 85b325d181874c6d1440b3357cb6909f0cee5e73 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 10 Oct 2024 14:40:53 -0400 Subject: [PATCH 2/2] chore(release): 0.0.1-alpha.169 --- 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 e14e32f..ab6f0d0 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.169](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.168...v0.0.1-alpha.169) (2024-10-10) + + +### Bug Fixes + +* listFilesRecursively ([9c9550d](https://github.com/DIG-Network/dig-chia-sdk/commit/9c9550d6fa141df1a5b1fd4f3efdbe96a7e0d5a4)) + ### [0.0.1-alpha.168](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.167...v0.0.1-alpha.168) (2024-10-10) diff --git a/package-lock.json b/package-lock.json index 768be59..c7ee0f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.168", + "version": "0.0.1-alpha.169", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.168", + "version": "0.0.1-alpha.169", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.29", diff --git a/package.json b/package.json index 009740b..69e645c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.168", + "version": "0.0.1-alpha.169", "description": "", "type": "commonjs", "main": "./dist/index.js",