@pelcro/react-pelcro-js 3.26.0-beta.68 → 3.26.0-beta.69
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/dist/index.cjs.js +29 -19
- package/dist/index.esm.js +29 -19
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -20237,10 +20237,20 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20237
20237
|
error
|
|
20238
20238
|
} = _ref9;
|
|
20239
20239
|
if (error) {
|
|
20240
|
+
var _error$response, _error$response2, _error$response2$data, _error$response2$data2, _window$Pelcro2, _window$Pelcro2$site, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4;
|
|
20240
20241
|
handlePaymentError(error);
|
|
20241
20242
|
fireBugSnag({
|
|
20242
20243
|
error,
|
|
20243
|
-
title: "generate3DSecureSource - ERROR"
|
|
20244
|
+
title: "generate3DSecureSource - ERROR",
|
|
20245
|
+
name: error === null || error === void 0 ? void 0 : error.name,
|
|
20246
|
+
message: error === null || error === void 0 ? void 0 : error.message,
|
|
20247
|
+
type: error === null || error === void 0 ? void 0 : error.type,
|
|
20248
|
+
code: error === null || error === void 0 ? void 0 : error.code,
|
|
20249
|
+
status: error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status,
|
|
20250
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.error) === null || _error$response2$data2 === void 0 ? void 0 : _error$response2$data2.message,
|
|
20251
|
+
site: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$site = _window$Pelcro2.site) === null || _window$Pelcro2$site === void 0 ? void 0 : _window$Pelcro2$site.read(),
|
|
20252
|
+
user: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read(),
|
|
20253
|
+
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment
|
|
20244
20254
|
});
|
|
20245
20255
|
return;
|
|
20246
20256
|
}
|
|
@@ -20529,15 +20539,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20529
20539
|
notifyBugsnag(() => {
|
|
20530
20540
|
// eslint-disable-next-line no-undef
|
|
20531
20541
|
Bugsnag.notify(`Payment ${res.error}`, event => {
|
|
20532
|
-
var _error$
|
|
20542
|
+
var _error$response3, _error$response3$data, _error$response3$data2, _window$Pelcro5, _window$Pelcro5$site, _window$Pelcro6, _window$Pelcro6$user, _window$Pelcro7;
|
|
20533
20543
|
event.addMetadata("Stripe Error MetaData", {
|
|
20534
20544
|
message: res.error.message,
|
|
20535
20545
|
type: res.error.type,
|
|
20536
20546
|
code: res.error.code,
|
|
20537
|
-
error_message: error === null || error === void 0 ? void 0 : (_error$
|
|
20538
|
-
site: (_window$
|
|
20539
|
-
user: (_window$
|
|
20540
|
-
environment: (_window$
|
|
20547
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.error) === null || _error$response3$data2 === void 0 ? void 0 : _error$response3$data2.message,
|
|
20548
|
+
site: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$site = _window$Pelcro5.site) === null || _window$Pelcro5$site === void 0 ? void 0 : _window$Pelcro5$site.read(),
|
|
20549
|
+
user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
|
|
20550
|
+
environment: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : _window$Pelcro7.environment
|
|
20541
20551
|
});
|
|
20542
20552
|
});
|
|
20543
20553
|
});
|
|
@@ -20586,17 +20596,17 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20586
20596
|
notifyBugsnag(() => {
|
|
20587
20597
|
// eslint-disable-next-line no-undef
|
|
20588
20598
|
Bugsnag.notify(`Payment ${error}`, event => {
|
|
20589
|
-
var _error$
|
|
20599
|
+
var _error$response4, _error$response5, _error$response5$data, _error$response5$data2, _window$Pelcro8, _window$Pelcro8$site, _window$Pelcro9, _window$Pelcro9$user, _window$Pelcro10;
|
|
20590
20600
|
event.addMetadata("MetaData", {
|
|
20591
20601
|
name: error === null || error === void 0 ? void 0 : error.name,
|
|
20592
20602
|
message: error === null || error === void 0 ? void 0 : error.message,
|
|
20593
20603
|
type: error === null || error === void 0 ? void 0 : error.type,
|
|
20594
20604
|
code: error === null || error === void 0 ? void 0 : error.code,
|
|
20595
|
-
status: error === null || error === void 0 ? void 0 : (_error$
|
|
20596
|
-
error_message: error === null || error === void 0 ? void 0 : (_error$
|
|
20597
|
-
site: (_window$
|
|
20598
|
-
user: (_window$
|
|
20599
|
-
environment: (_window$
|
|
20605
|
+
status: error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : _error$response4.status,
|
|
20606
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.error) === null || _error$response5$data2 === void 0 ? void 0 : _error$response5$data2.message,
|
|
20607
|
+
site: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : (_window$Pelcro8$site = _window$Pelcro8.site) === null || _window$Pelcro8$site === void 0 ? void 0 : _window$Pelcro8$site.read(),
|
|
20608
|
+
user: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : (_window$Pelcro9$user = _window$Pelcro9.user) === null || _window$Pelcro9$user === void 0 ? void 0 : _window$Pelcro9$user.read(),
|
|
20609
|
+
environment: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : _window$Pelcro10.environment
|
|
20600
20610
|
});
|
|
20601
20611
|
});
|
|
20602
20612
|
});
|
|
@@ -20615,14 +20625,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20615
20625
|
notifyBugsnag(() => {
|
|
20616
20626
|
// eslint-disable-next-line no-undef
|
|
20617
20627
|
Bugsnag.notify(`Payment ${error}`, event => {
|
|
20618
|
-
var _error$
|
|
20628
|
+
var _error$response6, _error$response6$data, _error$response6$data2, _window$Pelcro11, _window$Pelcro11$site, _window$Pelcro12, _window$Pelcro12$user, _window$Pelcro13;
|
|
20619
20629
|
event.addMetadata("UnexpectedError", {
|
|
20620
20630
|
message: error.message,
|
|
20621
20631
|
stack: error.stack,
|
|
20622
|
-
error_message: error === null || error === void 0 ? void 0 : (_error$
|
|
20623
|
-
site: (_window$
|
|
20624
|
-
user: (_window$
|
|
20625
|
-
environment: (_window$
|
|
20632
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.error) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2.message,
|
|
20633
|
+
site: (_window$Pelcro11 = window.Pelcro) === null || _window$Pelcro11 === void 0 ? void 0 : (_window$Pelcro11$site = _window$Pelcro11.site) === null || _window$Pelcro11$site === void 0 ? void 0 : _window$Pelcro11$site.read(),
|
|
20634
|
+
user: (_window$Pelcro12 = window.Pelcro) === null || _window$Pelcro12 === void 0 ? void 0 : (_window$Pelcro12$user = _window$Pelcro12.user) === null || _window$Pelcro12$user === void 0 ? void 0 : _window$Pelcro12$user.read(),
|
|
20635
|
+
environment: (_window$Pelcro13 = window.Pelcro) === null || _window$Pelcro13 === void 0 ? void 0 : _window$Pelcro13.environment
|
|
20626
20636
|
});
|
|
20627
20637
|
});
|
|
20628
20638
|
});
|
|
@@ -20952,7 +20962,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20952
20962
|
addressId: selectedAddressId,
|
|
20953
20963
|
couponCode
|
|
20954
20964
|
}, (err, orderResponse) => {
|
|
20955
|
-
var _window$
|
|
20965
|
+
var _window$Pelcro14, _window$Pelcro14$user, _window$Pelcro14$user2;
|
|
20956
20966
|
if (err) {
|
|
20957
20967
|
toggleAuthenticationSuccessPendingView(false);
|
|
20958
20968
|
dispatch({
|
|
@@ -20983,7 +20993,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20983
20993
|
});
|
|
20984
20994
|
}
|
|
20985
20995
|
window.Pelcro.user.refresh({
|
|
20986
|
-
auth_token: (_window$
|
|
20996
|
+
auth_token: (_window$Pelcro14 = window.Pelcro) === null || _window$Pelcro14 === void 0 ? void 0 : (_window$Pelcro14$user = _window$Pelcro14.user) === null || _window$Pelcro14$user === void 0 ? void 0 : (_window$Pelcro14$user2 = _window$Pelcro14$user.read()) === null || _window$Pelcro14$user2 === void 0 ? void 0 : _window$Pelcro14$user2.auth_token
|
|
20987
20997
|
}, (err, res) => {
|
|
20988
20998
|
dispatch({
|
|
20989
20999
|
type: DISABLE_SUBMIT,
|
package/dist/index.esm.js
CHANGED
|
@@ -20207,10 +20207,20 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20207
20207
|
error
|
|
20208
20208
|
} = _ref9;
|
|
20209
20209
|
if (error) {
|
|
20210
|
+
var _error$response, _error$response2, _error$response2$data, _error$response2$data2, _window$Pelcro2, _window$Pelcro2$site, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4;
|
|
20210
20211
|
handlePaymentError(error);
|
|
20211
20212
|
fireBugSnag({
|
|
20212
20213
|
error,
|
|
20213
|
-
title: "generate3DSecureSource - ERROR"
|
|
20214
|
+
title: "generate3DSecureSource - ERROR",
|
|
20215
|
+
name: error === null || error === void 0 ? void 0 : error.name,
|
|
20216
|
+
message: error === null || error === void 0 ? void 0 : error.message,
|
|
20217
|
+
type: error === null || error === void 0 ? void 0 : error.type,
|
|
20218
|
+
code: error === null || error === void 0 ? void 0 : error.code,
|
|
20219
|
+
status: error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status,
|
|
20220
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.error) === null || _error$response2$data2 === void 0 ? void 0 : _error$response2$data2.message,
|
|
20221
|
+
site: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$site = _window$Pelcro2.site) === null || _window$Pelcro2$site === void 0 ? void 0 : _window$Pelcro2$site.read(),
|
|
20222
|
+
user: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read(),
|
|
20223
|
+
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment
|
|
20214
20224
|
});
|
|
20215
20225
|
return;
|
|
20216
20226
|
}
|
|
@@ -20499,15 +20509,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20499
20509
|
notifyBugsnag(() => {
|
|
20500
20510
|
// eslint-disable-next-line no-undef
|
|
20501
20511
|
Bugsnag.notify(`Payment ${res.error}`, event => {
|
|
20502
|
-
var _error$
|
|
20512
|
+
var _error$response3, _error$response3$data, _error$response3$data2, _window$Pelcro5, _window$Pelcro5$site, _window$Pelcro6, _window$Pelcro6$user, _window$Pelcro7;
|
|
20503
20513
|
event.addMetadata("Stripe Error MetaData", {
|
|
20504
20514
|
message: res.error.message,
|
|
20505
20515
|
type: res.error.type,
|
|
20506
20516
|
code: res.error.code,
|
|
20507
|
-
error_message: error === null || error === void 0 ? void 0 : (_error$
|
|
20508
|
-
site: (_window$
|
|
20509
|
-
user: (_window$
|
|
20510
|
-
environment: (_window$
|
|
20517
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.error) === null || _error$response3$data2 === void 0 ? void 0 : _error$response3$data2.message,
|
|
20518
|
+
site: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$site = _window$Pelcro5.site) === null || _window$Pelcro5$site === void 0 ? void 0 : _window$Pelcro5$site.read(),
|
|
20519
|
+
user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
|
|
20520
|
+
environment: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : _window$Pelcro7.environment
|
|
20511
20521
|
});
|
|
20512
20522
|
});
|
|
20513
20523
|
});
|
|
@@ -20556,17 +20566,17 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20556
20566
|
notifyBugsnag(() => {
|
|
20557
20567
|
// eslint-disable-next-line no-undef
|
|
20558
20568
|
Bugsnag.notify(`Payment ${error}`, event => {
|
|
20559
|
-
var _error$
|
|
20569
|
+
var _error$response4, _error$response5, _error$response5$data, _error$response5$data2, _window$Pelcro8, _window$Pelcro8$site, _window$Pelcro9, _window$Pelcro9$user, _window$Pelcro10;
|
|
20560
20570
|
event.addMetadata("MetaData", {
|
|
20561
20571
|
name: error === null || error === void 0 ? void 0 : error.name,
|
|
20562
20572
|
message: error === null || error === void 0 ? void 0 : error.message,
|
|
20563
20573
|
type: error === null || error === void 0 ? void 0 : error.type,
|
|
20564
20574
|
code: error === null || error === void 0 ? void 0 : error.code,
|
|
20565
|
-
status: error === null || error === void 0 ? void 0 : (_error$
|
|
20566
|
-
error_message: error === null || error === void 0 ? void 0 : (_error$
|
|
20567
|
-
site: (_window$
|
|
20568
|
-
user: (_window$
|
|
20569
|
-
environment: (_window$
|
|
20575
|
+
status: error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : _error$response4.status,
|
|
20576
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.error) === null || _error$response5$data2 === void 0 ? void 0 : _error$response5$data2.message,
|
|
20577
|
+
site: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : (_window$Pelcro8$site = _window$Pelcro8.site) === null || _window$Pelcro8$site === void 0 ? void 0 : _window$Pelcro8$site.read(),
|
|
20578
|
+
user: (_window$Pelcro9 = window.Pelcro) === null || _window$Pelcro9 === void 0 ? void 0 : (_window$Pelcro9$user = _window$Pelcro9.user) === null || _window$Pelcro9$user === void 0 ? void 0 : _window$Pelcro9$user.read(),
|
|
20579
|
+
environment: (_window$Pelcro10 = window.Pelcro) === null || _window$Pelcro10 === void 0 ? void 0 : _window$Pelcro10.environment
|
|
20570
20580
|
});
|
|
20571
20581
|
});
|
|
20572
20582
|
});
|
|
@@ -20585,14 +20595,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20585
20595
|
notifyBugsnag(() => {
|
|
20586
20596
|
// eslint-disable-next-line no-undef
|
|
20587
20597
|
Bugsnag.notify(`Payment ${error}`, event => {
|
|
20588
|
-
var _error$
|
|
20598
|
+
var _error$response6, _error$response6$data, _error$response6$data2, _window$Pelcro11, _window$Pelcro11$site, _window$Pelcro12, _window$Pelcro12$user, _window$Pelcro13;
|
|
20589
20599
|
event.addMetadata("UnexpectedError", {
|
|
20590
20600
|
message: error.message,
|
|
20591
20601
|
stack: error.stack,
|
|
20592
|
-
error_message: error === null || error === void 0 ? void 0 : (_error$
|
|
20593
|
-
site: (_window$
|
|
20594
|
-
user: (_window$
|
|
20595
|
-
environment: (_window$
|
|
20602
|
+
error_message: error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.error) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2.message,
|
|
20603
|
+
site: (_window$Pelcro11 = window.Pelcro) === null || _window$Pelcro11 === void 0 ? void 0 : (_window$Pelcro11$site = _window$Pelcro11.site) === null || _window$Pelcro11$site === void 0 ? void 0 : _window$Pelcro11$site.read(),
|
|
20604
|
+
user: (_window$Pelcro12 = window.Pelcro) === null || _window$Pelcro12 === void 0 ? void 0 : (_window$Pelcro12$user = _window$Pelcro12.user) === null || _window$Pelcro12$user === void 0 ? void 0 : _window$Pelcro12$user.read(),
|
|
20605
|
+
environment: (_window$Pelcro13 = window.Pelcro) === null || _window$Pelcro13 === void 0 ? void 0 : _window$Pelcro13.environment
|
|
20596
20606
|
});
|
|
20597
20607
|
});
|
|
20598
20608
|
});
|
|
@@ -20922,7 +20932,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20922
20932
|
addressId: selectedAddressId,
|
|
20923
20933
|
couponCode
|
|
20924
20934
|
}, (err, orderResponse) => {
|
|
20925
|
-
var _window$
|
|
20935
|
+
var _window$Pelcro14, _window$Pelcro14$user, _window$Pelcro14$user2;
|
|
20926
20936
|
if (err) {
|
|
20927
20937
|
toggleAuthenticationSuccessPendingView(false);
|
|
20928
20938
|
dispatch({
|
|
@@ -20953,7 +20963,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20953
20963
|
});
|
|
20954
20964
|
}
|
|
20955
20965
|
window.Pelcro.user.refresh({
|
|
20956
|
-
auth_token: (_window$
|
|
20966
|
+
auth_token: (_window$Pelcro14 = window.Pelcro) === null || _window$Pelcro14 === void 0 ? void 0 : (_window$Pelcro14$user = _window$Pelcro14.user) === null || _window$Pelcro14$user === void 0 ? void 0 : (_window$Pelcro14$user2 = _window$Pelcro14$user.read()) === null || _window$Pelcro14$user2 === void 0 ? void 0 : _window$Pelcro14$user2.auth_token
|
|
20957
20967
|
}, (err, res) => {
|
|
20958
20968
|
dispatch({
|
|
20959
20969
|
type: DISABLE_SUBMIT,
|