The tree was being rebuilt for every country so it only had the data of the last country in the list.
This change will aggregate the data from all of the countries using async.parallel
and build the tree once after the files finished downloading and parsing.
I increased the minimum Node.js version (and appropriate NPM version) because of the use of .flat()
A fix for the problem specified in #46.
The tree was being rebuilt for every country so it only had the data of the last country in the list. This change will aggregate the data from all of the countries using
async.parallel
and build the tree once after the files finished downloading and parsing.I increased the minimum Node.js version (and appropriate NPM version) because of the use of
.flat()