Skip to content

Commit c4e7e7b

Browse files
committed
functions documentations
1 parent 6172085 commit c4e7e7b

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

lib/modules/global-parser/services/utils.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ const requestOpts = {
1212
}
1313
};
1414

15-
// For mongo format import /!\
15+
/**
16+
* For mongo format import /!\
17+
*/
1618
function mongoImport(category, game) {
1719
try {
1820
let items = fs.readFileSync(process.cwd() + '/data/' + game + '/' + category + '.json', 'utf8');
@@ -25,9 +27,11 @@ function mongoImport(category, game) {
2527
}
2628
}
2729

28-
// To choose a conf file corresponding to user's game choice
30+
/**
31+
* To choose a conf file corresponding to user's game choice
32+
* Game to load depends on cmdResponse from cli choices
33+
*/
2934
function gameConfParserSwitcher(game) {
30-
// Game to load depends on cmdResponse from cli choices
3135
try {
3236
const parserList = globalConf.games[game] && globalConf.games[game].conf;
3337
if (!parserList) throw { name: 'gameConfParserSwitcher', message: 'No game corresponding to ' + game + ' in global.conf.js' };
@@ -37,9 +41,11 @@ function gameConfParserSwitcher(game) {
3741
}
3842
}
3943

40-
// To choose a conf file corresponding to user's game choice
44+
/**
45+
* To choose a list url file corresponding to user's game choice
46+
* Game to load depends on cmdResponse from cli choices
47+
*/
4148
function gameUrlListSwitcher(cmdResponse) {
42-
// Game to load depends on cmdResponse from cli choices
4349
try {
4450
const url = globalConf.games &&
4551
globalConf.games[cmdResponse.game] &&

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dofapi/crawlit",
3-
"version": "1.6.13",
3+
"version": "1.6.14",
44
"homepage": "https://github.com/dofapi/crawlit-dofus-encyclopedia-parser",
55
"description": "Crawl structured dofus encyclopedia data to populate the Dofapi app & API",
66
"author": {

0 commit comments

Comments
 (0)