1 | // index.js |
||
2 | "use strict"; |
||
3 | |||
4 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
||
5 | * Copyright (C) EgaLabs, Inc - All Rights Reserved * |
||
6 | * Unauthorized copying of this file, either completely or partially, via any medium, is strictly prohibited. * |
||
7 | * Proprietary and confidential. * |
||
8 | * Written by Esaú García Sánchez-Torija <[email protected]>, March 2017 * |
||
9 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
||
10 | |||
11 | // :: DEPENDENCIES |
||
12 | |||
13 | 1 | const path = require("path"); |
|
14 | 1 | const Throwable = require(path.join(__dirname, "Throwable.js")); |
|
15 | 1 | const Exception = require(path.join(__dirname, "Exception.js")); |
|
16 | |||
17 | // :: EXPORT |
||
18 | |||
19 | // export all classes |
||
20 | 1 | const API = { |
|
21 | Throwable, |
||
22 | Exception |
||
23 | }; |
||
24 | |||
25 | // freeze the object to prevent modification |
||
26 | 1 | const frozen = Object.freeze(API); |
|
0 ignored issues
–
show
Unused Code
introduced
by
![]() |
|||
27 | |||
28 | // export the frozen object |
||
29 | module.exports = API; |