Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 31 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
7 | module.exports = function (Credentials) |
||
8 | { |
||
9 | const Methods = {}, Utilities = require("./Tools/Utilities"); |
||
10 | |||
11 | /** |
||
12 | * Check if the user is running an outdated version of TenorJS. |
||
13 | */ |
||
14 | Utilities.checkVersion(); |
||
15 | |||
16 | /** |
||
17 | * Methods related to search querying. |
||
18 | */ |
||
19 | Methods.Search = require("./Search")(Credentials, Utilities); |
||
20 | |||
21 | /** |
||
22 | * Functions related to search autocompleting and suggestions. |
||
23 | */ |
||
24 | Methods.Suggest = require("./Suggest")(Credentials, Utilities); |
||
25 | |||
26 | /** |
||
27 | * Methods related to trending content. |
||
28 | */ |
||
29 | Methods.Trending = require("./Trending")(Credentials, Utilities); |
||
30 | |||
31 | /** |
||
32 | * Methods related to categories and tags. |
||
33 | */ |
||
34 | Methods.Categories = require("./Categories")(Credentials, Utilities); |
||
35 | |||
36 | return Methods; |
||
37 | }; |