Skip to content

Commit

Permalink
changed boom to @hapi/boom
Browse files Browse the repository at this point in the history
  • Loading branch information
iyobo committed Jul 26, 2019
1 parent 22b21df commit 3298cdf
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions 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
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"author": "Iyobo Eki",
"license": "MIT",
"dependencies": {
"boom": "^7.3.0",
"@hapi/boom": "^7.4.2",
"class-transformer": "^0.2.3",
"class-validator": "^0.9.1",
"koa-body": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {importClassesFromDirectories} from './util/importClasses';
import {generateRoutes} from './util/generateRoutes';
import * as bodyParser from 'koa-bodyparser';
import Boom from 'boom';
import Boom from '@hapi/boom';
import cookie from 'koa-cookie';

export interface IKoaControllerOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/util/flow/flow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Boom = require('boom');
const Boom = require('@hapi/boom');

export const unauthorizedFlow = async (ctx, next) => {

Expand Down
2 changes: 1 addition & 1 deletion src/util/generateRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import _ from 'lodash';
import {Context} from 'koa';
import {isClass} from './tools';

const boom = require('boom');
const boom = require('@hapi/boom');

async function _argumentInjectorProcessor(name, body, injectOptions) {

Expand Down

0 comments on commit 3298cdf

Please sign in to comment.