@eluvio/elv-client-js 4.0.123 → 4.0.124

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.123",
3
+ "version": "4.0.124",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -185,12 +185,19 @@ class ElvWalletClient {
185
185
  }
186
186
  }
187
187
 
188
- walletClient.topLevelInfo = await client.utils.ResponseToJson(
189
- client.MakeAuthServiceRequest({
190
- path: "/as/mw/toplevel",
191
- queryParams: { env: mode }
192
- })
193
- );
188
+ try {
189
+ walletClient.topLevelInfo = await client.utils.ResponseToJson(
190
+ client.MakeAuthServiceRequest({
191
+ path: "/as/mw/toplevel",
192
+ queryParams: {env: mode}
193
+ })
194
+ );
195
+ } catch(error) {
196
+ // eslint-disable-next-line no-console
197
+ console.error("Unable to load top level info:");
198
+ // eslint-disable-next-line no-console
199
+ console.error(error);
200
+ }
194
201
 
195
202
  if(!skipMarketplaceLoad) {
196
203
  await walletClient.LoadAvailableMarketplaces();