From 23b42b279c2fbc0a1143bf94deefd4b5db9be25f Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 3 Oct 2024 16:21:29 -0400 Subject: [PATCH 1/3] chore: update sdk --- src/blockchain/StoreInfoCacheUpdater.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blockchain/StoreInfoCacheUpdater.ts b/src/blockchain/StoreInfoCacheUpdater.ts index 6b1afca..8e2d24f 100644 --- a/src/blockchain/StoreInfoCacheUpdater.ts +++ b/src/blockchain/StoreInfoCacheUpdater.ts @@ -29,9 +29,9 @@ export class StoreInfoCacheUpdater { // Construct lock file path using the path module this.lockFilePath = path.join(DIG_FOLDER_PATH, "store-info-cache.lock"); - if (fs.existsSync(this.lockFilePath)) { - console.log("Removing existing lock file"); - fs.unlinkSync(this.lockFilePath); + const lockDir = path.dirname(this.lockFilePath); + if (!fs.existsSync(lockDir)) { + fs.mkdirSync(lockDir, { recursive: true }); } // Start monitors for existing storeIds From bc2658ea2dc194b64c8109b1bfa856ce47e615b7 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 3 Oct 2024 16:23:18 -0400 Subject: [PATCH 2/3] chore: update sdk --- src/blockchain/StoreInfoCacheUpdater.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockchain/StoreInfoCacheUpdater.ts b/src/blockchain/StoreInfoCacheUpdater.ts index 8e2d24f..58754e9 100644 --- a/src/blockchain/StoreInfoCacheUpdater.ts +++ b/src/blockchain/StoreInfoCacheUpdater.ts @@ -1,6 +1,6 @@ import fs from "fs"; import { FullNodePeer } from "./FullNodePeer"; -import { FileCache, USER_DIR_PATH, DIG_FOLDER_PATH } from "../utils"; +import { FileCache, USER_DIR_PATH } from "../utils"; import { DataStoreSerializer } from "./DataStoreSerializer"; import { withTimeout } from "../utils"; import * as lockfile from "proper-lockfile"; @@ -27,7 +27,7 @@ export class StoreInfoCacheUpdater { this.storeCoinCache = new FileCache(`stores`, USER_DIR_PATH); // Construct lock file path using the path module - this.lockFilePath = path.join(DIG_FOLDER_PATH, "store-info-cache.lock"); + this.lockFilePath = path.join(USER_DIR_PATH, "store-info-cache.lock"); const lockDir = path.dirname(this.lockFilePath); if (!fs.existsSync(lockDir)) { From b7184710586880b3138260550970916461f650b1 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 3 Oct 2024 16:23:53 -0400 Subject: [PATCH 3/3] chore(release): 0.0.1-alpha.115 --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4da687f..a9f4c9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ 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.115](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.114...v0.0.1-alpha.115) (2024-10-03) + ### [0.0.1-alpha.114](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.113...v0.0.1-alpha.114) (2024-10-03) ### [0.0.1-alpha.113](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.112...v0.0.1-alpha.113) (2024-10-03) diff --git a/package-lock.json b/package-lock.json index c064a45..b081265 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.114", + "version": "0.0.1-alpha.115", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.114", + "version": "0.0.1-alpha.115", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.29", diff --git a/package.json b/package.json index 5130672..b1e3133 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.114", + "version": "0.0.1-alpha.115", "description": "", "type": "commonjs", "main": "./dist/index.js",