paypal-checkout
Advanced tools
Comparing version 4.0.342 to 4.0.343
{ | ||
"name": "paypal-checkout", | ||
"version": "4.0.342", | ||
"version": "4.0.343", | ||
"description": "PayPal Checkout components, for integrating checkout products.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -240,6 +240,10 @@ /* @flow */ | ||
export function redirect(win : CrossDomainWindowType = window, url : string) : ZalgoPromise<void> { | ||
return new ZalgoPromise(resolve => { | ||
return new ZalgoPromise((resolve, reject) => { | ||
info(`redirect`, { url }); | ||
if (url.toLowerCase().replace(/[^a-z:]+/g, '').match(/^javascript:/)) { | ||
return reject(new Error('Invalid redirect URL')); | ||
} | ||
setTimeout(() => { | ||
@@ -246,0 +250,0 @@ win.location = url; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
3822136
58426
0