Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

microrouter

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microrouter - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

lib/index.js

@@ -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')

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