Skip to content

Commit 6014e48

Browse files
committed
Bumped dependencies
1 parent 6dbde64 commit 6014e48

File tree

4 files changed

+538
-437
lines changed

4 files changed

+538
-437
lines changed

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Server {
4747
constructor(config) {
4848
this.config = Object.assign(
4949
{
50-
cabin: {},
50+
cabin: { axe: { capture: false } },
5151
protocol: process.env.API_PROTOCOL || 'http',
5252
ssl: {
5353
key: process.env.API_SSL_KEY_PATH
@@ -79,7 +79,10 @@ class Server {
7979
const i18n = this.config.i18n.config
8080
? this.config.i18n
8181
: new I18N({ ...this.config.i18n, logger });
82-
const cabin = new Cabin(this.config.cabin);
82+
const cabin = new Cabin({
83+
logger,
84+
...this.config.cabin
85+
});
8386

8487
// initialize the app
8588
const app = new Koa();
@@ -190,8 +193,6 @@ class Server {
190193
if (this.config.routes) {
191194
if (_.isFunction(this.config.routes.routes))
192195
app.use(this.config.routes.routes());
193-
if (_.isFunction(this.config.routes.allowedMethods))
194-
app.use(this.config.routes.allowedMethods());
195196
else app.use(this.config.routes);
196197
}
197198

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"@ladjs/i18n": "^0.3.2",
1919
"@ladjs/store-ip-address": "^0.0.5",
2020
"boolean": "^0.1.3",
21-
"cabin": "^1.0.2",
21+
"cabin": "^2.0.2",
2222
"common-tags": "^1.8.0",
2323
"ip": "^1.1.5",
24-
"kcors": "^2.2.1",
25-
"koa": "^2.5.1",
24+
"kcors": "^2.2.2",
25+
"koa": "^2.5.2",
2626
"koa-404-handler": "^0.0.2",
27-
"koa-better-error-handler": "^1.3.5",
27+
"koa-better-error-handler": "^1.3.6",
2828
"koa-better-timeout": "^0.0.2",
2929
"koa-bodyparser": "^4.2.1",
3030
"koa-compress": "^3.0.0",
@@ -42,17 +42,17 @@
4242
"devDependencies": {
4343
"auto-bind": "^1.2.1",
4444
"ava": "^0.25.0",
45-
"codecov": "^3.0.2",
45+
"codecov": "^3.0.4",
4646
"cross-env": "^5.2.0",
47-
"eslint": "^5.0.0",
47+
"eslint": "5.2.0",
4848
"eslint-config-prettier": "^2.9.0",
49-
"eslint-plugin-prettier": "^2.6.1",
49+
"eslint-plugin-prettier": "^2.6.2",
5050
"husky": "^0.14.3",
5151
"koa-router": "^7.4.0",
5252
"lint-staged": "^7.2.0",
53-
"mongoose": "^5.1.6",
53+
"mongoose": "^5.2.5",
5454
"nyc": "^12.0.2",
55-
"prettier": "^1.13.5",
55+
"prettier": "^1.14.0",
5656
"remark-cli": "^5.0.0",
5757
"remark-preset-github": "^0.0.8",
5858
"supertest": "^3.1.0",

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const ok = ctx => {
99
};
1010

1111
const config = {
12-
cabin: {},
12+
cabin: { axe: { capture: false } },
1313
protocol: process.env.API_PROTOCOL || 'http',
1414
passport: false,
1515
ssl: {

0 commit comments

Comments
 (0)