Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@koa/router

Package Overview
Dependencies
11
Maintainers
8
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.1.0 to 9.2.0

6

lib/router.js

@@ -13,2 +13,3 @@ /**

const Layer = require('./layer');
const { pathToRegexp } = require('path-to-regexp');

@@ -293,3 +294,6 @@ /**

} else {
router.register(path || '(.*)', [], m, { end: false, ignoreCaptures: !hasPath });
const keys = [];
pathToRegexp(router.opts.prefix || '', keys);
const routerPrefixHasParam = router.opts.prefix && keys.length;
router.register(path || '([^\/]*)', [], m, { end: false, ignoreCaptures: !hasPath && !routerPrefixHasParam });
}

@@ -296,0 +300,0 @@ }

2

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc