{"ast":null,"code":"export function fetchNonograms() {\n  return dispatch => {\n    dispatch({\n      type: 'START_NON_REQUEST'\n    });\n    return fetch('.api/nonograms').then(response => response.json()).then(nonograms => dispatch({\n      type: 'ADD_NONOGRAMS',\n      nonograms\n    }));\n  };\n}","map":{"version":3,"sources":["/Users/eric_storey/Desktop/Flatiron/nonogram_ninja/client/src/actions/nonActions.js"],"names":["fetchNonograms","dispatch","type","fetch","then","response","json","nonograms"],"mappings":"AAAA,OAAO,SAASA,cAAT,GAA0B;AAC/B,SAAQC,QAAD,IAAc;AACnBA,IAAAA,QAAQ,CAAC;AAAEC,MAAAA,IAAI,EAAE;AAAR,KAAD,CAAR;AACA,WAAOC,KAAK,CAAC,gBAAD,CAAL,CACJC,IADI,CACCC,QAAQ,IAAIA,QAAQ,CAACC,IAAT,EADb,EAEJF,IAFI,CAECG,SAAS,IAAIN,QAAQ,CAAC;AAAEC,MAAAA,IAAI,EAAE,eAAR;AAAyBK,MAAAA;AAAzB,KAAD,CAFtB,CAAP;AAGD,GALD;AAMD","sourcesContent":["export function fetchNonograms() {\n  return (dispatch) => {\n    dispatch({ type: 'START_NON_REQUEST' });\n    return fetch('.api/nonograms')\n      .then(response => response.json())\n      .then(nonograms => dispatch({ type: 'ADD_NONOGRAMS', nonograms }));\n  };\n}\n"]},"metadata":{},"sourceType":"module"}