@paypal/checkout-components 5.0.396 → 5.0.397

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/checkout-components",
3
- "version": "5.0.396",
3
+ "version": "5.0.397",
4
4
  "description": "PayPal Checkout components, for integrating checkout products.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -43,7 +43,6 @@ import {
43
43
  getSDKAttribute,
44
44
  getJsSdkLibrary,
45
45
  wasShopperInsightsUsed,
46
- isPayPalTrustedUrl,
47
46
  getSDKInitTime,
48
47
  getSDKToken,
49
48
  getShopperSessionId,
@@ -371,11 +370,7 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
371
370
  type: "function",
372
371
  sendToChild: true,
373
372
  value: () => (url) => {
374
- if (getEnv() === ENV.LOCAL || isPayPalTrustedUrl(url)) {
375
- location.href = url;
376
- } else {
377
- throw new Error(`Unable to redirect to provided url ${url}`);
378
- }
373
+ location.href = url;
379
374
  },
380
375
  },
381
376