@polka/url
Advanced tools
Comparing version 1.0.0-next.7 to 1.0.0-next.9
@@ -28,3 +28,5 @@ function parse(str) { | ||
if (toDecode && !req._decoded && !!~url.indexOf('%', 1)) { | ||
url = req.url = obj.href = obj.path = obj.pathname = obj._raw = decodeURIComponent(url); | ||
let nxt = url; | ||
try { nxt = decodeURIComponent(url) } catch (e) {/* bad */} | ||
url = req.url = obj.href = obj.path = obj.pathname = obj._raw = nxt; | ||
req._decoded = true; | ||
@@ -31,0 +33,0 @@ } |
{ | ||
"version": "1.0.0-next.7", | ||
"version": "1.0.0-next.9", | ||
"name": "@polka/url", | ||
@@ -20,3 +20,3 @@ "repository": "lukeed/polka", | ||
}, | ||
"gitHead": "60d0e15ad0fa36b0331fc5e4707dd409982f9824" | ||
"gitHead": "5c8f314e57c1edb3132f2556ce13fb6c2b4e839b" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6770
80