Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-route

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-route - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

8

index.js

@@ -14,4 +14,7 @@

exports.del = exports.delete;
exports.all = create();
function create(method) {
method = method.toUpperCase();
if (method) method = method.toUpperCase();

@@ -26,3 +29,3 @@ return function(path, fn){

// method
if (method != this.method) return yield next;
if (method && method != this.method) return yield next;

@@ -33,2 +36,3 @@ // path

debug('%s %s matches %s %j', this.method, path, this.path, args);
args.push(next);
yield fn.apply(this, args);

@@ -35,0 +39,0 @@ return;

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

"repository": "koajs/route",
"version": "1.0.2",
"version": "1.1.0",
"keywords": [

@@ -18,3 +18,6 @@ "koa",

"devDependencies": {
"koa": "0.0.2"
"mocha": "*",
"supertest": "*",
"should": "*",
"koa": "koajs/koa"
},

@@ -26,3 +29,6 @@ "license": "MIT",

"debug": "*"
},
"scripts": {
"test": "make test"
}
}

@@ -1,2 +0,1 @@

# koa-route

@@ -12,2 +11,5 @@

If you need a full-featured solution check out [koa-router](https://github.com/alexmingoia/koa-router),
a Koa clone of express-resource.
## Installation

@@ -56,2 +58,2 @@

MIT
MIT
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