Skip to content

Commit

Permalink
Update 'koa-router' (unmaintained) to '@koa/router' (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
septatrix authored Apr 28, 2020
1 parent 1fd5316 commit 5bac993
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blog/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

const render = require('./lib/render');
const logger = require('koa-logger');
const router = require('koa-router')();
const router = require('@koa/router')();
const koaBody = require('koa-body');

const Koa = require('koa');
Expand Down
2 changes: 1 addition & 1 deletion csrf/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Koa = require('koa');
const koaBody = require('koa-body');
const session = require('koa-session');
const CSRF = require('koa-csrf');
const router = require('koa-router')();
const router = require('@koa/router')();

const app = module.exports = new Koa();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"koa-compose": "^4.0.0",
"koa-csrf": "^3.0.6",
"koa-logger": "^3.0.0",
"koa-router": "^7.2.0",
"@koa/router": "^8.0.5",
"koa-session": "^5.0.0",
"koa-static": "^3.0.0",
"koa-views": "^6.0.2",
Expand Down

0 comments on commit 5bac993

Please sign in to comment.