Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zedgu committed Mar 20, 2015
1 parent b038b81 commit e1ba8ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/kow.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ ow.middleware = function() {

app.use(router.middleware());


function getObj(obj) {
return function(name) {
name = name || router.match(this.path)[0].route.name;
// koa-router 3.x return x.router.name;
// koa-router 4.x return x.name;
name = name || router.match(this.path)[0].name || router.match(this.path)[0].route.name;
return ow[obj][name.toLowerCase()];
};
}
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@
"homepage": "https://github.com/zedgu/koa-ovenware",
"dependencies": {
"debug": "*",
"koa-router": "^3.8.0",
"ovenware": "^0.1.2"
"istanbul-harmony": "^0.2.9",
"koa-router": "^4.2.0",
"mocha": "^1.21.5",
"ovenware": "^0.1.2",
"should": "^4.6.5",
"supertest": "^0.13.0"
},
"devDependencies": {
"co-body": "^1.0.0",
Expand Down

0 comments on commit e1ba8ba

Please sign in to comment.