{"size": 373, "ext": "js", "max_stars_repo_path": "src/store/middleware/index.js", "max_stars_repo_name": "mattsmithies/super-starter-expo", "max_stars_repo_stars_event_min_datetime": "2019-07-25T09:02:51.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-25T09:02:51.000Z", "max_issues_repo_path": "src/store/middleware/index.js", "max_issues_repo_name": "mattsmithies/super-starter-expo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/store/middleware/index.js", "max_forks_repo_name": "mattsmithies/super-starter-expo", "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": 24.8666666667, "max_line_length": 51, "alphanum_fraction": 0.7345844504}
import { applyMiddleware } from 'redux';
import Buffer from 'src/store/middleware/Buffer';
import Saga from 'src/store/middleware/Saga';

const middlewares = [Buffer, Saga];

if (process.env.NODE_ENV === 'development') {
  const Logger = require('./Logger.js');
  middlewares.push(Logger);
}

const middleware = applyMiddleware(...middlewares);

export default middleware;
