@economist/web-apple-pay 0.1.3-beta.34 → 0.1.3-beta.35

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.js CHANGED
@@ -1122,10 +1122,7 @@ var isAppleDeviceOrSafari = () => {
1122
1122
  };
1123
1123
  var bypassApplePayChecks = () => new URLSearchParams(window.location.search).get("BYPASS_APPLE_PAY_CHECKS") !== null;
1124
1124
  var isApplePayAvailable = async () => {
1125
- if (bypassApplePayChecks()) {
1126
- return true;
1127
- }
1128
- if (!isAppleDeviceOrSafari()) {
1125
+ if (!isAppleDeviceOrSafari() && !bypassApplePayChecks()) {
1129
1126
  return false;
1130
1127
  }
1131
1128
  const applePaySession = window.ApplePaySession;
@@ -1117,10 +1117,7 @@ var isAppleDeviceOrSafari = () => {
1117
1117
  };
1118
1118
  var bypassApplePayChecks = () => new URLSearchParams(window.location.search).get("BYPASS_APPLE_PAY_CHECKS") !== null;
1119
1119
  var isApplePayAvailable = async () => {
1120
- if (bypassApplePayChecks()) {
1121
- return true;
1122
- }
1123
- if (!isAppleDeviceOrSafari()) {
1120
+ if (!isAppleDeviceOrSafari() && !bypassApplePayChecks()) {
1124
1121
  return false;
1125
1122
  }
1126
1123
  const applePaySession = window.ApplePaySession;
@@ -1125,10 +1125,7 @@ var isAppleDeviceOrSafari = () => {
1125
1125
  };
1126
1126
  var bypassApplePayChecks = () => new URLSearchParams(window.location.search).get("BYPASS_APPLE_PAY_CHECKS") !== null;
1127
1127
  var isApplePayAvailable = async () => {
1128
- if (bypassApplePayChecks()) {
1129
- return true;
1130
- }
1131
- if (!isAppleDeviceOrSafari()) {
1128
+ if (!isAppleDeviceOrSafari() && !bypassApplePayChecks()) {
1132
1129
  return false;
1133
1130
  }
1134
1131
  const applePaySession = window.ApplePaySession;
@@ -1117,10 +1117,7 @@ var isAppleDeviceOrSafari = () => {
1117
1117
  };
1118
1118
  var bypassApplePayChecks = () => new URLSearchParams(window.location.search).get("BYPASS_APPLE_PAY_CHECKS") !== null;
1119
1119
  var isApplePayAvailable = async () => {
1120
- if (bypassApplePayChecks()) {
1121
- return true;
1122
- }
1123
- if (!isAppleDeviceOrSafari()) {
1120
+ if (!isAppleDeviceOrSafari() && !bypassApplePayChecks()) {
1124
1121
  return false;
1125
1122
  }
1126
1123
  const applePaySession = window.ApplePaySession;
@@ -10,10 +10,7 @@ var isAppleDeviceOrSafari = () => {
10
10
  };
11
11
  var bypassApplePayChecks = () => new URLSearchParams(window.location.search).get("BYPASS_APPLE_PAY_CHECKS") !== null;
12
12
  var isApplePayAvailable = async () => {
13
- if (bypassApplePayChecks()) {
14
- return true;
15
- }
16
- if (!isAppleDeviceOrSafari()) {
13
+ if (!isAppleDeviceOrSafari() && !bypassApplePayChecks()) {
17
14
  return false;
18
15
  }
19
16
  const applePaySession = window.ApplePaySession;
package/dist/src/index.js CHANGED
@@ -1122,10 +1122,7 @@ var isAppleDeviceOrSafari = () => {
1122
1122
  };
1123
1123
  var bypassApplePayChecks = () => new URLSearchParams(window.location.search).get("BYPASS_APPLE_PAY_CHECKS") !== null;
1124
1124
  var isApplePayAvailable = async () => {
1125
- if (bypassApplePayChecks()) {
1126
- return true;
1127
- }
1128
- if (!isAppleDeviceOrSafari()) {
1125
+ if (!isAppleDeviceOrSafari() && !bypassApplePayChecks()) {
1129
1126
  return false;
1130
1127
  }
1131
1128
  const applePaySession = window.ApplePaySession;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@economist/web-apple-pay",
3
3
  "description": "Web component package for Apple Pay checkout UI",
4
- "version": "0.1.3-beta.34",
4
+ "version": "0.1.3-beta.35",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",