@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.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
fs_1.default.
|
|
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();
|