@paystack/inline-js 2.13.0-dev.5 → 2.13.0-dev.6
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/inline.js +5 -0
- package/es/inline.js +5 -0
- package/lib/inline.js +5 -0
- package/package.json +1 -1
package/dist/inline.js
CHANGED
|
@@ -753,6 +753,11 @@ var PaystackPop = (function () {
|
|
|
753
753
|
}
|
|
754
754
|
|
|
755
755
|
loadScript('https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js', container).then(function () {
|
|
756
|
+
/**
|
|
757
|
+
* The Apple Pay SDK expects `window.webpackJsonp` to be array-like
|
|
758
|
+
* but we have seen instances where that is not the case causing the SDK to throw errors
|
|
759
|
+
* so in this scenario, we opt out of using the SDK
|
|
760
|
+
*/
|
|
756
761
|
if (window && !Array.isArray(window.webpackJsonp)) {
|
|
757
762
|
throw new Error("Incorrect data type for 'webpackJsonp', expected array, got ".concat(_typeof(window.webpackJsonp), ". Switching to fallback apple pay button"));
|
|
758
763
|
}
|
package/es/inline.js
CHANGED
|
@@ -750,6 +750,11 @@ function mountPaymentRequestButtons(container, _ref3) {
|
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
loadScript('https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js', container).then(function () {
|
|
753
|
+
/**
|
|
754
|
+
* The Apple Pay SDK expects `window.webpackJsonp` to be array-like
|
|
755
|
+
* but we have seen instances where that is not the case causing the SDK to throw errors
|
|
756
|
+
* so in this scenario, we opt out of using the SDK
|
|
757
|
+
*/
|
|
753
758
|
if (window && !Array.isArray(window.webpackJsonp)) {
|
|
754
759
|
throw new Error("Incorrect data type for 'webpackJsonp', expected array, got ".concat(_typeof(window.webpackJsonp), ". Switching to fallback apple pay button"));
|
|
755
760
|
}
|
package/lib/inline.js
CHANGED
|
@@ -752,6 +752,11 @@ function mountPaymentRequestButtons(container, _ref3) {
|
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
loadScript('https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js', container).then(function () {
|
|
755
|
+
/**
|
|
756
|
+
* The Apple Pay SDK expects `window.webpackJsonp` to be array-like
|
|
757
|
+
* but we have seen instances where that is not the case causing the SDK to throw errors
|
|
758
|
+
* so in this scenario, we opt out of using the SDK
|
|
759
|
+
*/
|
|
755
760
|
if (window && !Array.isArray(window.webpackJsonp)) {
|
|
756
761
|
throw new Error("Incorrect data type for 'webpackJsonp', expected array, got ".concat(_typeof(window.webpackJsonp), ". Switching to fallback apple pay button"));
|
|
757
762
|
}
|