@blotoutio/providers-blotout-wallet-sdk 0.67.1 → 0.68.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/core.cjs.js +1 -1
- package/core.js +1 -1
- package/core.mjs +1 -1
- package/index.cjs.js +9 -7
- package/index.js +9 -7
- package/index.mjs +9 -7
- package/package.json +1 -1
- package/ui.cjs.js +8 -6
- package/ui.js +8 -6
- package/ui.mjs +8 -6
package/core.cjs.js
CHANGED
@@ -236,7 +236,7 @@ const createWalletAPI = ({ fetch: fetchImpl = window.fetch, baseURL, userId, sto
|
|
236
236
|
throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
|
237
237
|
}
|
238
238
|
// Send the request as beacon as there could be a immediate redirect in the next step
|
239
|
-
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon' });
|
239
|
+
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon', destination: baseURL });
|
240
240
|
};
|
241
241
|
const deleteCarts = async () => {
|
242
242
|
const response = await fetchImpl(getURL('/cart/skip'), {
|
package/core.js
CHANGED
@@ -237,7 +237,7 @@ var ProvidersBlotoutWalletSdk = (function () {
|
|
237
237
|
throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
|
238
238
|
}
|
239
239
|
// Send the request as beacon as there could be a immediate redirect in the next step
|
240
|
-
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon' });
|
240
|
+
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon', destination: baseURL });
|
241
241
|
};
|
242
242
|
const deleteCarts = async () => {
|
243
243
|
const response = await fetchImpl(getURL('/cart/skip'), {
|
package/core.mjs
CHANGED
@@ -234,7 +234,7 @@ const createWalletAPI = ({ fetch: fetchImpl = window.fetch, baseURL, userId, sto
|
|
234
234
|
throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
|
235
235
|
}
|
236
236
|
// Send the request as beacon as there could be a immediate redirect in the next step
|
237
|
-
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon' });
|
237
|
+
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon', destination: baseURL });
|
238
238
|
};
|
239
239
|
const deleteCarts = async () => {
|
240
240
|
const response = await fetchImpl(getURL('/cart/skip'), {
|
package/index.cjs.js
CHANGED
@@ -294,7 +294,7 @@ const createWalletAPI = ({ fetch: fetchImpl = window.fetch, baseURL, userId, sto
|
|
294
294
|
throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
|
295
295
|
}
|
296
296
|
// Send the request as beacon as there could be a immediate redirect in the next step
|
297
|
-
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon' });
|
297
|
+
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon', destination: baseURL });
|
298
298
|
};
|
299
299
|
const deleteCarts = async () => {
|
300
300
|
const response = await fetchImpl(getURL('/cart/skip'), {
|
@@ -726,12 +726,14 @@ let BlotoutWallet = class BlotoutWallet extends s {
|
|
726
726
|
if (!this.lastExpiredCart) {
|
727
727
|
return;
|
728
728
|
}
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
729
|
+
if (!this.silentRestore) {
|
730
|
+
const email = this.email.value.trim().toLowerCase();
|
731
|
+
if (email) {
|
732
|
+
await this.walletAPI.saveEmail(email);
|
733
|
+
this.email.value = '';
|
734
|
+
this.hasEmail = true;
|
735
|
+
this.dispatchEvent(new CustomEvent('blotout-wallet-email-saved', { bubbles: true }));
|
736
|
+
}
|
735
737
|
}
|
736
738
|
this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
|
737
739
|
const expiredCartId = this.lastExpiredCart.cartId;
|
package/index.js
CHANGED
@@ -295,7 +295,7 @@ var ProvidersBlotoutWalletSdk = (function () {
|
|
295
295
|
throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
|
296
296
|
}
|
297
297
|
// Send the request as beacon as there could be a immediate redirect in the next step
|
298
|
-
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon' });
|
298
|
+
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon', destination: baseURL });
|
299
299
|
};
|
300
300
|
const deleteCarts = async () => {
|
301
301
|
const response = await fetchImpl(getURL('/cart/skip'), {
|
@@ -727,12 +727,14 @@ var ProvidersBlotoutWalletSdk = (function () {
|
|
727
727
|
if (!this.lastExpiredCart) {
|
728
728
|
return;
|
729
729
|
}
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
730
|
+
if (!this.silentRestore) {
|
731
|
+
const email = this.email.value.trim().toLowerCase();
|
732
|
+
if (email) {
|
733
|
+
await this.walletAPI.saveEmail(email);
|
734
|
+
this.email.value = '';
|
735
|
+
this.hasEmail = true;
|
736
|
+
this.dispatchEvent(new CustomEvent('blotout-wallet-email-saved', { bubbles: true }));
|
737
|
+
}
|
736
738
|
}
|
737
739
|
this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
|
738
740
|
const expiredCartId = this.lastExpiredCart.cartId;
|
package/index.mjs
CHANGED
@@ -292,7 +292,7 @@ const createWalletAPI = ({ fetch: fetchImpl = window.fetch, baseURL, userId, sto
|
|
292
292
|
throw new Error(`Could not update status in DB - ${response.status}: ${response.text}\n\n${await response.text()}`);
|
293
293
|
}
|
294
294
|
// Send the request as beacon as there could be a immediate redirect in the next step
|
295
|
-
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon' });
|
295
|
+
window.edgetag('tag', 'CartRecovery_CartRestored', { isSilent }, undefined, { method: 'beacon', destination: baseURL });
|
296
296
|
};
|
297
297
|
const deleteCarts = async () => {
|
298
298
|
const response = await fetchImpl(getURL('/cart/skip'), {
|
@@ -724,12 +724,14 @@ let BlotoutWallet = class BlotoutWallet extends s {
|
|
724
724
|
if (!this.lastExpiredCart) {
|
725
725
|
return;
|
726
726
|
}
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
727
|
+
if (!this.silentRestore) {
|
728
|
+
const email = this.email.value.trim().toLowerCase();
|
729
|
+
if (email) {
|
730
|
+
await this.walletAPI.saveEmail(email);
|
731
|
+
this.email.value = '';
|
732
|
+
this.hasEmail = true;
|
733
|
+
this.dispatchEvent(new CustomEvent('blotout-wallet-email-saved', { bubbles: true }));
|
734
|
+
}
|
733
735
|
}
|
734
736
|
this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
|
735
737
|
const expiredCartId = this.lastExpiredCart.cartId;
|
package/package.json
CHANGED
package/ui.cjs.js
CHANGED
@@ -451,12 +451,14 @@ let BlotoutWallet = class BlotoutWallet extends s {
|
|
451
451
|
if (!this.lastExpiredCart) {
|
452
452
|
return;
|
453
453
|
}
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
454
|
+
if (!this.silentRestore) {
|
455
|
+
const email = this.email.value.trim().toLowerCase();
|
456
|
+
if (email) {
|
457
|
+
await this.walletAPI.saveEmail(email);
|
458
|
+
this.email.value = '';
|
459
|
+
this.hasEmail = true;
|
460
|
+
this.dispatchEvent(new CustomEvent('blotout-wallet-email-saved', { bubbles: true }));
|
461
|
+
}
|
460
462
|
}
|
461
463
|
this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
|
462
464
|
const expiredCartId = this.lastExpiredCart.cartId;
|
package/ui.js
CHANGED
@@ -452,12 +452,14 @@
|
|
452
452
|
if (!this.lastExpiredCart) {
|
453
453
|
return;
|
454
454
|
}
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
455
|
+
if (!this.silentRestore) {
|
456
|
+
const email = this.email.value.trim().toLowerCase();
|
457
|
+
if (email) {
|
458
|
+
await this.walletAPI.saveEmail(email);
|
459
|
+
this.email.value = '';
|
460
|
+
this.hasEmail = true;
|
461
|
+
this.dispatchEvent(new CustomEvent('blotout-wallet-email-saved', { bubbles: true }));
|
462
|
+
}
|
461
463
|
}
|
462
464
|
this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
|
463
465
|
const expiredCartId = this.lastExpiredCart.cartId;
|
package/ui.mjs
CHANGED
@@ -449,12 +449,14 @@ let BlotoutWallet = class BlotoutWallet extends s {
|
|
449
449
|
if (!this.lastExpiredCart) {
|
450
450
|
return;
|
451
451
|
}
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
452
|
+
if (!this.silentRestore) {
|
453
|
+
const email = this.email.value.trim().toLowerCase();
|
454
|
+
if (email) {
|
455
|
+
await this.walletAPI.saveEmail(email);
|
456
|
+
this.email.value = '';
|
457
|
+
this.hasEmail = true;
|
458
|
+
this.dispatchEvent(new CustomEvent('blotout-wallet-email-saved', { bubbles: true }));
|
459
|
+
}
|
458
460
|
}
|
459
461
|
this.restoreResponse = await this.storeAPI.addItems(this.lastExpiredCart.items, this.lastExpiredCart.token);
|
460
462
|
const expiredCartId = this.lastExpiredCart.cartId;
|