@polka/url
Advanced tools
Comparing version 0.5.0 to 1.0.0-next.0
module.exports = function (req) { | ||
let url = req.url; | ||
if (url === void 0) return url; | ||
if (url == null) return; | ||
@@ -8,2 +8,7 @@ let obj = req._parsedUrl; | ||
if (url.length > 1 && !req._decoded) { | ||
url = req.url = decodeURIComponent(url); | ||
req._decoded = true; | ||
} | ||
obj = {}; | ||
@@ -10,0 +15,0 @@ obj.query = obj.search = null; |
{ | ||
"version": "1.0.0-next.0", | ||
"name": "@polka/url", | ||
"version": "0.5.0", | ||
"repository": "lukeed/polka", | ||
"description": "Super fast, memoized `req.url` parser", | ||
"repository": "lukeed/polka", | ||
"license": "MIT", | ||
@@ -17,3 +17,4 @@ "files": [ | ||
"access": "public" | ||
} | ||
}, | ||
"gitHead": "3598f0c5a1b343b6a37f661084c1643e832ff701" | ||
} |
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
5006
4
21