{"size": 457, "ext": "js", "max_stars_repo_path": "src/store/mutations.js", "max_stars_repo_name": "sambacha/market-explorer", "max_stars_repo_stars_event_min_datetime": "2019-06-19T02:42:25.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-13T19:50:15.000Z", "max_issues_repo_path": "src/store/mutations.js", "max_issues_repo_name": "sambacha/market-explorer", "max_issues_repo_issues_event_min_datetime": "2021-05-09T07:39:44.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T12:04:40.000Z", "max_forks_repo_path": "src/store/mutations.js", "max_forks_repo_name": "sambacha/market-explorer", "max_forks_repo_forks_event_min_datetime": "2019-06-26T13:33:29.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-21T20:33:07.000Z"}
{"max_stars_count": 9, "max_issues_count": 6, "max_forks_count": 4, "avg_line_length": 20.7727272727, "max_line_length": 63, "alphanum_fraction": 0.5864332604}
export default {
  // Generic update
  UPDATE(state, { key, value }) {
    state[key] = value
  },
  WS_ACTIVE(state, bool) {
    state.wsActive = bool
  },
  SOCKET_UPDATE(state, data) {
    console.log('[WS] internal event', data.type, data.result);

    switch (data.type) {
      case 'block':
        state.block = data.result
        break;
      case 'pending_transaction':
        state.pending_transaction = data.result
        break;
    }
  },
}
