Socket
Socket
Sign inDemoInstall

koa-router

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-router - npm Package Compare versions

Comparing version 9.0.1 to 9.1.0

9

lib/router.js

@@ -362,3 +362,8 @@ /**

ctx.params = layer.params(path, ctx.captures, ctx.params);
ctx.routerPath = layer.path;
ctx.routerName = layer.name;
ctx._matchedRoute = layer.path;
if (layer.name) {
ctx._matchedRouteName = layer.name;
}
return next();

@@ -444,3 +449,3 @@ });

: new HttpError.NotImplemented();
throw notImplementedThrowable;

@@ -458,3 +463,3 @@ } else {

if (options.throw) {
let notAllowedThrowable = (typeof options.methodNotAllowed === 'function')
let notAllowedThrowable = (typeof options.methodNotAllowed === 'function')
? options.methodNotAllowed() // set whatever the user returns from their function

@@ -461,0 +466,0 @@ : new HttpError.MethodNotAllowed();

{
"name": "koa-router",
"description": "Router middleware for koa. Provides RESTful resource routing.",
"version": "9.0.1",
"version": "9.1.0",
"author": "Alex Mingoia <talk@alexmingoia.com>",

@@ -6,0 +6,0 @@ "bugs": {

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