@dignetwork/dig-sdk 0.0.1-alpha.114 → 0.0.1-alpha.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,10 +42,10 @@ class StoreInfoCacheUpdater {
42
42
  this.isMonitoring = true;
43
43
  this.storeCoinCache = new utils_1.FileCache(`stores`, utils_1.USER_DIR_PATH);
44
44
  // Construct lock file path using the path module
45
- this.lockFilePath = path.join(utils_1.DIG_FOLDER_PATH, "store-info-cache.lock");
46
- if (fs_1.default.existsSync(this.lockFilePath)) {
47
- console.log("Removing existing lock file");
48
- fs_1.default.unlinkSync(this.lockFilePath);
45
+ this.lockFilePath = path.join(utils_1.USER_DIR_PATH, "store-info-cache.lock");
46
+ const lockDir = path.dirname(this.lockFilePath);
47
+ if (!fs_1.default.existsSync(lockDir)) {
48
+ fs_1.default.mkdirSync(lockDir, { recursive: true });
49
49
  }
50
50
  // Start monitors for existing storeIds
51
51
  this.startMonitors();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignetwork/dig-sdk",
3
- "version": "0.0.1-alpha.114",
3
+ "version": "0.0.1-alpha.115",
4
4
  "description": "",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",