Skip to content

Commit

Permalink
update: keep errStatusCodePropertie in order as README states
Browse files Browse the repository at this point in the history
  • Loading branch information
Maples7 committed Jul 30, 2018
1 parent 7b810f0 commit 64debff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -2,7 +2,7 @@ const Boom = require('boom');

module.exports = ({
env = 'production',
errStatusCodePropertie = ['status', 'statusCode', 'code']
errStatusCodePropertie = ['statusCode', 'status', 'code']
} = {}) => async (ctx, next) => {
try {
await next();
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "koa-final-response",
"version": "1.0.0",
"version": "1.0.1",
"description": "The very outer middleware of Koa to handle every response of every request.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 64debff

Please sign in to comment.