microrouter
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -13,3 +13,3 @@ const { getParamsAndQuery } = require('../utils') | ||
if (params && req.method === method) { | ||
return handler(Object.assign({}, req, { params, query }), res) | ||
return handler(Object.assign(req, { params, query }), res) | ||
} | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "microrouter", | ||
"description": "🚉 A tiny and functional router for Zeit's Micro", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -121,3 +121,3 @@ :station: _**Micro Router -**_ A tiny and functional router for Zeit's [micro](https://github.com/zeit/micro) | ||
``` | ||
```js | ||
const { router, post } = require('microrouter') | ||
@@ -124,0 +124,0 @@ const { json, send } = require('micro') |
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
10589