@eluvio/elv-client-js 4.0.118 → 4.0.120

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.118",
3
+ "version": "4.0.120",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -1288,7 +1288,7 @@ exports.ListingPurchaseStatus = async function({listingId, confirmationId}) {
1288
1288
  exports.PurchaseStatus = async function({marketplaceParams, confirmationId}) {
1289
1289
  try {
1290
1290
  const marketplaceInfo = await this.MarketplaceInfo({marketplaceParams});
1291
- const statuses = await this.MintingStatus({tenantId: marketplaceInfo.tenant_id});
1291
+ const statuses = await this.MintingStatus({tenantId: marketplaceInfo.tenantId});
1292
1292
 
1293
1293
  return statuses.find(status => status.op === "nft-buy" && status.confirmationId === confirmationId) || { status: "none" };
1294
1294
  } catch(error) {
@@ -187,7 +187,8 @@ class ElvWalletClient {
187
187
 
188
188
  walletClient.topLevelInfo = await client.utils.ResponseToJson(
189
189
  client.MakeAuthServiceRequest({
190
- path: "/as/mw/toplevel"
190
+ path: "/as/mw/toplevel",
191
+ queryParams: { env: mode }
191
192
  })
192
193
  );
193
194
 
@@ -767,12 +768,13 @@ class ElvWalletClient {
767
768
  availableMarketplaces[marketplaceInfo.tenant_slug] = availableMarketplaces[marketplaceInfo.tenant_slug] || {};
768
769
 
769
770
  availableMarketplaces[marketplaceInfo.tenant_slug][marketplaceSlug] = {
771
+ ...marketplaceInfo,
770
772
  tenantName: marketplaceInfo.tenant_slug,
771
773
  tenantSlug: marketplaceInfo.tenant_slug,
772
774
  tenantId: marketplaceInfo.tenant_id,
773
775
  marketplaceSlug: marketplaceSlug,
774
776
  marketplaceId,
775
- marketplaceHash: marketplaceInfo.source_hash,
777
+ marketplaceHash: marketplaceInfo.source_hash
776
778
  };
777
779
 
778
780
  availableMarketplacesById[marketplaceId] = availableMarketplaces[marketplaceInfo.tenant_slug][marketplaceSlug];