{"size": 368, "ext": "js", "max_stars_repo_path": "src/utils/scopeToBaseFields.js", "max_stars_repo_name": "hoyeungw/ncov-cli", "max_stars_repo_stars_event_min_datetime": "2020-04-02T12:53:59.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-02T12:53:59.000Z", "max_issues_repo_path": "src/utils/scopeToBaseFields.js", "max_issues_repo_name": "hoyeungw/ncov-cli", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/scopeToBaseFields.js", "max_forks_repo_name": "hoyeungw/ncov-cli", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.8, "max_line_length": 75, "alphanum_fraction": 0.7201086957}
import { BASE_FIELDS_GLOBAL } from '../../resources/constants/fieldsGlobal'
import { BASE_FIELDS_US } from '../../resources/constants/fieldsUs'
import { GLOBAL, USA } from '../../resources/constants/constants.scope'

export const scopeToBaseFields = scope => {
  if (scope === GLOBAL) return BASE_FIELDS_GLOBAL
  if (scope === USA) return BASE_FIELDS_US
  return []
}
