@blotoutio/providers-blotout-wallet-sdk 1.13.0 → 1.14.0

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/index.cjs.js CHANGED
@@ -1148,12 +1148,7 @@ let BlotoutWallet = class BlotoutWallet extends i$2 {
1148
1148
  }
1149
1149
  this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
1150
1150
  const expiredCartId = this.lastExpiredCart.cartId;
1151
- // We attempt to mark the cart as restored, but if the request fails,
1152
- // we log the error in the console and let the user continue. Since the
1153
- // problem is probably in the `/cart/restore` endpoint, further attempts
1154
- // would not resolve the problem, which would just increase the number
1155
- // of failed calls and not solve the problem.
1156
- await this.walletAPI.restoreCart(expiredCartId, this.silentRestore).catch(logger.error);
1151
+ await this.walletAPI.restoreCart(expiredCartId, this.silentRestore);
1157
1152
  this.lastExpiredCart = undefined;
1158
1153
  this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
1159
1154
  bubbles: true,
package/index.js CHANGED
@@ -1149,12 +1149,7 @@ var ProvidersBlotoutWalletSdk = (function () {
1149
1149
  }
1150
1150
  this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
1151
1151
  const expiredCartId = this.lastExpiredCart.cartId;
1152
- // We attempt to mark the cart as restored, but if the request fails,
1153
- // we log the error in the console and let the user continue. Since the
1154
- // problem is probably in the `/cart/restore` endpoint, further attempts
1155
- // would not resolve the problem, which would just increase the number
1156
- // of failed calls and not solve the problem.
1157
- await this.walletAPI.restoreCart(expiredCartId, this.silentRestore).catch(logger.error);
1152
+ await this.walletAPI.restoreCart(expiredCartId, this.silentRestore);
1158
1153
  this.lastExpiredCart = undefined;
1159
1154
  this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
1160
1155
  bubbles: true,
package/index.mjs CHANGED
@@ -1146,12 +1146,7 @@ let BlotoutWallet = class BlotoutWallet extends i$2 {
1146
1146
  }
1147
1147
  this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
1148
1148
  const expiredCartId = this.lastExpiredCart.cartId;
1149
- // We attempt to mark the cart as restored, but if the request fails,
1150
- // we log the error in the console and let the user continue. Since the
1151
- // problem is probably in the `/cart/restore` endpoint, further attempts
1152
- // would not resolve the problem, which would just increase the number
1153
- // of failed calls and not solve the problem.
1154
- await this.walletAPI.restoreCart(expiredCartId, this.silentRestore).catch(logger.error);
1149
+ await this.walletAPI.restoreCart(expiredCartId, this.silentRestore);
1155
1150
  this.lastExpiredCart = undefined;
1156
1151
  this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
1157
1152
  bubbles: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-blotout-wallet-sdk",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Blotout Wallet SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "main": "./index.cjs.js",
12
12
  "module": "./index.mjs",
13
+ "types": "./index.d.ts",
13
14
  "exports": {
14
15
  ".": {
15
16
  "require": "./index.cjs.js",
@@ -42,6 +43,7 @@
42
43
  "index.js",
43
44
  "index.cjs.js",
44
45
  "index.mjs",
46
+ "index.d.ts",
45
47
  "core.js",
46
48
  "core.cjs.js",
47
49
  "core.mjs",
package/ui.cjs.js CHANGED
@@ -775,12 +775,7 @@ let BlotoutWallet = class BlotoutWallet extends i$2 {
775
775
  }
776
776
  this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
777
777
  const expiredCartId = this.lastExpiredCart.cartId;
778
- // We attempt to mark the cart as restored, but if the request fails,
779
- // we log the error in the console and let the user continue. Since the
780
- // problem is probably in the `/cart/restore` endpoint, further attempts
781
- // would not resolve the problem, which would just increase the number
782
- // of failed calls and not solve the problem.
783
- await this.walletAPI.restoreCart(expiredCartId, this.silentRestore).catch(logger.error);
778
+ await this.walletAPI.restoreCart(expiredCartId, this.silentRestore);
784
779
  this.lastExpiredCart = undefined;
785
780
  this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
786
781
  bubbles: true,
package/ui.js CHANGED
@@ -776,12 +776,7 @@
776
776
  }
777
777
  this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
778
778
  const expiredCartId = this.lastExpiredCart.cartId;
779
- // We attempt to mark the cart as restored, but if the request fails,
780
- // we log the error in the console and let the user continue. Since the
781
- // problem is probably in the `/cart/restore` endpoint, further attempts
782
- // would not resolve the problem, which would just increase the number
783
- // of failed calls and not solve the problem.
784
- await this.walletAPI.restoreCart(expiredCartId, this.silentRestore).catch(logger.error);
779
+ await this.walletAPI.restoreCart(expiredCartId, this.silentRestore);
785
780
  this.lastExpiredCart = undefined;
786
781
  this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
787
782
  bubbles: true,
package/ui.mjs CHANGED
@@ -773,12 +773,7 @@ let BlotoutWallet = class BlotoutWallet extends i$2 {
773
773
  }
774
774
  this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
775
775
  const expiredCartId = this.lastExpiredCart.cartId;
776
- // We attempt to mark the cart as restored, but if the request fails,
777
- // we log the error in the console and let the user continue. Since the
778
- // problem is probably in the `/cart/restore` endpoint, further attempts
779
- // would not resolve the problem, which would just increase the number
780
- // of failed calls and not solve the problem.
781
- await this.walletAPI.restoreCart(expiredCartId, this.silentRestore).catch(logger.error);
776
+ await this.walletAPI.restoreCart(expiredCartId, this.silentRestore);
782
777
  this.lastExpiredCart = undefined;
783
778
  this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
784
779
  bubbles: true,