Socket
Socket
Sign inDemoInstall

itty-router

Package Overview
Dependencies
Maintainers
1
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itty-router - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

2

package.json
{
"name": "itty-router",
"version": "0.5.2",
"version": "0.5.3",
"description": "Tiny, zero-dependency router with route param and query parsing.",

@@ -5,0 +5,0 @@ "main": "src/Router.js",

@@ -7,8 +7,7 @@ const Router = () => new Proxy({}, {

if (hit = path.match(route)) {
return handler({
...req,
return handler(Object.assign(req, {
params: hit.groups,
path,
query: Object.fromEntries(searchParams.entries())
})
}))
}

@@ -15,0 +14,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc