New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-tree-router

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-tree-router - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

1

index.d.ts

@@ -6,2 +6,3 @@ import * as Koa from "koa";

onMethodNotAllowed?: Router.Middleware<StateT, CustomT>;
ignoreTrailingSlash?: Boolean;
}

@@ -8,0 +9,0 @@ export interface IRouterParamContext<StateT = any, CustomT = {}> {

2

package.json
{
"name": "koa-tree-router",
"version": "0.12.0",
"version": "0.12.1",
"description": "A high performance koa router",

@@ -5,0 +5,0 @@ "main": "router.js",

@@ -55,3 +55,2 @@ # Koa tree router

Instance a new router.
You can pass a middleware with the option `onMethodNotAllowed`.
```js

@@ -61,3 +60,4 @@ const router = require('koa-tree-router')({

ctx.body = "not allowed"
}
},
ignoreTrailingSlash: true
})

@@ -64,0 +64,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