@dignetwork/dig-sdk 0.0.1-alpha.38 → 0.0.1-alpha.39

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.
@@ -182,7 +182,7 @@ class DigNetwork {
182
182
  if (!skipData) {
183
183
  // Use Object.entries() to iterate over the map (root.files)
184
184
  await Promise.all(Object.entries(root.files).map(async ([storeKey, file]) => {
185
- const filePath = (0, hashUtils_1.getFilePathFromSha256)(file.sha256, this.storeDir);
185
+ const filePath = (0, hashUtils_1.getFilePathFromSha256)(file.sha256, `${this.storeDir}/data`);
186
186
  if (!fs.existsSync(filePath) || forceDownload) {
187
187
  console.log(`Downloading file with sha256: ${file.sha256}...`);
188
188
  await this.downloadFileFromPeers(file.sha256.match(/.{1,2}/g).join("/"), filePath, forceDownload);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignetwork/dig-sdk",
3
- "version": "0.0.1-alpha.38",
3
+ "version": "0.0.1-alpha.39",
4
4
  "description": "",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",