Skip to content

Commit f10063f

Browse files
committed
Also export class as a subclass property for modules.
1 parent bfe66aa commit f10063f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ if (typeof global !== 'undefined') {
5757
global.ApplicationError = ApplicationError;
5858
}
5959
module.exports = ApplicationError;
60+
module.exports.ApplicationError = ApplicationError;
6061

6162
/* eslint-disable no-extend-native */
6263
Error.create = function(errorObject, code) {

0 commit comments

Comments
 (0)