@eluvio/elv-client-js 4.0.16 → 4.0.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -752,7 +752,7 @@ class ElvWalletClient {
752
752
  const marketplaceInfo = this.MarketplaceInfo({marketplaceParams});
753
753
 
754
754
  const marketplaceId = marketplaceInfo.marketplaceId;
755
- const marketplaceHashPromise = this.LatestMarketplaceHash({marketplaceParams});
755
+ const marketplaceHash = await this.LatestMarketplaceHash({marketplaceParams});
756
756
 
757
757
  if(this.cachedMarketplaces[marketplaceId] && this.cachedMarketplaces[marketplaceId].versionHash !== marketplaceHash) {
758
758
  delete this.cachedMarketplaces[marketplaceId];
@@ -810,8 +810,8 @@ class ElvWalletClient {
810
810
 
811
811
  marketplace.retrievedAt = Date.now();
812
812
  marketplace.marketplaceId = marketplaceId;
813
- marketplace.versionHash = await marketplaceHashPromise;
814
- marketplace.marketplaceHash = await marketplaceHashPromise;
813
+ marketplace.versionHash = marketplaceHash;
814
+ marketplace.marketplaceHash = marketplaceHash;
815
815
 
816
816
  if(this.previewMarketplaceId && marketplaceId === this.previewMarketplaceId) {
817
817
  marketplace.branding.preview = true;