UNPKG
@ganintegrity/gan-error
Version:
latest (1.2.1)
1.2.1
1.2.0
1.1.0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
an extendable ES6 Error with support for HTTP errors
gitlab.com/ganintegrity/gan-error
@ganintegrity/gan-error
/
index.js
8 lines
(5 loc)
•
163 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
GanError
=
require
(
'./lib/GanError'
);
if
(!process.
env
.
DISABLE_GAN_HTTP_ERRORS
) {
require
(
'./lib/addHttpErrors'
)(
GanError
); }
module
.
exports
=
GanError
;