@blotoutio/providers-blotout-wallet-sdk 0.63.0 → 0.64.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
@@ -561,7 +561,7 @@ let BlotoutWallet = class BlotoutWallet extends s {
561
561
  throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
562
562
  }
563
563
  this.lastExpiredCart = undefined;
564
- this.dispatchEvent(new CustomEvent('blotout-wallet-restored', {
564
+ this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
565
565
  bubbles: true,
566
566
  }));
567
567
  // Send the request as beacon as there could be a immediate redirect in the next step
@@ -1001,7 +1001,8 @@ const init = (params) => {
1001
1001
  (_b = (_a = window[registryKey]).storeAPIFactory) === null || _b === void 0 ? void 0 : _b.call(_a);
1002
1002
  }
1003
1003
  if (!store) {
1004
- throw new Error('Implementation for store API missing!');
1004
+ console.error('Implementation for store API missing!');
1005
+ return;
1005
1006
  }
1006
1007
  if (
1007
1008
  // if loaded in non-browser SDKs
@@ -1021,7 +1022,7 @@ const init = (params) => {
1021
1022
  if (experiment.isEnabled) {
1022
1023
  log('Previewing functionality using preview key');
1023
1024
  }
1024
- else {
1025
+ else if (getPreviewKey()) {
1025
1026
  log('Preview key set but does not match the configured key');
1026
1027
  }
1027
1028
  }
package/index.js CHANGED
@@ -562,7 +562,7 @@ var ProvidersBlotoutWalletSdk = (function () {
562
562
  throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
563
563
  }
564
564
  this.lastExpiredCart = undefined;
565
- this.dispatchEvent(new CustomEvent('blotout-wallet-restored', {
565
+ this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
566
566
  bubbles: true,
567
567
  }));
568
568
  // Send the request as beacon as there could be a immediate redirect in the next step
@@ -1002,7 +1002,8 @@ var ProvidersBlotoutWalletSdk = (function () {
1002
1002
  (_b = (_a = window[registryKey]).storeAPIFactory) === null || _b === void 0 ? void 0 : _b.call(_a);
1003
1003
  }
1004
1004
  if (!store) {
1005
- throw new Error('Implementation for store API missing!');
1005
+ console.error('Implementation for store API missing!');
1006
+ return;
1006
1007
  }
1007
1008
  if (
1008
1009
  // if loaded in non-browser SDKs
@@ -1022,7 +1023,7 @@ var ProvidersBlotoutWalletSdk = (function () {
1022
1023
  if (experiment.isEnabled) {
1023
1024
  log('Previewing functionality using preview key');
1024
1025
  }
1025
- else {
1026
+ else if (getPreviewKey()) {
1026
1027
  log('Preview key set but does not match the configured key');
1027
1028
  }
1028
1029
  }
package/index.mjs CHANGED
@@ -559,7 +559,7 @@ let BlotoutWallet = class BlotoutWallet extends s {
559
559
  throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
560
560
  }
561
561
  this.lastExpiredCart = undefined;
562
- this.dispatchEvent(new CustomEvent('blotout-wallet-restored', {
562
+ this.dispatchEvent(new CustomEvent('blotout-wallet-cart-restored', {
563
563
  bubbles: true,
564
564
  }));
565
565
  // Send the request as beacon as there could be a immediate redirect in the next step
@@ -999,7 +999,8 @@ const init = (params) => {
999
999
  (_b = (_a = window[registryKey]).storeAPIFactory) === null || _b === void 0 ? void 0 : _b.call(_a);
1000
1000
  }
1001
1001
  if (!store) {
1002
- throw new Error('Implementation for store API missing!');
1002
+ console.error('Implementation for store API missing!');
1003
+ return;
1003
1004
  }
1004
1005
  if (
1005
1006
  // if loaded in non-browser SDKs
@@ -1019,7 +1020,7 @@ const init = (params) => {
1019
1020
  if (experiment.isEnabled) {
1020
1021
  log('Previewing functionality using preview key');
1021
1022
  }
1022
- else {
1023
+ else if (getPreviewKey()) {
1023
1024
  log('Preview key set but does not match the configured key');
1024
1025
  }
1025
1026
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-blotout-wallet-sdk",
3
- "version": "0.63.0",
3
+ "version": "0.64.0",
4
4
  "description": "Blotout Wallet SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",