{"size": 417, "ext": "js", "max_stars_repo_path": "dataset.js", "max_stars_repo_name": "vatpac-technology/vatsim-map", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dataset.js", "max_issues_repo_name": "vatpac-technology/vatsim-map", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dataset.js", "max_forks_repo_name": "vatpac-technology/vatsim-map", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.8, "max_line_length": 98, "alphanum_fraction": 0.6498800959}
import bunyan from 'bunyan';
import config from 'config';
import { getXMLtoJS } from './client.js';

var log = bunyan.createLogger({name: config.get('app.name'), level: config.get('app.log_level')});

export async function getDataset(){
    try{
        var profile = await getXMLtoJS(config.get('data.vatsys.profileUrl'));
        return profile;
    }catch(err){
        log.error(err)
        return false;
    }
}