{"size": 666, "ext": "js", "max_stars_repo_path": "src/js/modules/getData.js", "max_stars_repo_name": "deannabosschert/frontend-data", "max_stars_repo_stars_event_min_datetime": "2020-10-31T08:55:17.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-31T08:55:17.000Z", "max_issues_repo_path": "src/js/modules/getData.js", "max_issues_repo_name": "deannabosschert/frontend-data", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/js/modules/getData.js", "max_forks_repo_name": "deannabosschert/frontend-data", "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": 21.4838709677, "max_line_length": 67, "alphanum_fraction": 0.5675675676}
import {
  API
} from "./API.js"

import {
  queries
} from "./adds/queries.js"

const getData = {
  parking: (query) => {
    return new Promise((resolve, reject) => {
      console.log(query)
      // const source = queries.local.parkingOpen
      const source = queries.local[query]
      // if (window.localStorage.getItem("rdwData") === null) {
      // console.log("nog geen data in je localStorage, incoming!")
      const data = API.get(source)
      resolve(data)
      // } else {
      //   console.log("nu zit er (wel) data in je localStorage 🤓")
      //   const data = API.local()
      //   resolve(data)
      // }
    })
  }
}


export {
  getData
}