{"size": 232, "ext": "js", "max_stars_repo_path": "store/plugins.js", "max_stars_repo_name": "lagden/vue", "max_stars_repo_stars_event_min_datetime": "2018-09-14T23:18:55.000Z", "max_stars_repo_stars_event_max_datetime": "2018-10-15T11:02:15.000Z", "max_issues_repo_path": "store/plugins.js", "max_issues_repo_name": "lagden/vue", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "store/plugins.js", "max_forks_repo_name": "lagden/vue", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2, "max_line_length": 65, "alphanum_fraction": 0.7543103448}
import {STORAGE_KEY} from './mutations.js'

function localStoragePlugin(store) {
	store.subscribe((mutation, {items}) => {
		window.localStorage.setItem(STORAGE_KEY, JSON.stringify(items))
	})
}

export default [localStoragePlugin]
