Skip to content

Commit

Permalink
Fix default export. Fixes #244. (#245)
Browse files Browse the repository at this point in the history
* Fix default export. Fixes #244.

* Update index.js
  • Loading branch information
Marsup authored and hueniverse committed Sep 23, 2019
1 parent 2ee13f6 commit a989e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ module.exports = internals.Boom = class extends Error {
};


internals.Boom.default = internals.Boom; // Support ES6 module import


internals.initialize = function (err, statusCode, message) {

const numberCode = parseInt(statusCode, 10);
Expand Down
2 changes: 1 addition & 1 deletion test/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Boom } from '..';
import Boom from '..';
import * as Lab from '@hapi/lab';

const { expect } = Lab.types;
Expand Down

0 comments on commit a989e49

Please sign in to comment.