Socket
Socket
Sign inDemoInstall

@polka/url

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polka/url - npm Package Compare versions

Comparing version 0.5.0 to 1.0.0-next.0

license

7

index.js
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;

7

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc