Socket
Socket
Sign inDemoInstall

koa-route

Package Overview
Dependencies
5
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.4.1

16

History.md
2.4.1 / 2015-04-12
===================
* add ALL method to debug
* add return statement in case of path miss
2.4.0 / 2014-11-27
==================
* use `yield*`
2.3.0 / 2014-11-27
==================
* fix HEAD method w/ GET routes
2.2.0 / 2014-10-15

@@ -3,0 +19,0 @@ ==================

4

index.js

@@ -21,3 +21,3 @@ /**

var re = pathToRegexp(path, opts);
debug('%s %s -> %s', method, path, re);
debug('%s %s -> %s', method || 'ALL', path, re);

@@ -40,3 +40,3 @@ return function *(next){

// miss
yield* next;
return yield* next;
}

@@ -43,0 +43,0 @@ }

@@ -5,3 +5,3 @@ {

"repository": "koajs/route",
"version": "2.4.0",
"version": "2.4.1",
"keywords": [

@@ -8,0 +8,0 @@ "koa",

@@ -5,3 +5,3 @@ # koa-route

```
```js
var _ = require('koa-route');

@@ -8,0 +8,0 @@ app.use(_.get('/pets', pets.list));

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