{"size": 336, "ext": "js", "max_stars_repo_path": "src/utils/map-aws-data.js", "max_stars_repo_name": "chearmstrong/www.chearmstrong.com", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/map-aws-data.js", "max_issues_repo_name": "chearmstrong/www.chearmstrong.com", "max_issues_repo_issues_event_min_datetime": "2019-09-02T19:22:48.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-28T17:28:14.000Z", "max_forks_repo_path": "src/utils/map-aws-data.js", "max_forks_repo_name": "chearmstrong/www.chearmstrong.com", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 35, "max_forks_count": null, "avg_line_length": 21.0, "max_line_length": 53, "alphanum_fraction": 0.5327380952}
import * as R from 'ramda'

const mapAwsData = R.compose(
  R.map(
    R.applySpec({
      id: R.path(['node', 'id']),
      name: R.path(['node', 'name']),
      url: R.path(['node', 'url']),
      badge: R.path(['node', 'badge', 'file', 'url'])
    })
  ),
  R.path(['data', 'allContentfulAws', 'edges'])
)

export default mapAwsData
