Socket
Socket
Sign inDemoInstall

@koa/router

Package Overview
Dependencies
11
Maintainers
9
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.0.0 to 12.0.1

8

lib/router.js

@@ -8,4 +8,2 @@ /**

const { debuglog } = require('util');
const compose = require('koa-compose');

@@ -16,5 +14,4 @@ const HttpError = require('http-errors');

const Layer = require('./layer');
const debug = require('debug')('koa-router');
const debug = debuglog('koa-router');
/**

@@ -389,3 +386,4 @@ * @module koa-router

const path = router.opts.routerPath || ctx.routerPath || ctx.path;
const path =
router.opts.routerPath || ctx.newRouterPath || ctx.path || ctx.routerPath;
const matched = router.match(path, ctx.method);

@@ -392,0 +390,0 @@ let layerChain;

{
"name": "@koa/router",
"description": "Router middleware for koa. Maintained by Forward Email and Lad.",
"version": "12.0.0",
"version": "12.0.1",
"author": "Alex Mingoia <talk@alexmingoia.com>",

@@ -15,2 +15,3 @@ "bugs": {

"dependencies": {
"debug": "^4.3.4",
"http-errors": "^2.0.0",

@@ -22,23 +23,23 @@ "koa-compose": "^4.1.0",

"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@ladjs/env": "^3.0.0",
"ava": "^4.3.0",
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@ladjs/env": "^4.0.0",
"ava": "^5.3.1",
"cross-env": "^7.0.3",
"eslint": "^8.19.0",
"eslint": "8.39.0",
"eslint-config-xo-lass": "^2.0.1",
"expect.js": "^0.3.1",
"fixpack": "^4.0.0",
"husky": "^8.0.1",
"jsdoc-to-markdown": "^7.1.1",
"koa": "^2.13.4",
"lint-staged": "^13.0.3",
"mocha": "^10.0.0",
"husky": "^8.0.3",
"jsdoc-to-markdown": "^8.0.0",
"koa": "^2.14.2",
"lint-staged": "^14.0.1",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"remark-cli": "^11.0.0",
"remark-cli": "11",
"remark-preset-github": "^4.0.4",
"should": "^13.2.3",
"supertest": "^6.2.4",
"supertest": "^6.3.3",
"wrk": "^1.2.1",
"xo": "^0.50.0"
"xo": "0.53.1"
},

@@ -45,0 +46,0 @@ "engines": {

@@ -57,3 +57,3 @@ # [@koa/router](https://github.com/koajs/router)

```sh
npm install @types/koa__router
npm install --save-dev @types/koa__router
```

@@ -60,0 +60,0 @@

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