{"size": 441, "ext": "js", "max_stars_repo_path": "src/datasources/errors/constants/index.js", "max_stars_repo_name": "LisandroMartinez25/SRB-API", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/datasources/errors/constants/index.js", "max_issues_repo_name": "LisandroMartinez25/SRB-API", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/datasources/errors/constants/index.js", "max_forks_repo_name": "LisandroMartinez25/SRB-API", "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": 23.2105263158, "max_line_length": 83, "alphanum_fraction": 0.6439909297}
import fs from 'fs'
import path from 'path'
import { merge } from 'lodash'

const catalogs = []
const basename = path.basename(__filename)

fs.readdirSync(__dirname)
  .filter(file => {
    return file.indexOf('.') !== 0 && file !== basename && file.slice(-3) === '.js'
  })
  .forEach(file => {
    const catalog = require(`./${file}`).catalog
    catalogs.push(catalog)
  })

const errors = merge(...catalogs).errors
export default errors
