diff --git a/src/index.js b/src/index.js index cbf3474..5b27497 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,3 @@ -import handler from './error-handler'; - const debug = require('debug')('feathers-errors'); // NOTE (EK): Babel doesn't properly support extending @@ -171,4 +169,4 @@ const errors = { Unavailable }; -export default Object.assign({ handler, types: errors, errors }, errors); +export default Object.assign({ types: errors, errors }, errors); diff --git a/src/middleware.js b/src/middleware.js new file mode 100644 index 0000000..30263b3 --- /dev/null +++ b/src/middleware.js @@ -0,0 +1,3 @@ +import handler from './error-handler'; + +export default handler; \ No newline at end of file