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 3.3.1 to 3.4.0

2

lib/route.js

@@ -186,3 +186,3 @@ /**

middleware.unshift(function *(next) {
yield fn.call(this, this.params[param], next);
yield *fn.call(this, this.params[param], next);
});

@@ -189,0 +189,0 @@ this.middleware = compose(middleware);

@@ -89,3 +89,3 @@ /**

debug('dispatch "%s" %s', route.path, route.regexp);
return yield route.middleware.call(this, next);
return yield *route.middleware.call(this, next);
}

@@ -103,3 +103,3 @@ }

// simply yield to downstream koa middleware
return yield next;
return yield *next;
}

@@ -106,0 +106,0 @@

@@ -9,3 +9,3 @@ {

"author": "Alex Mingoia <talk@alexmingoia.com>",
"version": "3.3.1",
"version": "3.4.0",
"keywords": [

@@ -20,7 +20,7 @@ "koa",

"path-to-regexp": "^1.0.0",
"debug": "^1.0.2",
"debug": "^2.0.0",
"koa-compose": "^2.3.0"
},
"devDependencies": {
"koa": "^0.10.0",
"koa": "^0.11.0",
"should": "^4.0.4",

@@ -27,0 +27,0 @@ "mocha": "^1.17.1",

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