itty-router
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"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 @@ } |
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
79